Ok, i switched to renderwindow.
void Renderer2D::refresh()
{
std::cout << "Renderer2D::refresh()\n";
m_Engine->getWindow()->SaveGLStates();
sf::Font font;
if (!font.LoadFromFile("arial.ttf"))
return;
sf::Text text("Hello SFML", font, 50);
m_Engine->getWindow()->Draw(text);
m_Engine->getWindow()->RestoreGLStates();
};
However, this codes doesn t draw any text. (and i think my OpenGL perspective changed a bit...). The Font gets loaded. Where should the text appear?