Track the GLX protocol names for GL types.
authorIan Romanick <idr@us.ibm.com>
Fri, 7 Jan 2005 03:22:56 +0000 (03:22 +0000)
committerIan Romanick <idr@us.ibm.com>
Fri, 7 Jan 2005 03:22:56 +0000 (03:22 +0000)
src/mesa/glapi/gl_API.xml
src/mesa/glapi/gl_XML.py

index b594ca37632477e5b135b5cda59a07042dd6b6fa..662f20afb9d321a6e423b5438036db5bf4511def 100644 (file)
@@ -12,7 +12,8 @@
 <!ATTLIST category name   CDATA #REQUIRED
                    number CDATA #IMPLIED>
 <!ATTLIST type     name   CDATA #REQUIRED
-                   size   CDATA #REQUIRED>
+                   size   CDATA #REQUIRED
+                   glx_name CDATA #IMPLIED>
 <!ATTLIST enum     name   CDATA #REQUIRED
                    value  CDATA #REQUIRED>
 <!ATTLIST function name   CDATA #REQUIRED
@@ -735,24 +736,24 @@ glx:
     <enum name="SCISSOR_BIT"                              value="0x00080000"/>
     <enum name="ALL_ATTRIB_BITS"                          value="0x000FFFFF"/>
 
-    <type name="double"  size="8"/>
-    <type name="clampd"  size="8"/>
+    <type name="double"  size="8"  glx_name="FLOAT64"/>
+    <type name="clampd"  size="8"  glx_name="FLOAT64"/>
 
-    <type name="float"   size="4"/>
-    <type name="clampf"  size="4"/>
+    <type name="float"   size="4"  glx_name="FLOAT32"/>
+    <type name="clampf"  size="4"  glx_name="FLOAT32"/>
 
-    <type name="int"     size="4"/>
-    <type name="uint"    size="4"/>
-    <type name="sizei"   size="4"/>
-    <type name="enum"    size="4"/>
-    <type name="bitfield" size="4"/>
+    <type name="int"     size="4"  glx_name="CARD32"/>
+    <type name="uint"    size="4"  glx_name="CARD32"/>
+    <type name="sizei"   size="4"  glx_name="CARD32"/>
+    <type name="enum"    size="4"  glx_name="ENUM"/>
+    <type name="bitfield" size="4" glx_name="CARD32"/>
 
-    <type name="short"   size="2"/>
-    <type name="ushort"  size="2"/>
+    <type name="short"   size="2"  glx_name="CARD16"/>
+    <type name="ushort"  size="2"  glx_name="CARD16"/>
 
-    <type name="byte"    size="1"/>
-    <type name="ubyte"   size="1"/>
-    <type name="boolean" size="1"/>
+    <type name="byte"    size="1"  glx_name="CARD8"/>
+    <type name="ubyte"   size="1"  glx_name="CARD8"/>
+    <type name="boolean" size="1"  glx_name="CARD8"/>
     
     <type name="void"    size="0"/>
 
index f984d5f87fb68f3e8fb7b81abf3c20c9de1f805d..538756ea0c2d2d8f1b333feda26bd3e1e9fb16cd 100644 (file)
@@ -105,6 +105,7 @@ class glType( glItem ):
 
        def __init__(self, context, name, attrs):
                self.size = int(attrs.get('size', "0"))
+               self.glx_name = attrs.get('glx_name', "")
 
                type_name = "GL" + attrs.get('name', None)
                glItem.__init__(self, name, type_name, context)