MythTV  master
mythrender_opengl_defs.h
Go to the documentation of this file.
1 #ifndef MYTHRENDER_OPENGL_DEFS_H_
2 #define MYTHRENDER_OPENGL_DEFS_H_
3 
4 // OpenGL ES 2.0 workarounds
5 #ifndef GL_RGBA
6 #define GL_RGBA 0x1908
7 #endif
8 #ifndef GL_RGBA8
9 #define GL_RGBA8 GL_RGBA
10 #endif
11 #ifndef GL_RGBA16
12 #ifdef GL_EXT_texture_norm16
13 #define GL_RGBA16 GL_RGBA16_EXT
14 #else
15 #define GL_RGBA16 0x805B
16 #endif
17 #endif
18 // end workarounds
19 
20 #ifndef GL_GENERATE_MIPMAP_SGIS
21 #define GL_GENERATE_MIPMAP_SGIS 0x8191
22 #endif
23 
24 #ifndef GL_GENERATE_MIPMAP_HINT_SGIS
25 #define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192
26 #endif
27 
28 #ifndef GL_MAX_TEXTURE_UNITS
29 #define GL_MAX_TEXTURE_UNITS 0x84E2
30 #endif
31 
32 #ifndef GL_TEXTTURE0
33 #define GL_TEXTURE0 0x84C0
34 #endif
35 
36 #ifndef GL_TEXTURE_RECTANGLE_ARB
37 #define GL_TEXTURE_RECTANGLE_ARB 0x84F5
38 #endif
39 
40 #ifndef GL_TEXTURE_RECTANGLE_EXT
41 #define GL_TEXTURE_RECTANGLE_EXT 0x84F5
42 #endif
43 
44 #ifndef GL_TEXTURE_RECTANGLE_NV
45 #define GL_TEXTURE_RECTANGLE_NV 0x84F5
46 #endif
47 
48 #ifndef GL_FRAMEBUFFER
49 #define GL_FRAMEBUFFER 0x8D40
50 #endif
51 #ifndef GL_COLOR_ATTACHMENT0
52 #define GL_COLOR_ATTACHMENT0 0x8CE0
53 #endif
54 #ifndef GL_FRAMEBUFFER_COMPLETE
55 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
56 #endif
57 #ifndef GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
58 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
59 #endif
60 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
61 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
62 #endif
63 #ifndef GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT
64 #define GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT 0x8CD8
65 #endif
66 #ifndef GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
67 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
68 #endif
69 #ifndef GL_FRAMEBUFFER_INCOMPLETE_FORMATS
70 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS 0x8CDA
71 #endif
72 #ifndef GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER
73 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
74 #endif
75 #ifndef GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER
76 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
77 #endif
78 #ifndef GL_FRAMEBUFFER_UNSUPPORTED
79 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
80 #endif
81 
82 #ifndef GL_ARRAY_BUFFER
83 #define GL_ARRAY_BUFFER 0x8892
84 #endif
85 
86 #ifndef GL_PIXEL_UNPACK_BUFFER
87 #define GL_PIXEL_UNPACK_BUFFER 0x88EC
88 #endif
89 
90 #ifndef GL_STREAM_DRAW
91 #define GL_STREAM_DRAW 0x88E0
92 #endif
93 
94 #ifndef GL_WRITE_ONLY
95 #define GL_WRITE_ONLY 0x88B9
96 #endif
97 
98 #ifndef GL_NV_fence
99 #define GL_ALL_COMPLETED_NV 0x84F2
100 #endif
101 
102 #ifndef GL_YCBCR_MESA
103 #define GL_YCBCR_MESA 0x8757
104 #endif
105 #ifndef GL_YCBCR_422_APPLE
106 #define GL_YCBCR_422_APPLE 0x85B9
107 #endif
108 #ifndef GL_UNSIGNED_SHORT_8_8_MESA
109 #define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA
110 #endif
111 
112 #ifndef APIENTRY
113 #define APIENTRY
114 #endif
115 
116 typedef void (APIENTRY * MYTH_GLACTIVETEXTUREPROC)
117  (GLenum texture);
118 
119 typedef ptrdiff_t MYTH_GLsizeiptr;
120 typedef GLvoid* (APIENTRY * MYTH_GLMAPBUFFERPROC)
121  (GLenum target, GLenum access);
122 typedef void (APIENTRY * MYTH_GLBINDBUFFERPROC)
123  (GLenum target, GLuint buffer);
124 typedef void (APIENTRY * MYTH_GLGENBUFFERSPROC)
125  (GLsizei n, GLuint *buffers);
126 typedef void (APIENTRY * MYTH_GLBUFFERDATAPROC)
127  (GLenum target, MYTH_GLsizeiptr size, const GLvoid *data, GLenum usage);
128 typedef GLboolean (APIENTRY * MYTH_GLUNMAPBUFFERPROC)
129  (GLenum target);
130 typedef void (APIENTRY * MYTH_GLDELETEBUFFERSPROC)
131  (GLsizei n, const GLuint *buffers);
132 typedef void (APIENTRY * MYTH_GLGENFRAMEBUFFERSPROC)
133  (GLsizei n, GLuint *framebuffers);
134 typedef void (APIENTRY * MYTH_GLBINDFRAMEBUFFERPROC)
135  (GLenum target, GLuint framebuffer);
137  (GLenum target, GLenum attachment,
138  GLenum textarget, GLuint texture, GLint level);
140  (GLenum target);
142  (GLsizei n, const GLuint *framebuffers);
143 typedef void (APIENTRY * MYTH_GLDELETEFENCESNVPROC)
144  (GLsizei n, const GLuint *fences);
145 typedef void (APIENTRY * MYTH_GLGENFENCESNVPROC)
146  (GLsizei n, GLuint *fences);
147 typedef void (APIENTRY * MYTH_GLFINISHFENCENVPROC)
148  (GLuint fence);
149 typedef void (APIENTRY * MYTH_GLSETFENCENVPROC)
150  (GLuint fence, GLenum condition);
151 typedef void ( * MYTH_GLGENFENCESAPPLEPROC)
152  (GLsizei n, GLuint *fences);
153 typedef void ( * MYTH_GLDELETEFENCESAPPLEPROC)
154  (GLsizei n, const GLuint *fences);
155 typedef void ( * MYTH_GLSETFENCEAPPLEPROC)
156  (GLuint fence);
157 typedef void ( * MYTH_GLFINISHFENCEAPPLEPROC)
158  (GLuint fence);
159 #endif
void(APIENTRY * MYTH_GLBUFFERDATAPROC)(GLenum target, MYTH_GLsizeiptr size, const GLvoid *data, GLenum usage)
GLvoid *(APIENTRY * MYTH_GLMAPBUFFERPROC)(GLenum target, GLenum access)
void(* MYTH_GLDELETEFENCESAPPLEPROC)(GLsizei n, const GLuint *fences)
ptrdiff_t MYTH_GLsizeiptr
GLenum(APIENTRY * MYTH_GLCHECKFRAMEBUFFERSTATUSPROC)(GLenum target)
void(APIENTRY * MYTH_GLGENFRAMEBUFFERSPROC)(GLsizei n, GLuint *framebuffers)
void(* MYTH_GLSETFENCEAPPLEPROC)(GLuint fence)
GLboolean(APIENTRY * MYTH_GLUNMAPBUFFERPROC)(GLenum target)
void(APIENTRY * MYTH_GLSETFENCENVPROC)(GLuint fence, GLenum condition)
void(APIENTRY * MYTH_GLDELETEFENCESNVPROC)(GLsizei n, const GLuint *fences)
void(APIENTRY * MYTH_GLFRAMEBUFFERTEXTURE2DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
void(APIENTRY * MYTH_GLACTIVETEXTUREPROC)(GLenum texture)
static void usage(char *progname)
Definition: replex.c:2385
void(* MYTH_GLFINISHFENCEAPPLEPROC)(GLuint fence)
void(APIENTRY * MYTH_GLFINISHFENCENVPROC)(GLuint fence)
void(APIENTRY * MYTH_GLGENFENCESNVPROC)(GLsizei n, GLuint *fences)
void(APIENTRY * MYTH_GLBINDBUFFERPROC)(GLenum target, GLuint buffer)
void(* MYTH_GLGENFENCESAPPLEPROC)(GLsizei n, GLuint *fences)
void(APIENTRY * MYTH_GLDELETEFRAMEBUFFERSPROC)(GLsizei n, const GLuint *framebuffers)
void(APIENTRY * MYTH_GLGENBUFFERSPROC)(GLsizei n, GLuint *buffers)
void(APIENTRY * MYTH_GLDELETEBUFFERSPROC)(GLsizei n, const GLuint *buffers)
#define APIENTRY
void(APIENTRY * MYTH_GLBINDFRAMEBUFFERPROC)(GLenum target, GLuint framebuffer)