summaryrefslogtreecommitdiff
path: root/src/c_fl_gl_window.h
blob: 6177db62dc6e9ec686ad772a8500f6cdfdc5afa1 (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


//  Programmed by Jedidiah Barber
//  Released into the public domain


#ifndef FL_GL_WINDOW_GUARD
#define FL_GL_WINDOW_GUARD


typedef void* GLWINDOW;


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_show2(GLWINDOW w, int c, void * v);
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" 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);
extern "C" void fl_gl_window_set_mode(GLWINDOW w, unsigned int a);
extern "C" int fl_gl_window_static_can_do(unsigned 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_invalidate(GLWINDOW w);
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);


extern "C" void fl_gl_window_draw(GLWINDOW n);
extern "C" int fl_gl_window_handle(GLWINDOW n, int e);


#endif