SFML community forums
General => General discussions => Topic started by: Guni on February 20, 2012, 07:06:06 pm
-
I believe SFML can be used to create OpenGL contexts, but does it load the OpenGL functions, or will I need to use a separate OpenGL loading library?
Basically, does SFML do this?
http://www.opengl.org/wiki/OpenGL_Loading_Library
Edit:
I ask this because after I include SFML's OpenGL header like this:
#include <SFML/OpenGL.hpp>
I still get compiler errors like this:
1>Main.cpp(16): error C3861: 'glCreateShader': identifier not found
1>Main.cpp(18): error C3861: 'glShaderSource': identifier not found
Edit 2:
I tried to boil down my question to the essential issue, but if I should provide more information, I will gladly do so.
Edit 3: I am using SFML 2.0, linking everything statically.
-
You must use an extension loader (like GLEW), SFML doesn't do that.
-
Thanks