summaryrefslogtreecommitdiff
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-11-24 22:30:32 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-11-24 22:30:32 +0000
commit62b6eb320e210225931f88fe71ba97814e214d14 (patch)
treeb188d49a38e2f6e1caf9ebd463b21b24bc1236d1 /src/mesa/glapi
parent76f51ca9ea105eed0f4c7ffb2d8ae25cdd969ab1 (diff)
generate the OpenGL 1.5 entrypoints
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/APIspec145
-rw-r--r--src/mesa/glapi/glapitemp.h114
-rw-r--r--src/mesa/glapi/glprocs.h23
3 files changed, 279 insertions, 3 deletions
diff --git a/src/mesa/glapi/APIspec b/src/mesa/glapi/APIspec
index e6db05527f..390a006e2a 100644
--- a/src/mesa/glapi/APIspec
+++ b/src/mesa/glapi/APIspec
@@ -1,4 +1,4 @@
-# $Id: APIspec,v 1.20 2003/08/22 23:28:03 idr Exp $
+# $Id: APIspec,v 1.21 2003/11/24 22:30:32 brianp Exp $
# This file describes all the OpenGL functions.
# We use a number of Python scripts to parse this file and
@@ -8424,6 +8424,149 @@ offset 707
+# OpenGL 1.5 functions
+
+name BindBuffer
+alias BindBufferARB
+return void
+param target GLenum
+param buffer GLuint
+category 1.5
+
+name BufferData
+alias BufferDataARB
+return void
+param target GLenum
+param size GLsizeiptrARB
+param data const GLvoid *
+param usage GLenum
+category 1.5
+
+name BufferSubData
+alias BufferSubDataARB
+return void
+param target GLenum
+param size GLsizeiptrARB
+param data const GLvoid *
+category 1.5
+
+name DeleteBuffers
+alias DeleteBuffersARB
+return void
+param n GLsizei
+param buffer const GLuint *
+category 1.5
+
+name GenBuffers
+alias GenBuffersARB
+return void
+param n GLsizei
+param buffer GLuint *
+category 1.5
+
+name GetBufferParameteriv
+alias GetBufferParameterivARB
+return void
+param target GLenum
+param pname GLenum
+param params GLint *
+category 1.5
+
+name GetBufferPointerv
+alias GetBufferPointervARB
+return void
+param target GLenum
+param pname GLenum
+param params GLvoid **
+category 1.5
+
+name GetBufferSubData
+alias GetBufferSubDataARB
+return void
+param target GLenum
+param size GLsizeiptrARB
+param data void *
+category 1.5
+
+name IsBuffer
+alias IsBufferARB
+return GLboolean
+param buffer GLuint
+category 1.5
+
+name MapBuffer
+alias MapBufferARB
+return void *
+param target GLenum
+param access GLenum
+category 1.5
+
+name UnmapBuffer
+alias UnmapBufferARB
+return GLboolean
+param target GLenum
+category 1.5
+
+
+name GenQueries
+alias GenQueriesARB
+return void
+param n GLsizei
+param ids GLuint *
+category 1.5
+
+name DeleteQueries
+alias DeleteQueriesARB
+return void
+param n GLsizei
+param ids const GLuint *
+category 1.5
+
+name IsQuery
+alias IsQueryARB
+return GLboolean
+param id GLuint
+category 1.5
+
+name BeginQuery
+alias BeginQueryARB
+return void
+param target GLenum
+param id GLuint
+category 1.5
+
+name EndQuery
+alias EndQueryARB
+return void
+param target GLenum
+category 1.5
+
+name GetQueryiv
+alias GetQueryivARB
+return void
+param target GLenum
+param pname GLenum
+param params GLint *
+category 1.5
+
+name GetQueryObjectiv
+alias GetQueryObjectivARB
+return void
+param id GLuint
+param pname GLenum
+param params GLint *
+category GL_ARB_occlusion_query
+
+name GetQueryObjectuiv
+alias GetQueryObjectuivARB
+return void
+param id GLuint
+param pname GLenum
+param params GLuint *
+category GL_ARB_occlusion_query
+
+
+
# end of file sentinal
name dummy
diff --git a/src/mesa/glapi/glapitemp.h b/src/mesa/glapi/glapitemp.h
index 32c003168d..52c422717e 100644
--- a/src/mesa/glapi/glapitemp.h
+++ b/src/mesa/glapi/glapitemp.h
@@ -4672,6 +4672,101 @@ KEYWORD1 void KEYWORD2 NAME(GetQueryObjectuivARB)(GLuint id, GLenum pname, GLuin
DISPATCH(GetQueryObjectuivARB, (id, pname, params), (F, "glGetQueryObjectuivARB(%d, 0x%x, %p);\n", id, pname, (const void *) params));
}
+KEYWORD1 void KEYWORD2 NAME(BindBuffer)(GLenum target, GLuint buffer)
+{
+ DISPATCH(BindBufferARB, (target, buffer), (F, "glBindBuffer(0x%x, %d);\n", target, buffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BufferData)(GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage)
+{
+ DISPATCH(BufferDataARB, (target, size, data, usage), (F, "glBufferData(0x%x, %p, %p, 0x%x);\n", target, (const void *) size, (const void *) data, usage));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BufferSubData)(GLenum target, GLsizeiptrARB size, const GLvoid * data)
+{
+ DISPATCH(BufferSubDataARB, (target, size, data), (F, "glBufferSubData(0x%x, %p, %p);\n", target, (const void *) size, (const void *) data));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DeleteBuffers)(GLsizei n, const GLuint * buffer)
+{
+ DISPATCH(DeleteBuffersARB, (n, buffer), (F, "glDeleteBuffers(%d, %p);\n", n, (const void *) buffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GenBuffers)(GLsizei n, GLuint * buffer)
+{
+ DISPATCH(GenBuffersARB, (n, buffer), (F, "glGenBuffers(%d, %p);\n", n, (const void *) buffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetBufferParameteriv)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetBufferParameterivARB, (target, pname, params), (F, "glGetBufferParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetBufferPointerv)(GLenum target, GLenum pname, GLvoid ** params)
+{
+ DISPATCH(GetBufferPointervARB, (target, pname, params), (F, "glGetBufferPointerv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetBufferSubData)(GLenum target, GLsizeiptrARB size, void * data)
+{
+ DISPATCH(GetBufferSubDataARB, (target, size, data), (F, "glGetBufferSubData(0x%x, %p, %p);\n", target, (const void *) size, (const void *) data));
+}
+
+KEYWORD1 GLboolean KEYWORD2 NAME(IsBuffer)(GLuint buffer)
+{
+ RETURN_DISPATCH(IsBufferARB, (buffer), (F, "glIsBuffer(%d);\n", buffer));
+}
+
+KEYWORD1 void * KEYWORD2 NAME(MapBuffer)(GLenum target, GLenum access)
+{
+ RETURN_DISPATCH(MapBufferARB, (target, access), (F, "glMapBuffer(0x%x, 0x%x);\n", target, access));
+}
+
+KEYWORD1 GLboolean KEYWORD2 NAME(UnmapBuffer)(GLenum target)
+{
+ RETURN_DISPATCH(UnmapBufferARB, (target), (F, "glUnmapBuffer(0x%x);\n", target));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GenQueries)(GLsizei n, GLuint * ids)
+{
+ DISPATCH(GenQueriesARB, (n, ids), (F, "glGenQueries(%d, %p);\n", n, (const void *) ids));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DeleteQueries)(GLsizei n, const GLuint * ids)
+{
+ DISPATCH(DeleteQueriesARB, (n, ids), (F, "glDeleteQueries(%d, %p);\n", n, (const void *) ids));
+}
+
+KEYWORD1 GLboolean KEYWORD2 NAME(IsQuery)(GLuint id)
+{
+ RETURN_DISPATCH(IsQueryARB, (id), (F, "glIsQuery(%d);\n", id));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BeginQuery)(GLenum target, GLuint id)
+{
+ DISPATCH(BeginQueryARB, (target, id), (F, "glBeginQuery(0x%x, %d);\n", target, id));
+}
+
+KEYWORD1 void KEYWORD2 NAME(EndQuery)(GLenum target)
+{
+ DISPATCH(EndQueryARB, (target), (F, "glEndQuery(0x%x);\n", target));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetQueryiv)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetQueryivARB, (target, pname, params), (F, "glGetQueryiv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetQueryObjectiv)(GLuint id, GLenum pname, GLint * params)
+{
+ DISPATCH(GetQueryObjectivARB, (id, pname, params), (F, "glGetQueryObjectiv(%d, 0x%x, %p);\n", id, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetQueryObjectuiv)(GLuint id, GLenum pname, GLuint * params)
+{
+ DISPATCH(GetQueryObjectuivARB, (id, pname, params), (F, "glGetQueryObjectuiv(%d, 0x%x, %p);\n", id, pname, (const void *) params));
+}
+
/*
@@ -5694,6 +5789,25 @@ void *UNUSED_TABLE_NAME[] = {
TABLE_ENTRY(GetVertexAttribfvARB),
TABLE_ENTRY(GetVertexAttribivARB),
TABLE_ENTRY(GetVertexAttribPointervARB),
+ TABLE_ENTRY(BindBuffer),
+ TABLE_ENTRY(BufferData),
+ TABLE_ENTRY(BufferSubData),
+ TABLE_ENTRY(DeleteBuffers),
+ TABLE_ENTRY(GenBuffers),
+ TABLE_ENTRY(GetBufferParameteriv),
+ TABLE_ENTRY(GetBufferPointerv),
+ TABLE_ENTRY(GetBufferSubData),
+ TABLE_ENTRY(IsBuffer),
+ TABLE_ENTRY(MapBuffer),
+ TABLE_ENTRY(UnmapBuffer),
+ TABLE_ENTRY(GenQueries),
+ TABLE_ENTRY(DeleteQueries),
+ TABLE_ENTRY(IsQuery),
+ TABLE_ENTRY(BeginQuery),
+ TABLE_ENTRY(EndQuery),
+ TABLE_ENTRY(GetQueryiv),
+ TABLE_ENTRY(GetQueryObjectiv),
+ TABLE_ENTRY(GetQueryObjectuiv),
};
#endif /*UNUSED_TABLE_NAME*/
diff --git a/src/mesa/glapi/glprocs.h b/src/mesa/glapi/glprocs.h
index c4609d6e32..1a48b4f29a 100644
--- a/src/mesa/glapi/glprocs.h
+++ b/src/mesa/glapi/glprocs.h
@@ -672,6 +672,8 @@ static struct name_address_offset static_functions[] = {
{ "glWindowPos4ivMESA", (GLvoid *) glWindowPos4ivMESA, _gloffset_WindowPos4ivMESA },
{ "glWindowPos4sMESA", (GLvoid *) glWindowPos4sMESA, _gloffset_WindowPos4sMESA },
{ "glWindowPos4svMESA", (GLvoid *) glWindowPos4svMESA, _gloffset_WindowPos4svMESA },
+ { "glMultiModeDrawArraysIBM", (GLvoid *) glMultiModeDrawArraysIBM, _gloffset_MultiModeDrawArraysIBM },
+ { "glMultiModeDrawElementsIBM", (GLvoid *) glMultiModeDrawElementsIBM, _gloffset_MultiModeDrawElementsIBM },
{ "glTbufferMask3DFX", (GLvoid *) glTbufferMask3DFX, _gloffset_TbufferMask3DFX },
{ "glSampleMaskEXT", (GLvoid *) glSampleMaskEXT, _gloffset_SampleMaskSGIS },
{ "glSamplePatternEXT", (GLvoid *) glSamplePatternEXT, _gloffset_SamplePatternSGIS },
@@ -898,7 +900,24 @@ static struct name_address_offset static_functions[] = {
{ "glGetQueryivARB", (GLvoid *) glGetQueryivARB, _gloffset_GetQueryivARB },
{ "glGetQueryObjectivARB", (GLvoid *) glGetQueryObjectivARB, _gloffset_GetQueryObjectivARB },
{ "glGetQueryObjectuivARB", (GLvoid *) glGetQueryObjectuivARB, _gloffset_GetQueryObjectuivARB },
- { "glMultiModeDrawArraysIBM", (GLvoid *) glMultiModeDrawArraysIBM, _gloffset_MultiModeDrawArraysIBM },
- { "glMultiModeDrawElementsIBM", (GLvoid *) glMultiModeDrawElementsIBM, _gloffset_MultiModeDrawElementsIBM },
+ { "glBindBuffer", (GLvoid *) glBindBuffer, _gloffset_BindBufferARB },
+ { "glBufferData", (GLvoid *) glBufferData, _gloffset_BufferDataARB },
+ { "glBufferSubData", (GLvoid *) glBufferSubData, _gloffset_BufferSubDataARB },
+ { "glDeleteBuffers", (GLvoid *) glDeleteBuffers, _gloffset_DeleteBuffersARB },
+ { "glGenBuffers", (GLvoid *) glGenBuffers, _gloffset_GenBuffersARB },
+ { "glGetBufferParameteriv", (GLvoid *) glGetBufferParameteriv, _gloffset_GetBufferParameterivARB },
+ { "glGetBufferPointerv", (GLvoid *) glGetBufferPointerv, _gloffset_GetBufferPointervARB },
+ { "glGetBufferSubData", (GLvoid *) glGetBufferSubData, _gloffset_GetBufferSubDataARB },
+ { "glIsBuffer", (GLvoid *) glIsBuffer, _gloffset_IsBufferARB },
+ { "glMapBuffer", (GLvoid *) glMapBuffer, _gloffset_MapBufferARB },
+ { "glUnmapBuffer", (GLvoid *) glUnmapBuffer, _gloffset_UnmapBufferARB },
+ { "glGenQueries", (GLvoid *) glGenQueries, _gloffset_GenQueriesARB },
+ { "glDeleteQueries", (GLvoid *) glDeleteQueries, _gloffset_DeleteQueriesARB },
+ { "glIsQuery", (GLvoid *) glIsQuery, _gloffset_IsQueryARB },
+ { "glBeginQuery", (GLvoid *) glBeginQuery, _gloffset_BeginQueryARB },
+ { "glEndQuery", (GLvoid *) glEndQuery, _gloffset_EndQueryARB },
+ { "glGetQueryiv", (GLvoid *) glGetQueryiv, _gloffset_GetQueryivARB },
+ { "glGetQueryObjectiv", (GLvoid *) glGetQueryObjectiv, _gloffset_GetQueryObjectivARB },
+ { "glGetQueryObjectuiv", (GLvoid *) glGetQueryObjectuiv, _gloffset_GetQueryObjectuivARB },
{ NULL, NULL } /* end of list marker */
};