mirror of https://github.com/fltk/fltk
Associate gl_font() and gl_draw() calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12405 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
ab7c915bf0
commit
52249a960d
|
@ -98,7 +98,6 @@ 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 );
|
||||
glClearColor(0.4, 0.4, 0.4, 0);
|
||||
}
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
@ -112,6 +111,7 @@ void cube_box::draw() {
|
|||
glPopMatrix();
|
||||
gl_color(FL_GRAY);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
gl_font(FL_HELVETICA_BOLD, 16 );
|
||||
gl_draw(wire ? "Cube: wire" : "Cube: flat", -4.5f, -4.5f );
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
||||
|
|
Loading…
Reference in New Issue