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