MythTV  master
mythrender_opengl_defs2.h
Go to the documentation of this file.
1 #ifndef MYTHRENDER_OPENGL_DEFS2_H
2 #define MYTHRENDER_OPENGL_DEFS2_H
3 
4 #ifndef APIENTRY
5 #define APIENTRY
6 #endif
7 
8 #ifndef GL_VERSION_2_0
9 typedef char GLchar;
10 #endif
11 #ifndef GL_ARB_shader_objects
12 typedef char GLcharARB;
13 #endif
14 
15 #ifndef GL_FRAGMENT_SHADER
16 #define GL_FRAGMENT_SHADER 0x8B30
17 #endif
18 #ifndef GL_VERTEX_SHADER
19 #define GL_VERTEX_SHADER 0x8B31
20 #endif
21 #ifndef GL_OBJECT_LINK_STATUS
22 #define GL_OBJECT_LINK_STATUS 0x8B82
23 #endif
24 #ifndef GL_OBJECT_INFO_LOG_LENGTH
25 #define GL_OBJECT_INFO_LOG_LENGTH 0x8B84
26 #endif
27 
28 #ifndef GL_COMPILE_STATUS
29 #define GL_COMPILE_STATUS 0x8B81
30 #endif
31 #ifndef GL_INFO_LOG_LENGTH
32 #define GL_INFO_LOG_LENGTH 0x8B84
33 #endif
34 
35 typedef GLuint ( * MYTH_GLCREATESHADERPROC)
36  (GLenum shaderType);
37 typedef void ( * MYTH_GLSHADERSOURCEPROC)
38  (GLuint shader, int numOfStrings, const char **strings, const int *lenOfStrings);
39 typedef void ( * MYTH_GLCOMPILESHADERPROC)
40  (GLuint shader);
41 typedef void ( * MYTH_GLGETSHADERIVPROC)
42  (GLuint shader, GLenum pname, GLint *params);
43 typedef void ( * MYTH_GLGETSHADERINFOLOGPROC)
44  (GLuint shader, GLint maxlength, GLint *length, GLchar *infolog);
45 typedef void ( * MYTH_GLDELETEPROGRAMPROC)
46  (GLuint shader);
47 typedef GLuint ( * MYTH_GLCREATEPROGRAMPROC)
48  (void);
49 typedef void ( * MYTH_GLATTACHSHADERPROC)
50  (GLuint program, GLuint shader);
51 typedef void ( * MYTH_GLLINKPROGRAMPROC)
52  (GLuint program);
53 typedef void ( * MYTH_GLUSEPROGRAMPROC)
54  (GLuint program);
55 typedef void ( * MYTH_GLGETPROGRAMINFOLOGPROC)
56  (GLuint object, int maxLen, int *len, char *log);
57 typedef void ( * MYTH_GLGETPROGRAMIVPROC)
58  (GLuint object, GLenum type, int *param);
59 typedef void ( * MYTH_GLDETACHSHADERPROC)
60  (GLuint program, GLuint shader);
61 typedef void ( * MYTH_GLDELETESHADERPROC)
62  (GLuint id);
63 typedef GLint ( * MYTH_GLGETUNIFORMLOCATIONPROC)
64  (GLuint program, const char *name);
65 typedef void ( * MYTH_GLUNIFORM1IPROC)
66  (GLint location, GLint);
67 typedef void ( * MYTH_GLUNIFORM4FPROC)
68  (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
69 typedef void ( * MYTH_GLUNIFORMMATRIX4FVPROC)
70  (GLint location, GLint size, GLboolean transpose, const GLfloat *values);
71 typedef void ( * MYTH_GLVERTEXATTRIBPOINTERPROC)
72  (GLuint index, GLint size, GLenum type, GLboolean normalize,
73  GLsizei stride, const GLvoid *ptr);
74 typedef void ( * MYTH_GLENABLEVERTEXATTRIBARRAYPROC)
75  (GLuint index);
77  (GLuint index);
78 typedef void ( * MYTH_GLBINDATTRIBLOCATIONPROC)
79  (GLuint program, GLuint index, const GLcharARB *name);
80 typedef void ( * MYTH_GLVERTEXATTRIB4FPROC)
81  (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
82 
83 #endif // MYTHRENDER_OPENGL_DEFS2_H
void(* MYTH_GLUSEPROGRAMPROC)(GLuint program)
void(* MYTH_GLDISABLEVERTEXATTRIBARRAYPROC)(GLuint index)
void(* MYTH_GLBINDATTRIBLOCATIONPROC)(GLuint program, GLuint index, const GLcharARB *name)
void(* MYTH_GLSHADERSOURCEPROC)(GLuint shader, int numOfStrings, const char **strings, const int *lenOfStrings)
void(* MYTH_GLUNIFORM4FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
void(* MYTH_GLVERTEXATTRIBPOINTERPROC)(GLuint index, GLint size, GLenum type, GLboolean normalize, GLsizei stride, const GLvoid *ptr)
void(* MYTH_GLVERTEXATTRIB4FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
void(* MYTH_GLLINKPROGRAMPROC)(GLuint program)
GLuint(* MYTH_GLCREATESHADERPROC)(GLenum shaderType)
void(* MYTH_GLGETSHADERINFOLOGPROC)(GLuint shader, GLint maxlength, GLint *length, GLchar *infolog)
void(* MYTH_GLDELETESHADERPROC)(GLuint id)
void(* MYTH_GLGETSHADERIVPROC)(GLuint shader, GLenum pname, GLint *params)
def log(debug, txt)
Definition: utilities.py:5
GLint(* MYTH_GLGETUNIFORMLOCATIONPROC)(GLuint program, const char *name)
const char * name
Definition: ParseText.cpp:328
void(* MYTH_GLATTACHSHADERPROC)(GLuint program, GLuint shader)
char GLcharARB
void(* MYTH_GLENABLEVERTEXATTRIBARRAYPROC)(GLuint index)
GLuint(* MYTH_GLCREATEPROGRAMPROC)(void)
void(* MYTH_GLGETPROGRAMINFOLOGPROC)(GLuint object, int maxLen, int *len, char *log)
void(* MYTH_GLCOMPILESHADERPROC)(GLuint shader)
void(* MYTH_GLUNIFORM1IPROC)(GLint location, GLint)
void(* MYTH_GLDETACHSHADERPROC)(GLuint program, GLuint shader)
char GLchar
void(* MYTH_GLUNIFORMMATRIX4FVPROC)(GLint location, GLint size, GLboolean transpose, const GLfloat *values)
void(* MYTH_GLDELETEPROGRAMPROC)(GLuint shader)
void(* MYTH_GLGETPROGRAMIVPROC)(GLuint object, GLenum type, int *param)