summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Choice.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-02-11 12:02:36 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-02-11 12:02:36 +0000
commit50ee3bcd66c4baa6bb3388f5b955d726bfc6bdd8 (patch)
tree4b62978d21ee57df7027461b8ea2846c17308d11 /src/Fl_Gl_Choice.cxx
parenta3c0dac034c919c2714f3f129a9f5d9d26ae3de4 (diff)
Mark places that need to be refactored with // PORTME:
Searching for __APPLE, WIN32 or X11 did give me many false results. I instead marked most ifdef's that I would like to get rid of with the text // PORTME:, so they can be easily found by a global search. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Choice.cxx')
-rw-r--r--src/Fl_Gl_Choice.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx
index 1af0b355d..0be0ad651 100644
--- a/src/Fl_Gl_Choice.cxx
+++ b/src/Fl_Gl_Choice.cxx
@@ -27,7 +27,7 @@
# include "flstring.h"
# include <FL/fl_utf8.h>
-#if defined(WIN32) || defined(__APPLE__)
+#if defined(WIN32) || defined(__APPLE__) // PORTME: platform OpenGL management
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: add code to list and select OpenGL drawing contexts"
#else
@@ -35,7 +35,7 @@
# ifdef WIN32
void fl_save_dc(HWND, HDC);
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) // PORTME: platform OpenGL management
extern void gl_texture_reset();
#endif
@@ -110,7 +110,7 @@ Fl_Gl_Choice *Fl_Gl_Choice::find(int m, const int *alistp) {
return 0;
}
-#elif defined(__APPLE_QUARTZ__)
+#elif defined(__APPLE_QUARTZ__) // PORTME: platform OpenGL management
NSOpenGLPixelFormat* fmt = Fl_X::mode_to_NSOpenGLPixelFormat(m, alistp);
if (!fmt) return 0;
@@ -172,7 +172,7 @@ Fl_Gl_Choice *Fl_Gl_Choice::find(int m, const int *alistp) {
# elif defined(WIN32)
g->pixelformat = pixelformat;
g->pfd = chosen_pfd;
-# elif defined(__APPLE_QUARTZ__)
+# elif defined(__APPLE_QUARTZ__) // PORTME: platform OpenGL management
g->pixelformat = fmt;
# else
# error unsupported platform
@@ -242,7 +242,7 @@ GLContext fl_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int lay
return context;
}
-# elif defined(__APPLE_QUARTZ__)
+# elif defined(__APPLE_QUARTZ__) // PORTME: platform OpenGL management
GLContext fl_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int layer) {
GLContext context, shared_ctx = 0;
@@ -270,7 +270,7 @@ void fl_set_gl_context(Fl_Window* w, GLContext context) {
glXMakeCurrent(fl_display, fl_xid(w), context);
# elif defined(WIN32)
wglMakeCurrent(Fl_X::i(w)->private_dc, context);
-# elif defined(__APPLE_QUARTZ__)
+# elif defined(__APPLE_QUARTZ__) // PORTME: platform OpenGL management
Fl_X::GLcontext_makecurrent(context);
# else
# error unsupported platform
@@ -285,7 +285,7 @@ void fl_no_gl_context() {
glXMakeCurrent(fl_display, 0, 0);
# elif defined(WIN32)
wglMakeCurrent(0, 0);
-# elif defined(__APPLE_QUARTZ__)
+# elif defined(__APPLE_QUARTZ__) // PORTME: platform OpenGL management
Fl_X::GL_cleardrawable();
# else
# error unsupported platform
@@ -298,7 +298,7 @@ void fl_delete_gl_context(GLContext context) {
glXDestroyContext(fl_display, context);
# elif defined(WIN32)
wglDeleteContext(context);
-# elif defined(__APPLE_QUARTZ__)
+# elif defined(__APPLE_QUARTZ__) // PORTME: platform OpenGL management
Fl_X::GLcontext_release(context);
# else
# error unsupported platform