Home | History | Annotate | Download | only in tools

Lines Matching refs:DataType

41 # Constants corresponding to the protobuf DataType.Type
42 class DataType:
47 if self.name == "pointer": # pointers map to the INT DataType
66 DataType.VOID = DataType("void")
67 DataType.CHAR = DataType("char")
68 DataType.BYTE = DataType("byte")
69 DataType.ENUM = DataType("enum")
70 DataType.BOOL = DataType("bool")
71 DataType.INT = DataType("int")
72 DataType.FLOAT = DataType("float")
73 DataType.POINTER = DataType("pointer")
75 # mapping of GL types to protobuf DataType
77 "GLvoid":DataType.VOID,
78 "void":DataType.VOID,
79 "GLchar":DataType.CHAR,
80 "GLenum":DataType.ENUM,
81 "GLboolean":DataType.BOOL,
82 "GLbitfield":DataType.INT,
83 "GLbyte":DataType.BYTE,
84 "GLshort":DataType.INT,
85 "GLint":DataType.INT,
86 "int":DataType.INT,
87 "GLsizei":DataType.INT,
88 "GLubyte":DataType.BYTE,
89 "GLushort":DataType.INT,
90 "GLuint":DataType.INT,
91 "GLfloat":DataType.FLOAT,
92 "GLclampf":DataType.FLOAT,
93 "GLfixed":DataType.INT,
94 "GLclampx":DataType.INT,
95 "GLsizeiptr":DataType.INT,
96 "GLintptr":DataType.INT,
97 "GLeglImageOES":DataType.POINTER,
159 arg_$!argname!$->set_type(GLMessage::DataType::$!argtype!$);
179 rt->set_type(GLMessage::DataType::$!retDataType!$);
185 <!--(if argtype == DataType.POINTER)-->
189 <!--(if retDataType == DataType.POINTER)-->
207 All pointer declarations are of type DataType.POINTER
209 e.g.: GLvoid -> DataType.VOID"""
212 return DataType.POINTER
216 """ Split declaration of a variable to a tuple of (variable name, DataType).
222 dataType = " ".join(elements[:-1]).strip() # everything else is the data type
229 dataType += "*" * pointersInName
232 # and make the datatype to be a pointer
236 dataType += "*"
238 dataType = elements[0]
239 return (name, getDataTypeFromKw(dataType))
242 """ Parse the argument list into a list of (var name, DataType) tuples """
248 if argtype == DataType.VOID:
336 DataType=DataType)