diff options
| author | Manolo Gouy <Manolo> | 2016-05-08 15:51:11 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-05-08 15:51:11 +0000 |
| commit | 8fcccb05d4ba3620871f8fdbe87decd50a9b444b (patch) | |
| tree | 754633c32f88600aaa27c0b75c4c969d7f704a86 /FL | |
| parent | 268a2507e85e0e0e8df3df912a5d90df0b61f133 (diff) | |
Rewrite file src/gl_draw.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11718 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Gl_Window_Driver.H | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/FL/Fl_Gl_Window_Driver.H b/FL/Fl_Gl_Window_Driver.H index 17a9318a0..d94d117fd 100644 --- a/FL/Fl_Gl_Window_Driver.H +++ b/FL/Fl_Gl_Window_Driver.H @@ -27,6 +27,7 @@ #include <FL/Fl_Gl_Window.H> class Fl_Gl_Choice; +class Fl_Font_Descriptor; /* The constructor of each Fl_Gl_Window object creates also an object from a platform-specific derived class from this class. @@ -78,6 +79,10 @@ public: virtual void gl_visual(Fl_Gl_Choice*); // support for Fl::gl_visual() function virtual void gl_start() {} // support for gl_start() function virtual void* GetProcAddress(const char *procName); // support for glutGetProcAddress() + virtual void draw_string(const char* str, int n); // support for gl_draw() + virtual void get_list(Fl_Font_Descriptor* fd, int r) {} // support for gl_draw() without textures + virtual void gl_bitmap_font(Fl_Font_Descriptor *fl_fontsize) {} // support for gl_font() without textures + virtual int overlay_color(Fl_Color i) {return 0;} // support for gl_color() with HAVE_GL_OVERLAY }; #ifdef FL_CFG_GFX_QUARTZ @@ -100,6 +105,7 @@ class Fl_Cocoa_Gl_Window_Driver : public Fl_Gl_Window_Driver { virtual void make_overlay_current(); virtual void redraw_overlay(); virtual void gl_start(); + virtual void draw_string(const char* str, int n); }; #endif // FL_CFG_GFX_QUARTZ @@ -122,8 +128,11 @@ class Fl_WinAPI_Gl_Window_Driver : public Fl_Gl_Window_Driver { virtual void make_overlay_current(); virtual void redraw_overlay(); virtual void* GetProcAddress(const char *procName); + virtual void gl_bitmap_font(Fl_Font_Descriptor *fl_fontsize); + virtual void get_list(Fl_Font_Descriptor *fd, int r); #if HAVE_GL_OVERLAY virtual int can_do_overlay(); + virtual int overlay_color(Fl_Color i); #endif }; @@ -148,12 +157,15 @@ class Fl_X11_Gl_Window_Driver : public Fl_Gl_Window_Driver { virtual void make_overlay(void *&o); virtual int can_do_overlay(); virtual void hide_overlay(); + virtual int overlay_color(Fl_Color i); #endif virtual void make_overlay_current(); virtual void redraw_overlay(); virtual void waitGL(); virtual void gl_visual(Fl_Gl_Choice*); // support for Fl::gl_visual() virtual void gl_start(); + virtual void gl_bitmap_font(Fl_Font_Descriptor *fl_fontsize); + virtual void get_list(Fl_Font_Descriptor *fd, int r); public: static GLContext create_gl_context(XVisualInfo* vis); }; |
