init
This commit is contained in:
BIN
src/.DS_Store
vendored
Normal file
BIN
src/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
src/.main.cpp.swp
Normal file
BIN
src/.main.cpp.swp
Normal file
Binary file not shown.
26
src/main.cpp
Normal file
26
src/main.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include <iostream>
|
||||
#include <SFML/Graphics.hpp>
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
sf::RenderWindow window(sf::VideoMode(300, 300), "SFML");
|
||||
sf::CircleShape shape(10.0f);
|
||||
shape.setFillColor(sf::Color::Green);
|
||||
|
||||
while (window.isOpen()) {
|
||||
sf::Event event;
|
||||
while (window.pollEvent(event)){
|
||||
if (event.type == sf::Event::Closed){
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
window.clear();
|
||||
window.draw(shape);
|
||||
window.display();
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user