From 7a0ebbc4d80fb5569c2f665fe3f9104ce252a02a Mon Sep 17 00:00:00 2001 From: Gladosse Date: Sun, 13 Feb 2022 13:56:05 +0100 Subject: [PATCH] Upload files to 'sfml' --- sfml/Main.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sfml/Main.hpp diff --git a/sfml/Main.hpp b/sfml/Main.hpp new file mode 100644 index 0000000..4565b28 --- /dev/null +++ b/sfml/Main.hpp @@ -0,0 +1,24 @@ +struct Road { + int height; //number of elements + struct Segment* segments; //array of segments + int* grid; + float playerx; + float playery; + int width; + int segment_height; + int starty; + int startx; +}; + +struct Segment { + float x; + float y; + float z; + int width; + int height; + sf::Color colour; +}; + +void draw_road(sf::RenderWindow*, struct Road*); +void gen_road(unsigned char* , int , struct Road *); +struct Segment seg(float , float , float , int , int , sf::Color ); \ No newline at end of file