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
use *;
pub type void = c_void;
pub type GLenum = c_uint;
pub type GLboolean = c_uchar;
pub type GLbitfield = c_uint;
//pub type GLbyte = i8;
pub type GLubyte = u8;
//pub type GLshort = i16;
//pub type GLushort = u16;
pub type GLint = c_int;
pub type GLuint = c_uint;
//pub type GLclampx = i32;
pub type GLsizei = c_int;
pub type GLfloat = c_float;
//pub type GLclampf = c_float;
pub type GLdouble = c_double;
//pub type GLclampd = c_double;
pub type GLchar = c_char;
//pub type GLcharARB = c_char;
//pub type GLhalf = u16;
//pub type GLhalfARB = u16;
//pub type GLfixed = i32;
pub type GLintptr = intptr_t;
//pub type GLintptrARB = intptr_t;
pub type GLsizeiptr = ssize_t;
//pub type GLsizeiptrARB = ssize_t;
//pub type GLint64 = i64;
//pub type GLint64EXT = i64;
//pub type GLuint64 = u64;
//pub type GLuint64EXT = u64;
pub type GLDEBUGPROC = unsafe extern "system" fn;
//pub type GLDEBUGPROCARB = GLDEBUGPROC;
//pub type GLDEBUGPROCKHR = GLDEBUGPROC;
//pub type GLDEBUGPROCAMD = unsafe extern "system" fn(id: GLuint,
// category: GLenum, severity: GLenum, length: GLsizei, message: *const
// GLchar, userParam: *mut c_void);