Upload files to 'sfml'

This commit is contained in:
Gladosse 2022-02-13 13:56:05 +01:00
parent 36626f8f86
commit 7a0ebbc4d8
1 changed files with 24 additions and 0 deletions

24
sfml/Main.hpp Normal file
View File

@ -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 );