File: glcanvas.h

package info (click to toggle)
libforms 1.0.93sp1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 11,548 kB
  • ctags: 9,107
  • sloc: ansic: 97,227; sh: 9,236; makefile: 858
file content (61 lines) | stat: -rw-r--r-- 1,496 bytes parent folder | download | duplicates (7)
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
#ifndef FL_GLCANVAS_H
#define FL_GLCANVAS_H

#if defined( __cplusplus )
extern "C"
{
#endif

#include <GL/glx.h>


/* OpenGL canvases */

FL_EXPORT FL_OBJECT * fl_create_glcanvas( int          type,
										  FL_Coord     x,
										  FL_Coord     y,
										  FL_Coord     w,
										  FL_Coord     h,
										  const char * label );

FL_EXPORT FL_OBJECT * fl_add_glcanvas( int          type,
									   FL_Coord     x,
									   FL_Coord     y,
									   FL_Coord     w,
									   FL_Coord     h,
									   const char * label );

FL_EXPORT void fl_set_glcanvas_defaults( const int * config );

FL_EXPORT void fl_get_glcanvas_defaults( int * cconfig );

FL_EXPORT void fl_set_glcanvas_attributes( FL_OBJECT * ob,
										   const int * config );

FL_EXPORT void fl_get_glcanvas_attributes( FL_OBJECT * ob,
										   int       * attributes );

FL_EXPORT void fl_set_glcanvas_direct( FL_OBJECT * ob,
									   int         direct );

FL_EXPORT void fl_activate_glcanvas( FL_OBJECT * ob );

FL_EXPORT XVisualInfo * fl_get_glcanvas_xvisualinfo( FL_OBJECT * ob );

FL_EXPORT GLXContext fl_get_glcanvas_context( FL_OBJECT * ob );

FL_EXPORT Window fl_glwincreate( int        * config,
								 GLXContext * context,
								 int          w,
								 int          h );

FL_EXPORT Window fl_glwinopen( int        * config,
							   GLXContext * context,
							   int          w,
							   int          h );

#if defined( __cplusplus )
}
#endif

#endif /* NOT FL_GLCANVAS_H */