diff options
author | David Schleef <ds@schleef.org> | 2007-12-16 00:16:46 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2007-12-16 00:16:46 +0000 |
commit | 1fab43e619a4d0de7d7edba66b5ed5ec60f99652 (patch) | |
tree | 1a29b657d5d702e26497f707a0800ec76c6d5934 /sys/glsink/glextensions.h | |
parent | 601b1f640bc499060330a17c921e296823da9e3f (diff) | |
download | gst-plugins-bad-1fab43e619a4d0de7d7edba66b5ed5ec60f99652.tar.gz gst-plugins-bad-1fab43e619a4d0de7d7edba66b5ed5ec60f99652.tar.bz2 gst-plugins-bad-1fab43e619a4d0de7d7edba66b5ed5ec60f99652.zip |
sys/glsink/: Add vblank synchronization. Isn't really working on my driver. :(
Original commit message from CVS:
* sys/glsink/Makefile.am:
* sys/glsink/glextensions.c:
* sys/glsink/glextensions.h:
* sys/glsink/glvideo.c:
Add vblank synchronization. Isn't really working on my
driver. :(
Diffstat (limited to 'sys/glsink/glextensions.h')
-rw-r--r-- | sys/glsink/glextensions.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/glsink/glextensions.h b/sys/glsink/glextensions.h new file mode 100644 index 00000000..fd3f8ea7 --- /dev/null +++ b/sys/glsink/glextensions.h @@ -0,0 +1,34 @@ +#ifndef __GST_GLEXTENSIONS_H__ +#define __GST_GLEXTENSIONS_H__ + +#include <GL/gl.h> +#include <glib.h> + +int gl_have_extension (const char *name); + +GLhandleARB glCreateShaderObjectARB (GLenum shaderType); +void glShaderSourceARB (GLhandleARB shaderObj, GLsizei count, const GLcharARB ** string, const GLint *length); +void glUniform2fARB (GLint location, GLfloat val1, GLfloat val2); +GLint glGetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name); +void glUniform1iARB (GLint location, GLint val); +void glCompileShaderARB (GLhandleARB shader); +void glGetObjectParameterivARB (GLhandleARB object, GLenum pname, GLint *params); +void glGetInfoLogARB (GLhandleARB object, GLsizei maxLength, GLsizei *length, + GLcharARB *infoLog); +GLhandleARB glCreateProgramObjectARB (void); +void glAttachObjectARB (GLhandleARB program, GLhandleARB shader); +void glLinkProgramARB (GLhandleARB program); +void glUseProgramObjectARB (GLhandleARB program); +void glPixelDataRangeNV(GLenum target, GLsizei length, void *pointer); +void glActiveTexture(GLenum target); +Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *); +Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *); +int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t); +Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *); +Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *); +int glXSwapIntervalSGI (int); +int glXSwapIntervalMESA (unsigned int); + + +#endif + |