From e93b9bbc02e2791f3a35b6f077fcbb8514c28aed Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 12 Jan 2025 01:14:58 +1300 Subject: Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there --- src/c_fl_gl_window.h | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'src/c_fl_gl_window.h') diff --git a/src/c_fl_gl_window.h b/src/c_fl_gl_window.h index 6d91724..0079008 100644 --- a/src/c_fl_gl_window.h +++ b/src/c_fl_gl_window.h @@ -8,28 +8,14 @@ #define FL_GL_WINDOW_GUARD - - typedef void* GLWINDOW; - - -extern "C" void gl_window_set_draw_hook(GLWINDOW n, void * d); -extern "C" void fl_gl_window_draw(GLWINDOW n); -extern "C" void gl_window_set_handle_hook(GLWINDOW n, void * h); -extern "C" int fl_gl_window_handle(GLWINDOW n, int e); - - - - extern "C" GLWINDOW new_fl_gl_window(int x, int y, int w, int h, char* label); extern "C" GLWINDOW new_fl_gl_window2(int w, int h, char* label); extern "C" void free_fl_gl_window(GLWINDOW w); - - extern "C" void fl_gl_window_show(GLWINDOW w); extern "C" void fl_gl_window_hide(GLWINDOW w); extern "C" void fl_gl_window_hide_overlay(GLWINDOW w); @@ -39,6 +25,7 @@ extern "C" void fl_gl_window_flush(GLWINDOW w); extern "C" int fl_gl_window_pixel_h(GLWINDOW w); extern "C" int fl_gl_window_pixel_w(GLWINDOW w); extern "C" float fl_gl_window_pixels_per_unit(GLWINDOW w); +extern "C" void fl_gl_window_resize(GLWINDOW gw, int x, int y, int w, int h); extern "C" unsigned int fl_gl_window_get_mode(GLWINDOW w); @@ -63,5 +50,10 @@ extern "C" void fl_gl_window_redraw_overlay(GLWINDOW w); extern "C" void fl_gl_window_swap_buffers(GLWINDOW w); +extern "C" void fl_gl_window_draw(GLWINDOW n); +extern "C" int fl_gl_window_handle(GLWINDOW n, int e); + + #endif + -- cgit