Because not everyone who uses OpenGL wants to use GLEW? ;)
No? Okay. ;-)
I got it to compile but now I face another problem. My OpenGL scene is drawn fine but no text is displayed and there is an error message from SFML which reads "An internal OpenGL call failed in RendererTarger.cpp (255) : GL_INVALID_OPERATION, the specified operation is not allowed in the current state".
My code is as follows.
Font font;
void Init()
{
bool result = font.loadFromFile("other/verdana.ttf");
}
void Update()
{
auto wnd = ...; // get pointer to the RenderWindow
wnd->pushGLStates();
Text text("Test", font, 15);
wnd->draw(text);
wnd->popGLStates();
}
Font loading is successful so I do not know how to fix that. Do you have any idea?