61
Graphics / SFML 2.0 Drawing doesn't work
« on: June 14, 2009, 05:58:47 am »
I tried to do a simple test using SFML 2.0,
and I got an access violation exception (something to do with OpenGL state or something). I tried the code with the SVN trunk version and everything worked fine.
Basically my question is, How usable is SFML 2.0 / when should we be able to essentially "beta test" it?
Code: [Select]
sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "O hai");
sf::Shape Rect=sf::Shape::Rectangle(50,50,200,100,sf::Color::White);
// Start game loop
while (Window.IsOpened())
{
// Process events
sf::Event Event;
while (Window.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
Window.Close();
}
// Clear the screen (fill it with black color)
Window.Clear();
Window.Draw(Rect);
// Display window contents on screen
Window.Display();
}
and I got an access violation exception (something to do with OpenGL state or something). I tried the code with the SVN trunk version and everything worked fine.
Basically my question is, How usable is SFML 2.0 / when should we be able to essentially "beta test" it?