Lines Matching refs:attr
40 check_size(const GLfloat *attr)
42 if (attr[3] != 1.0F)
44 if (attr[2] != 0.0F)
46 if (attr[1] != 0.0F)
79 for (int attr = 0; attr < VERT_ATTRIB_MAX; attr++) {
80 if (VERT_BIT(attr) & VERT_BIT_GENERIC_ALL)
83 struct gl_array_attributes *attrib = &vbo->current[attr];
85 init_array(ctx, attrib, check_size(ctx->Current.Attrib[attr]),
86 ctx->Current.Attrib[attr]);
98 const unsigned attr = VBO_ATTRIB_GENERIC0 + i;
99 struct gl_array_attributes *attrib = &vbo->current[attr];
101 init_array(ctx, attrib, 1, ctx->Current.Attrib[attr]);
116 const unsigned attr = VBO_ATTRIB_MAT_FRONT_AMBIENT + i;
117 struct gl_array_attributes *attrib = &vbo->current[attr];
199 _vbo_current_attrib(const struct gl_context *ctx, gl_vert_attrib attr)
203 return &vbo->current[_vbo_attribute_alias_map[vmp][attr]];