Home | History | Annotate | Download | only in vbo

Lines Matching refs:ATTR

29 #define ATTR1FV( A, V ) ATTR( A, 1, GL_FLOAT, (V)[0], 0, 0, 1 )
30 #define ATTR2FV( A, V ) ATTR( A, 2, GL_FLOAT, (V)[0], (V)[1], 0, 1 )
31 #define ATTR3FV( A, V ) ATTR( A, 3, GL_FLOAT, (V)[0], (V)[1], (V)[2], 1 )
32 #define ATTR4FV( A, V ) ATTR( A, 4, GL_FLOAT, (V)[0], (V)[1], (V)[2], (V)[3] )
34 #define ATTR1F( A, X ) ATTR( A, 1, GL_FLOAT, X, 0, 0, 1 )
35 #define ATTR2F( A, X, Y ) ATTR( A, 2, GL_FLOAT, X, Y, 0, 1 )
36 #define ATTR3F( A, X, Y, Z ) ATTR( A, 3, GL_FLOAT, X, Y, Z, 1 )
37 #define ATTR4F( A, X, Y, Z, W ) ATTR( A, 4, GL_FLOAT, X, Y, Z, W )
40 #define ATTRI( A, N, X, Y, Z, W) ATTR( A, N, GL_INT, \
55 #define ATTRUI( A, N, X, Y, Z, W) ATTR( A, N, GL_UNSIGNED_INT, \
68 #define MAT_ATTR( A, N, V ) ATTR( A, N, GL_FLOAT, (V)[0], (V)[1], (V)[2], (V)[3] )
80 #define ATTRUI10_1( A, UI ) ATTR( A, 1, GL_FLOAT, (UI) & 0x3ff, 0, 0, 1 )
81 #define ATTRUI10_2( A, UI ) ATTR( A, 2, GL_FLOAT, (UI) & 0x3ff, ((UI) >> 10) & 0x3ff, 0, 1 )
82 #define ATTRUI10_3( A, UI ) ATTR( A, 3, GL_FLOAT, (UI) & 0x3ff, ((UI) >> 10) & 0x3ff, ((UI) >> 20) & 0x3ff, 1 )
83 #define ATTRUI10_4( A, UI ) ATTR( A, 4, GL_FLOAT, (UI) & 0x3ff, ((UI) >> 10) & 0x3ff, ((UI) >> 20) & 0x3ff, ((UI) >> 30) & 0x3 )
85 #define ATTRUI10N_1( A, UI ) ATTR( A, 1, GL_FLOAT, conv_ui10_to_norm_float((UI) & 0x3ff), 0, 0, 1 )
86 #define ATTRUI10N_2( A, UI ) ATTR( A, 2, GL_FLOAT, \
89 #define ATTRUI10N_3( A, UI ) ATTR( A, 3, GL_FLOAT, \
93 #define ATTRUI10N_4( A, UI ) ATTR( A, 4, GL_FLOAT, \
130 #define ATTRI10_1( A, I10 ) ATTR( A, 1, GL_FLOAT, conv_i10_to_i((I10) & 0x3ff), 0, 0, 1 )
131 #define ATTRI10_2( A, I10 ) ATTR( A, 2, GL_FLOAT, \
134 #define ATTRI10_3( A, I10 ) ATTR( A, 3, GL_FLOAT, \
138 #define ATTRI10_4( A, I10 ) ATTR( A, 4, GL_FLOAT, \
145 #define ATTRI10N_1( A, I10 ) ATTR( A, 1, GL_FLOAT, conv_i10_to_norm_float((I10) & 0x3ff), 0, 0, 1 )
146 #define ATTRI10N_2( A, I10 ) ATTR( A, 2, GL_FLOAT, \
149 #define ATTRI10N_3( A, I10 ) ATTR( A, 3, GL_FLOAT, \
153 #define ATTRI10N_4( A, I10 ) ATTR( A, 4, GL_FLOAT, \
159 #define ATTR_UI(val, type, normalized, attr, arg) do { \
162 ATTRUI10N_##val((attr), (arg)); \
164 ATTRUI10_##val((attr), (arg)); \
168 ATTRI10N_##val((attr), (arg)); \
170 ATTRI10_##val((attr), (arg)); \
394 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
395 ATTR1F(attr, x);
402 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
403 ATTR1FV(attr, v);
410 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
411 ATTR2F(attr, x, y);
418 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
419 ATTR2FV(attr, v);
426 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
427 ATTR3F(attr, x, y, z);
434 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
435 ATTR3FV(attr, v);
442 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
443 ATTR4F(attr, x, y, z, w);
450 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
451 ATTR4FV(attr, v);
905 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
906 ATTR_UI(1, type, 0, attr, coords);
913 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
914 ATTR_UI(1, type, 0, attr, coords[0]);
921 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
922 ATTR_UI(2, type, 0, attr, coords);
929 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
930 ATTR_UI(2, type, 0, attr, coords[0]);
937 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
938 ATTR_UI(3, type, 0, attr, coords);
945 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
946 ATTR_UI(3, type, 0, attr, coords[0]);
953 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
954 ATTR_UI(4, type, 0, attr, coords);
961 GLuint attr = (target & 0x7) + VBO_ATTRIB_TEX0;
962 ATTR_UI(4, type, 0, attr, coords[0]);