1 #include <GLviewer/Scenes/SceneSimpleQuad.hh>
3 #include <Gui/biasgl.h>
10 float red[4] = {1.0, 0.0, 0.0, 1.0};
11 float white[4] = {1.0, 1.0, 1.0, 1.0};
12 float black[4] = {0.0, 0.0, 0.0, 1.0};
13 glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, black);
14 glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, red);
15 glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, white);
17 glColor3f(1.0, 0.0, 0.0);
19 glNormal3f(0.0, 0.0, 1.0);
20 glVertex3f(-1.0, -1.0, 0.0);
23 glVertex3f(1.0, -1.0, 0.0);
26 glVertex3f(1.0, 1.0, 0.0);
29 glVertex3f(-1.0, 1.0, 0.0);
virtual void Draw()
To do anything usefull, overload this method, assume context is ready and draw.