1 #ifndef OPENGL_HEADER_GUARD
2 #define OPENGL_HEADER_GUARD
51 static int singleBufferAttributes[] = {
52 GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT,
53 GLX_RENDER_TYPE, GLX_RGBA_BIT,
59 static int doubleBufferAttributes[] = {
60 GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT,
61 GLX_RENDER_TYPE, GLX_RGBA_BIT,
62 GLX_DOUBLEBUFFER, True,
74 int readbytes(
const char* fname,
char*& buffer);
75 int readyuvbytes(
const char* fname, GLubyte*& Y, GLubyte*& U, GLubyte*& V);
76 void zeroyuvbytes(
int ysize, GLubyte*& Y, GLubyte*& U, GLubyte*& V);
78 void getPBO(GLuint& index, GLsizei size, GLubyte*& payload);
79 void releasePBO(GLuint* index, GLubyte* payload);
81 void getTEX(GLuint& index, GLint internal_format, GLint format, GLsizei w, GLsizei h);
Constant/default values, version numbers.
int readyuvbytes(const char *fname, GLubyte *&Y, GLubyte *&U, GLubyte *&V)
Auxiliary routine for testing.
Definition: opengl.cpp:82
void getTEX(GLuint &index, GLint internal_format, GLint format, GLsizei w, GLsizei h)
Get texture from the GPU.
Definition: opengl.cpp:185
int readbytes(const char *fname, char *&buffer)
Definition: opengl.cpp:62
void zeroyuvbytes(int ysize, GLubyte *&Y, GLubyte *&U, GLubyte *&V)
Auxiliary routine for testing.
Definition: opengl.cpp:126
void getPBO(GLuint &index, GLsizei size, GLubyte *&payload)
Get PBO from the GPU. There are two versions of this function: other one can be enabled in source for...
Definition: opengl.cpp:157
GLX parameter groups.
Definition: opengl.h:50
int is_glx_extension_supported(Display *dpy, const char *query)
// ripped off from glxgears.c Determine whether or not a GLX extension is supported.
Definition: opengl.cpp:45