s
This commit is contained in:
parent
79cdfeb4a6
commit
b4d841e41a
12
main.cpp
12
main.cpp
@ -27,7 +27,7 @@ static std::vector<std::vector<Point> > tracks;
|
|||||||
|
|
||||||
void draw(const std::vector<Point> &points)
|
void draw(const std::vector<Point> &points)
|
||||||
{
|
{
|
||||||
glLineWidth(1.0f);
|
// glLineWidth(1.0f);
|
||||||
|
|
||||||
// Draw bike path
|
// Draw bike path
|
||||||
glBegin(GL_LINE_STRIP);
|
glBegin(GL_LINE_STRIP);
|
||||||
@ -51,11 +51,11 @@ void display()
|
|||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
||||||
static double asdf = -10.0;
|
static double asdf = -10.0;
|
||||||
asdf += 0.03;
|
asdf += 0.02;
|
||||||
if(asdf > 30.0)
|
if(asdf > 15.0)
|
||||||
asdf = -30.0;
|
asdf = -15.0;
|
||||||
gluLookAt(-asdf, 12.0, -30, /* eye is at */
|
gluLookAt(-15, 12.0, -asdf, /* eye is at */
|
||||||
0.0, 0.0, 0.0, /* center is at */
|
0.0, 6.0, 0.0, /* center is at */
|
||||||
0.0, 1.0, 0.0); /* up is in positive Y direction */
|
0.0, 1.0, 0.0); /* up is in positive Y direction */
|
||||||
|
|
||||||
// DRAW TRACKS:
|
// DRAW TRACKS:
|
||||||
|
Loading…
Reference in New Issue
Block a user