summaryrefslogtreecommitdiffstats
path: root/include/GL
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-12-07 14:48:19 +0000
committerBrian Paul <[email protected]>2005-12-07 14:48:19 +0000
commit0fa8c59e646b214ea61c077f723e8ffe1cc06733 (patch)
treec55b85a279eba315344d5954452bfda0705c7c1d /include/GL
parent98bebc7212a47f97ef6d15d4fca45a0fa608aea2 (diff)
Updates for GL_EXT_timer_query:
New GLint64EXT and GLuint64EXT types (use C99's long long types). New glGetQueryObject[u]i64vEXT() functions.
Diffstat (limited to 'include/GL')
-rw-r--r--include/GL/gl.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/GL/gl.h b/include/GL/gl.h
index bc41cd554ad..75c61672444 100644
--- a/include/GL/gl.h
+++ b/include/GL/gl.h
@@ -2231,14 +2231,32 @@ typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLen
#endif /* GL_ATI_blend_equation_separate */
+
#ifndef GL_EXT_timer_query
#define GL_EXT_timer_query 1
+/* Define 64-bit types */
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ typedef long long int GLint64EXT;
+ typedef unsigned long long int GLuint64EXT;
+#else
+ /* this might actually be a 32-bit type */
+ typedef long int GLint64_EXT;
+ typedef unsigned long int GLuint64_EXT;
+#endif
+
#define GL_TIME_ELAPSED_EXT 0x88BF
+GLAPI void GLAPIENTRY glGetQueryObjecti64vEXT(GLuint id, GLenum pname, GLint64EXT *params);
+GLAPI void GLAPIENTRY glGetQueryObjectui64vEXT(GLuint id, GLenum pname, GLuint64EXT *params);
+
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64EXT *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64EXT *params);
+
#endif /* GL_EXT_timer_query */
+
#ifndef GL_EXT_packed_depth_stencil
#define GL_EXT_packed_depth_stencil 1