From 85f0fa3761f8673ef48e46e0670ac816a34f000a Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 25 Jan 2005 01:20:11 +0000 Subject: Add a "count" attribute to "enums" elements to set the default count used for "size" sub-elements. In the future the "count" attribute may be removed completely from "size" sub-elements, so gl_API.xml was also updated. Support was added for a (currently unused) "mode" attribute for "size" elements. Basically, functions are marked as either "get" or "set". This will be used in generating size functions for the server-side (where the "get" functions have to know how much data to return). It could also be used to help generate code for src/mesa/main/get.c. --- src/mesa/glapi/glX_XML.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/glapi/glX_XML.py') diff --git a/src/mesa/glapi/glX_XML.py b/src/mesa/glapi/glX_XML.py index 4c9da6e304..9d8fe00096 100644 --- a/src/mesa/glapi/glX_XML.py +++ b/src/mesa/glapi/glX_XML.py @@ -244,7 +244,7 @@ class glXEnum(gl_XML.glEnum): def startElement(self, name, attrs): if name == "size": - [n, c] = self.process_attributes(attrs) + [n, c, mode] = self.process_attributes(attrs) if not self.context.glx_enum_functions.has_key( n ): f = glXEnumFunction( n ) -- cgit v1.2.3