Upload files to 'sfml'
This commit is contained in:
parent
36626f8f86
commit
7a0ebbc4d8
|
@ -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 );
|
Loading…
Reference in New Issue