155
* Return if format is integer. The immediate mode commands only emit floats
156
* for non-integer types, thus everything else is integer.
158
static inline GLboolean
159
vbo_attrtype_to_integer_flag(GLenum format)
165
case GL_UNSIGNED_INT:
175
* Return default component values for the given format.
176
* The return type is an array of floats, because that's how we declare
177
* the vertex storage despite the fact we sometimes store integers in there.
179
static inline const GLfloat *
180
vbo_get_default_vals_as_float(GLenum format)
182
static const GLfloat default_float[4] = { 0, 0, 0, 1 };
183
static const GLint default_int[4] = { 0, 0, 0, 1 };
187
return default_float;
189
case GL_UNSIGNED_INT:
190
return (const GLfloat*)default_int;