diff options
author | David Schleef <ds@schleef.org> | 2007-12-21 00:03:11 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2007-12-21 00:03:11 +0000 |
commit | bb4e1d10e99c206fdf0ca22a43ef20efa24236ef (patch) | |
tree | 5d99e25822404edf4c91fd1e96ee33be00cee66b /sys/glsink/glextensions.c | |
parent | 1bc2202132e729b40e002eb98520ee7b2a788149 (diff) | |
download | gst-plugins-bad-bb4e1d10e99c206fdf0ca22a43ef20efa24236ef.tar.gz gst-plugins-bad-bb4e1d10e99c206fdf0ca22a43ef20efa24236ef.tar.bz2 gst-plugins-bad-bb4e1d10e99c206fdf0ca22a43ef20efa24236ef.zip |
sys/glsink/: Switch to using framebuffer_objects instead of GLXPixmaps, because that's what my driver supports. Remo...
Original commit message from CVS:
* sys/glsink/Makefile.am:
* sys/glsink/glextensions.c:
* sys/glsink/glextensions.h:
* sys/glsink/glimagesink.c:
* sys/glsink/glimagesink.h:
* sys/glsink/glvideo.c:
* sys/glsink/glvideo.h:
* sys/glsink/gstglbuffer.c:
* sys/glsink/gstglbuffer.h:
* sys/glsink/gstgldownload.c:
* sys/glsink/gstglfilter.c:
* sys/glsink/gstglupload.c:
* sys/glsink/gstopengl.c:
Switch to using framebuffer_objects instead of GLXPixmaps,
because that's what my driver supports. Remove GLDrawable,
since GstGLDisplay now has a default drawable and context.
Diffstat (limited to 'sys/glsink/glextensions.c')
-rw-r--r-- | sys/glsink/glextensions.c | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/sys/glsink/glextensions.c b/sys/glsink/glextensions.c index 31b862e3..6c48e8b2 100644 --- a/sys/glsink/glextensions.c +++ b/sys/glsink/glextensions.c @@ -122,3 +122,60 @@ DEFINE_FUNC_RET (glXWaitForSbcOML, Bool, DEFINE_FUNC_RET (glXSwapIntervalSGI, int, (int interval), (interval)); DEFINE_FUNC_RET (glXSwapIntervalMESA, int, (unsigned int interval), (interval)); + +#if 0 +DEFINE_FUNC (glBindFramebufferEXT, (int target, uint framebuffer), + (target, framebuffer)); + +DEFINE_FUNC (glDeleteRenderbuffersEXT, (int n, unsigned int *renderbuffers), + (n, renderbuffers)); +DEFINE_FUNC (glGenRenderbuffersEXT, (int n, unsigned int *renderbuffers), + (n, renderbuffers)); +DEFINE_FUNC (glRenderbufferStorageEXT, (int target, int internalformat, + int width, int height), (target, internalformat, width, height)); +DEFINE_FUNC (glBindRenderbufferEXT, (int target, unsigned int renderbuffer), + (target, renderbuffer)); +DEFINE_FUNC (glFramebufferRenderbufferEXT, + (int target, int attachment, int renderbuffertarget, + unsigned int renderbuffer), (target, attachment, renderbuffertarget, + renderbuffer)); +#endif + +/* EXT_framebuffer_object */ +DEFINE_FUNC_RET (glIsRenderbufferEXT, Bool, + (GLuint renderbuffer), (renderbuffer)); +DEFINE_FUNC (glBindRenderbufferEXT, + (GLenum target, GLuint renderbuffer), (target, renderbuffer)); +DEFINE_FUNC (glDeleteRenderbuffersEXT, + (GLsizei n, GLuint * renderbuffers), (n, renderbuffers)); +DEFINE_FUNC (glGenRenderbuffersEXT, + (GLsizei n, GLuint * renderbuffers), (n, renderbuffers)); +DEFINE_FUNC (glRenderbufferStorageEXT, + (GLenum target, GLenum internalformat, GLsizei width, GLsizei height), + (target, internalformat, width, height)); +DEFINE_FUNC (glGetRenderbufferParameterivEXT, + (GLenum target, GLenum pname, GLint * params), (target, pname, params)); +DEFINE_FUNC_RET (glIsFramebufferEXT, Bool, (GLuint framebuffer), (framebuffer)); +DEFINE_FUNC (glBindFramebufferEXT, + (GLenum target, GLuint framebuffer), (target, framebuffer)); +DEFINE_FUNC (glDeleteFramebuffersEXT, + (GLsizei n, GLuint * framebuffers), (n, framebuffers)); +DEFINE_FUNC (glGenFramebuffersEXT, + (GLsizei n, GLuint * framebuffers), (n, framebuffers)); +DEFINE_FUNC_RET (glCheckFramebufferStatusEXT, GLenum, + (GLenum target), (target)); +DEFINE_FUNC (glFramebufferTexture1DEXT, + (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, + GLint level), (target, attachment, textarget, texture, level)); +DEFINE_FUNC (glFramebufferTexture2DEXT, (GLenum target, GLenum attachment, + GLenum textarget, GLuint texture, GLint level), (target, attachment, + textarget, texture, level)); +DEFINE_FUNC (glFramebufferTexture3DEXT, (GLenum target, GLenum attachment, + GLenum textarget, GLuint texture, GLint level, GLint zoffset), (target, + attachment, textarget, texture, level, zoffset)); +DEFINE_FUNC (glFramebufferRenderbufferEXT, (GLenum target, GLenum attachment, + GLenum renderbuffertarget, GLuint renderbuffer), (target, attachment, + renderbuffertarget, renderbuffer)); +DEFINE_FUNC (glGetFramebufferAttachmentParameterivEXT, (GLenum target, + GLenum pname, GLint * params), (target, pname, params)); +DEFINE_FUNC (glGenerateMipmapEXT, (GLenum target), (target)); |