diff options
Diffstat (limited to 'app/gfx')
-rw-r--r-- | app/gfx/gl/generate_bindings.py | 7 | ||||
-rw-r--r-- | app/gfx/gl/gl_interface.h | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app/gfx/gl/generate_bindings.py b/app/gfx/gl/generate_bindings.py index 0bfb5c7..1e8e47a 100644 --- a/app/gfx/gl/generate_bindings.py +++ b/app/gfx/gl/generate_bindings.py @@ -242,6 +242,13 @@ GL_FUNCTIONS = [ 'GLuint indx, GLint size, GLenum type, GLboolean normalized, ' 'GLsizei stride, const void* ptr'], ['void', ['glViewport'], 'GLint x, GLint y, GLsizei width, GLsizei height'], +['void', ['glGenFencesNV'], 'GLsizei n, GLuint* fences'], +['void', ['glDeleteFencesNV'], 'GLsizei n, const GLuint* fences'], +['void', ['glSetFenceNV'], 'GLuint fence, GLenum condition'], +['GLboolean', ['glTestFenceNV'], 'GLuint fence'], +['void', ['glFinishFenceNV'], 'GLuint fence'], +['GLboolean', ['glIsFenceNV'], 'GLuint fence'], +['void', ['glGetFenceivNV'], 'GLuint fence, GLenum pname, GLint* params'], ] OSMESA_FUNCTIONS = [ diff --git a/app/gfx/gl/gl_interface.h b/app/gfx/gl/gl_interface.h index f4c6025..b26acb1 100644 --- a/app/gfx/gl/gl_interface.h +++ b/app/gfx/gl/gl_interface.h @@ -409,6 +409,20 @@ class GLInterface { virtual GLuint GetMaxValueInBufferCHROMIUM( GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) = 0; + virtual void GenFencesNV(GLsizei n, GLuint *fences) = 0; + + virtual void DeleteFencesNV(GLsizei n, const GLuint *fences) = 0; + + virtual void SetFenceNV(GLuint fence, GLenum condition) = 0; + + virtual GLboolean TestFenceNV(GLuint fence) = 0; + + virtual void FinishFenceNV(GLuint fence) = 0; + + virtual GLboolean IsFenceNV(GLuint fence) = 0; + + virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0; + private: static GLInterface* interface_; }; |