Hello, I am developing a OpenGL application using SFML for some months now.
Since now I used a "sf::Window" and included my own GLEW library and header file to draw OpenGL stuff. Trying to use SFML's two dimensional drawing capabilities (want to draw debug messaged using "sf::Text"), I found out that I have to use "sf::RenderWindow" instead of "sf::Window" because I need "pushGLStates()" and "popGLStates()".
After removing my own GLEW library from the linker includes, I got my project to compile and run as expected. But I am still using my own GLEW header file "#include <GLEW/glew.h>". How can I include the GLEW file shipped with SFML in my own files? What I mean is something like "#include <SFML/.../glew.h>".
The reason that I do not prefer using my own GLEW header file is for consistency and because that might be from another release and version of GLEW. By the way I already included "#include <SFML/OpenGL.hpp>" but that does not provide functions like "glUniformMatrix4fv", "glEnableVertexAttribArray", "glBindBuffer", and others.
It would be nice if there is an easy way to access the SFML internal GLEW header file because that would provide every SFML user the most simple way to directly start developing OpenGL applications without struggling with GLEW. Moreover I heard that beginners ofter fail to properly
include GLEW in SFML. So if there is no such feature yet, you might consider implementing that, that would be awesome! Why should GLEW be included multiple times in the same project?
If I am on the wrong path, please tell how I can use both SFML drawing and my own OpenGL drawing. Thanks a lot in advance!