Hey,
my window freezes, and me and my professor can't figure out what it is
#include <GL/GLee.h>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
using namespace sf;
int main()
{
RenderWindow Window(sf::VideoMode(800,600,32),"GL SandBox");
//Window.PreserveOpenGLStates(true);
//glMatrixMode(GL_PROJECTION);
//glLoadIdentity();
//glOrtho(0,800,0,600,-1,1);
//glMatrixMode(GL_MODELVIEW);
/*Vector2f Vertices[4] =
{
Vector2f(350,250), //Canto superior esquerdo
Vector2f(450,250), //Canto superior direito
Vector2f(450,350), //Canto inferior direito
Vector2f(350,350) //Canto inferior esquerdo
};*/
while (Window.IsOpened())
{
Window.Clear();
//glEnableClientState(GL_VERTEX_ARRAY);
//glVertexPointer(2,GL_FLOAT,0,Vertices);
//glDrawArrays(GL_QUADS,0,4);
Window.Display();
}
return 0;
}
Please try runing in your pc if it works, i already tried using Window.hpp but no result either... :roll:
btw, Win XP SP3, VS2008 SP1