1
Graphics / Anyone Know What is Causing This?
« on: February 02, 2011, 06:05:42 pm »
Yeah, Programming is never an easy task... Good luck!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
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();
};