SFML…

int _tmain(int argc, _TCHAR* argv[]) {
RenderWindow window(VideoMode(1024, 640), “Caption”);

CircleShape shape(300.0f);
while (window.isOpen()) {
Event event;
while (window.pollEvent(event)) {
if (event.type == Event::Closed) {
window.close();
}
};

if (Keyboard::isKeyPressed(Keyboard::Escape))
{
window.close();
};

if(Mouse::isButtonPressed(Mouse::Button::Left))
{

};

window.clear(Color(0x11,0x22, 0x33, 0xf));
window.draw(shape);
window.display();
}
return 0;
};

 

 

Om vi ändå lärt oss det här före jul…

Leave a comment