summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-12-10 20:01:06 +0000
committerBrian Paul <[email protected]>1999-12-10 20:01:06 +0000
commitcd96388857255711c4e33e7d2626f199d3810d15 (patch)
treed0781e62e698ee5ae1468a5dc36a901254641c53 /src/mesa/glapi
parent0056c5e40d7c5702420f314fa4f68159e5a64cd6 (diff)
implemented GL_ARB_tranpose_matrix
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/glapi.c16
-rw-r--r--src/mesa/glapi/glapitable.h9
-rw-r--r--src/mesa/glapi/glapitemp.h30
3 files changed, 52 insertions, 3 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index 2ca689e6e0a..25f05e547c9 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -1,4 +1,4 @@
-/* $Id: glapi.c,v 1.10 1999/11/27 21:30:40 brianp Exp $ */
+/* $Id: glapi.c,v 1.11 1999/12/10 20:01:06 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -652,6 +652,13 @@ static struct name_address_pair static_functions[] = {
{ "glResizeBuffersMESA", (GLvoid *) glResizeBuffersMESA },
#endif
+#ifdef _GLAPI_ARB_transpose_matrix
+ { "glLoadTransposeMatrixdARB", (GLvoid *) glLoadTransposeMatrixdARB },
+ { "glLoadTransposeMatrixfARB", (GLvoid *) glLoadTransposeMatrixfARB },
+ { "glMultTransposeMatrixdARB", (GLvoid *) glMultTransposeMatrixdARB },
+ { "glMultTransposeMatrixfARB", (GLvoid *) glMultTransposeMatrixfARB },
+#endif
+
{ NULL, NULL } /* end of list marker */
};
@@ -1261,6 +1268,13 @@ _glapi_check_table(const struct _glapi_table *table)
#ifdef _GLAPI_MESA_resize_buffers
assert(table->ResizeBuffersMESA);
#endif
+
+#ifdef _GLAPI_ARB_transpose_matrix
+ assert(table->LoadTransposeMatrixdARB);
+ assert(table->LoadTransposeMatrixfARB);
+ assert(table->MultTransposeMatrixdARB);
+ assert(table->MultTransposeMatrixfARB);
+#endif
}
diff --git a/src/mesa/glapi/glapitable.h b/src/mesa/glapi/glapitable.h
index fb9555e4216..84273a5b1aa 100644
--- a/src/mesa/glapi/glapitable.h
+++ b/src/mesa/glapi/glapitable.h
@@ -1,4 +1,4 @@
-/* $Id: glapitable.h,v 1.2 1999/11/27 21:30:10 brianp Exp $ */
+/* $Id: glapitable.h,v 1.3 1999/12/10 20:01:06 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -63,6 +63,7 @@
#define _GLAPI_INGR_blend_func_separate 1
#define _GLAPI_MESA_window_pos 1
#define _GLAPI_MESA_resize_buffers 1
+#define _GLAPI_ARB_transpose_matrix 1
@@ -553,6 +554,12 @@ struct _glapi_table
void (*ResizeBuffersMESA)(void);
#endif
+#ifdef _GLAPI_ARB_transpose_matrix
+ void (*LoadTransposeMatrixdARB)(const GLdouble m[16]);
+ void (*LoadTransposeMatrixfARB)(const GLfloat m[16]);
+ void (*MultTransposeMatrixdARB)(const GLdouble m[16]);
+ void (*MultTransposeMatrixfARB)(const GLfloat m[16]);
+#endif
void *ExtensionFuncs[_GLAPI_EXTRA_SLOTS];
};
diff --git a/src/mesa/glapi/glapitemp.h b/src/mesa/glapi/glapitemp.h
index 7b8a3a159fc..32578ba66b2 100644
--- a/src/mesa/glapi/glapitemp.h
+++ b/src/mesa/glapi/glapitemp.h
@@ -1,4 +1,4 @@
-/* $Id: glapitemp.h,v 1.1 1999/11/25 18:16:13 brianp Exp $ */
+/* $Id: glapitemp.h,v 1.2 1999/12/10 20:01:06 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -2947,6 +2947,34 @@ KEYWORD1 void KEYWORD2 NAME(ResizeBuffersMESA)(void)
#endif /* GL_MESA_resize_buffers */
+#ifdef _GLAPI_ARB_transpose_matrix
+KEYWORD1 void KEYWORD2 NAME(LoadTransposeMatrixdARB)(const GLdouble m[16])
+{
+ DISPATCH_SETUP;
+ DISPATCH(LoadTransposeMatrixdARB, (m));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LoadTransposeMatrixfARB)(const GLfloat m[16])
+{
+ DISPATCH_SETUP;
+ DISPATCH(LoadTransposeMatrixfARB, (m));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MultTransposeMatrixdARB)(const GLdouble m[16])
+{
+ DISPATCH_SETUP;
+ DISPATCH(MultTransposeMatrixdARB, (m));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MultTransposeMatrixfARB)(const GLfloat m[16])
+{
+ DISPATCH_SETUP;
+ DISPATCH(MultTransposeMatrixfARB, (m));
+}
+
+#endif
+
+
#undef KEYWORD1
#undef KEYWORD2