Hi there. Got SFML working with OpenTK.
I understand that me messing with the openGL context will disturb SFML in its functionality.
Thats why one should use PushGLStates / PopGLStates.
I read the tutorial and the documentation, but somehow it's still not 100% clear to me.
I have a few questions.
1.) Should I enclose my code with Push/PopGlStates, or should I enclode the SFML drawing code with it?
Is there even a difference?
2.) When should ResetGlStates be used? Can it replace the above functions?
3.) Is this the correct way to make openTK aware of SFML: ?
static void Main
(string[] args
) { RenderWindow
= new RenderWindow
(new SFML
.Window.VideoMode(800,
450),
"Title", SFML
.Window.Styles.Close); var wi
= OpenTK
.Platform.Utilities.CreateWindowsWindowInfo(RenderWindow
.SystemHandle); var ctx
= new OpenTK
.Graphics.GraphicsContext(OpenTK
.Graphics.GraphicsMode.Default, wi
); ctx
.MakeCurrent(wi
); ctx
.LoadAll(); ... } Isn't there a way to get the GlContext from the "RenderWindow" class directly??