summaryrefslogtreecommitdiff
path: root/src/c_fl_gl_window.h
blob: 134cb9cdff0686872964e4dff26b612c3dadbe84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63


#ifndef FL_GL_WINDOW_GUARD
#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);
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" int fl_gl_window_get_mode(GLWINDOW w);
extern "C" void fl_gl_window_set_mode(GLWINDOW w, int a);
extern "C" int fl_gl_window_static_can_do(int m);
extern "C" int fl_gl_window_can_do(GLWINDOW w);
extern "C" int fl_gl_window_can_do_overlay(GLWINDOW w);


extern "C" void * fl_gl_window_get_context(GLWINDOW w);
extern "C" void fl_gl_window_set_context(GLWINDOW w, void * con, int des);
extern "C" char fl_gl_window_context_valid(GLWINDOW w);
extern "C" void fl_gl_window_set_context_valid(GLWINDOW w, char v);
extern "C" char fl_gl_window_valid(GLWINDOW w);
extern "C" void fl_gl_window_set_valid(GLWINDOW w, char v);
extern "C" void fl_gl_window_make_current(GLWINDOW w);
extern "C" void fl_gl_window_make_overlay_current(GLWINDOW w);


extern "C" void fl_gl_window_ortho(GLWINDOW w);
extern "C" void fl_gl_window_redraw_overlay(GLWINDOW w);
extern "C" void fl_gl_window_swap_buffers(GLWINDOW w);


#endif