GameBoy Emulator 1
Game Boy emulator core and tooling
Loading...
Searching...
No Matches
port.cpp
1#include <SFML/Graphics.hpp>
2
3int main()
4{
5 sf::RenderWindow window(sf::VideoMode({200, 200}), "SFML works!");
6 sf::CircleShape shape(100.f);
7 shape.setFillColor(sf::Color::Red);
8
9 while (window.isOpen())
10 {
11 while (const std::optional event = window.pollEvent())
12 {
13 if (event->is<sf::Event::Closed>())
14 window.close();
15 }
16
17 window.clear();
18 window.draw(shape);
19 window.display();
20 }
21}