Fl_OpenGL_Graphics_Driver : use gl_font()/gl_draw() to draw text in a GL window - continued.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
723012c2bd
commit
ebae29222d
@ -40,7 +40,7 @@
|
||||
// FIXME: check out FreeGlut:
|
||||
// FIXME: implement font-to-RGBA in the main graphics driver
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
|
||||
/*
|
||||
|01234567|
|
||||
@ -181,7 +181,9 @@ void Fl_OpenGL_Graphics_Driver::font(Fl_Font face, Fl_Fontsize fsize) {
|
||||
}
|
||||
|
||||
void Fl_OpenGL_Graphics_Driver::draw(const char* str, int n, int x, int y) {
|
||||
Fl_Surface_Device::push_current(Fl_Display_Device::display_device());
|
||||
gl_draw(str, n, x, y);
|
||||
Fl_Surface_Device::pop_current();
|
||||
}
|
||||
|
||||
double Fl_OpenGL_Graphics_Driver::width(const char *str, int n) {
|
||||
|
Loading…
Reference in New Issue
Block a user