summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2005-01-07 03:22:56 +0000
committerIan Romanick <[email protected]>2005-01-07 03:22:56 +0000
commita285acbbef997d223de819e960d55724f52757d4 (patch)
treeef127980428fdae4cf398af81751d17a3017a789 /src/mesa/glapi
parent70d2f152f8e312a6c51dd4547d39b09284b2c0de (diff)
Track the GLX protocol names for GL types.
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/gl_API.xml31
-rw-r--r--src/mesa/glapi/gl_XML.py1
2 files changed, 17 insertions, 15 deletions
diff --git a/src/mesa/glapi/gl_API.xml b/src/mesa/glapi/gl_API.xml
index b594ca37632..662f20afb9d 100644
--- a/src/mesa/glapi/gl_API.xml
+++ b/src/mesa/glapi/gl_API.xml
@@ -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"/>
diff --git a/src/mesa/glapi/gl_XML.py b/src/mesa/glapi/gl_XML.py
index f984d5f87fb..538756ea0c2 100644
--- a/src/mesa/glapi/gl_XML.py
+++ b/src/mesa/glapi/gl_XML.py
@@ -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)