1
General / Re: OpenGL Error in x86_64 windows
« on: May 17, 2014, 04:31:04 pm »
ignore. It turns out to be problem in my virtual machine
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.
#include <SFML/Window.hpp>
int main()
{
sf::Window window(sf::VideoMode(800, 600), "My window");
// run the program as long as the window is open
while (window.isOpen())
{
// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;
while (window.pollEvent(event))
{
// "close requested" event: we close the window
if (event.type == sf::Event::Closed)
window.close();
}
window.display();
}
return 0;
}
This is a macro that hides the import/export declarations. You can ignore it.That gave real relief, Thanks!
CSFML_GRAPHICS_API sfImage* sfImage_create(unsigned int width, unsigned int height);