Game Development Reference
In-Depth Information
Since the SFML window is built to work with OpenGL, integrating it is as simple as the
preceding code. However, when it comes to mixing the graphics module and OpenGL, it
gets slightly messier. We have to save and restore the OpenGL states each time we switch
between rendering with SFML and rendering with OpenGL explicitly. Here is the code
when we draw shapes using both the graphics module and OpenGL:
Search WWH ::




Custom Search