Update 'sfml/main.cpp'
This commit is contained in:
parent
1685a2ffb9
commit
1518220eac
|
@ -38,18 +38,6 @@ struct Segment seg(float x,float y,float z,int width,float height,sf::Color colo
|
|||
}
|
||||
|
||||
void gen_road(struct Road* road, float zm = 1) {
|
||||
int v = road->height;
|
||||
/*for (int i = 0;i < road->height;i++) {
|
||||
road->segments[i].width = road->width;
|
||||
road->segments[i].height = road->height;
|
||||
road->segments[i].z = i * zm;
|
||||
road->segments[i].y = road->starty + zm;
|
||||
road->segments[i].x = 0;
|
||||
road->segments[i].colour = gray;
|
||||
v--;
|
||||
}*/
|
||||
|
||||
|
||||
road->segments[0] = seg(0, 190, 0, 90, 20, gray);
|
||||
road->segments[1] = seg(0, 190, 5, 90, 20, gray);
|
||||
road->segments[2] = seg(0, 190, 10, 90, 20, gray);
|
||||
|
|
Loading…
Reference in New Issue