this function calls all opengl statements to draw the plottable all scaling, translation and raotation should be done before this function is called
Implements Impala::Visualization::Plot::Plottable. Definition at line 23 of file Plane.h. 00024 { 00025 glEnable(GL_BLEND); 00026 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 00027 glColor4d(0, 0, 0, 0.2); 00028 glBegin(GL_QUADS); 00029 glVertex3d(-1, -1, mPos); 00030 glVertex3d(-1, 1, mPos); 00031 glVertex3d( 1, 1, mPos); 00032 glVertex3d( 1, -1, mPos); 00033 glEnd(); 00034 if (mPos>0.1) 00035 mUp = false; 00036 if (mPos<-0.04) 00037 mUp = true; 00038 mPos += (mUp) ?0.003 :-0.003; 00039 }
|