From dcc82d8926e447e422f200d01e1aa990233bc16a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 7 Feb 2018 15:34:44 +0000 Subject: STR#3450: Draw text with OpenGL using textures on all platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Graphics_Driver.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Fl_Graphics_Driver.cxx') diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx index 2cbf0f238..d7cb15031 100644 --- a/src/Fl_Graphics_Driver.cxx +++ b/src/Fl_Graphics_Driver.cxx @@ -217,8 +217,20 @@ void Fl_Graphics_Driver::draw(Fl_Shared_Image *shared, int X, int Y) { shared->scaled_image_->draw(X, Y, shared->scaled_image_->w(), shared->scaled_image_->h(), 0, 0); } +unsigned Fl_Graphics_Driver::font_desc_size() { + return (unsigned)sizeof(Fl_Fontdesc); +} #ifndef FL_DOXYGEN +Fl_Font_Descriptor::Fl_Font_Descriptor(const char* name, Fl_Fontsize Size) { + next = 0; +# if HAVE_GL + listbase = 0; +# endif + // OpenGL needs those for its font handling + size = Size; +} + Fl_Scalable_Graphics_Driver::Fl_Scalable_Graphics_Driver() : Fl_Graphics_Driver() { scale_ = 1; line_width_ = 0; -- cgit v1.2.3