From 207d8fe09b896cbcdcb4ea46ae6f06ce62b9001e Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 13 May 2016 06:45:40 +0000 Subject: Add GLContext to the set of platform-dependent types defined in FL/platform_types.h If a platform does not support OpenGL, it can just typedef GLContext as void* git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Gl_Window.H | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'FL/Fl_Gl_Window.H') diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H index 11e0cef98..aed24edcd 100644 --- a/FL/Fl_Gl_Window.H +++ b/FL/Fl_Gl_Window.H @@ -24,14 +24,6 @@ #include "Fl_Window.H" - -#ifndef GLContext -/** - Opaque pointer type to hide system specific implementation. -*/ -typedef void* GLContext; // actually a GLXContext or HGLDC -#endif - class Fl_Gl_Choice; // structure to hold result of glXChooseVisual class Fl_Gl_Window_Driver; /** @@ -201,9 +193,9 @@ public: */ int mode(const int *a) {return mode(0, a);} /** Returns a pointer to the GLContext that this window is using. - \see void context(void* v, int destroy_flag) */ - void* context() const {return context_;} - void context(void*, int destroy_flag = 0); + \see void context(GLContext c, int destroy_flag) */ + GLContext context() const {return context_;} + void context(GLContext, int destroy_flag = 0); void make_current(); void swap_buffers(); void ortho(); -- cgit v1.2.3