From Pavel Moloshtan, added support of Drawable::Extensions::glDeleteQueries()

This commit is contained in:
Robert Osfield 2005-06-16 13:53:52 +00:00
parent 3a0b742461
commit 1641cd7b54
2 changed files with 9 additions and 0 deletions

View File

@ -607,6 +607,7 @@ class OSG_EXPORT Drawable : public Object
void glBeginQuery(GLenum target, GLuint id) const;
void glEndQuery(GLenum target) const;
GLboolean glIsQuery(GLuint id) const;
void glDeleteQueries(GLsizei n, const GLuint *ids) const;
void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) const;
void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) const;

View File

@ -1294,6 +1294,14 @@ GLboolean Drawable::Extensions::glIsQuery(GLuint id) const
return false;
}
void Drawable::Extensions::glDeleteQueries(GLsizei n, const GLuint *ids) const
{
if (_gl_delete_queries_arb)
_gl_delete_queries_arb(n, ids);
else
osg::notify(osg::WARN) << "Error: glIsQuery not supported by OpenGL driver" << std::endl;
}
void Drawable::Extensions::glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) const
{
if (_gl_get_query_objectiv_arb)