-
For example, I create a switch (e.Key)
{
case Key.B:
Alpha = !Alpha;
if (Alpha)
{
Gl.Enable(EnableCap.Blend);
Gl.Disable(EnableCap.DepthTest);
}
else
{
Gl.Disable(EnableCap.Blend);
Gl.Enable(EnableCap.DepthTest);
}
break;
} But the porperty of Gl happens no change. I also tried to use in All of these settings above will be effective in "gl-methods". Does |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It is expected. You should record your operations on UI thread, such as enabling/disabling blend capability, and invalidate visual, which will request next render frame. And read these operations inside of OnOpenGlRender. |
Beta Was this translation helpful? Give feedback.
It is expected. You should record your operations on UI thread, such as enabling/disabling blend capability, and invalidate visual, which will request next render frame.
And read these operations inside of OnOpenGlRender.