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:
Manolo Gouy 2017-08-27 08:01:55 +00:00
parent ab7c915bf0
commit 52249a960d
1 changed files with 1 additions and 1 deletions

View File

@ -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);