-
Is it legal to call IWindow.CreateInput() and set events directly after Window.Create(WindowOptions) instead of in the Load event function like the examples in this repository do? Is it also legal to create the GL context after IWindow.Run() instead of in the Load event? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is illegal to create an input context for an uninitialized window due to internal state not being guaranteed. It needs to be after Likewise, it is illegal to call Hope this helps. |
Beta Was this translation helpful? Give feedback.
It is illegal to create an input context for an uninitialized window due to internal state not being guaranteed. It needs to be after
Initialize
/Run
Likewise, it is illegal to call
window.CreateOpenGL
/GL.GetApi
with an uninitialized window due to the state of IGLContextSource.Context not being guaranteed. However, you can call it any time afterInitialize
/Run
.Hope this helps.