Remired CR/LF pairs :-/
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
2967d781d7
commit
e9f34465e0
@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: cube.cxx,v 1.4.2.5.2.2 2002/06/26 02:01:33 matthiaswm Exp $"
|
||||
// "$Id: cube.cxx,v 1.4.2.5.2.3 2002/06/26 03:36:57 matthiaswm Exp $"
|
||||
//
|
||||
// Another forms test program for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@ -104,7 +104,7 @@ void cube_box::draw() {
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glFrustum(-1,1,-1,1,2,10000);
|
||||
glTranslatef(0,0,-10);
|
||||
gl_font(FL_HELVETICA_BOLD, 16 );
|
||||
gl_font(FL_HELVETICA_BOLD, 16 );
|
||||
}
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glPushMatrix();
|
||||
@ -114,11 +114,11 @@ void cube_box::draw() {
|
||||
glTranslatef(-1.0, 1.2f, -1.5);
|
||||
glScalef(float(size),float(size),float(size));
|
||||
drawcube(wire);
|
||||
glPopMatrix();
|
||||
gl_color(FL_GRAY);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
glPopMatrix();
|
||||
gl_color(FL_GRAY);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
gl_draw(wire ? "Cube: wire" : "Cube: flat", -4.5f, -4.5f );
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -184,5 +184,5 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
//
|
||||
// End of "$Id: cube.cxx,v 1.4.2.5.2.2 2002/06/26 02:01:33 matthiaswm Exp $".
|
||||
// End of "$Id: cube.cxx,v 1.4.2.5.2.3 2002/06/26 03:36:57 matthiaswm Exp $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user