Lines Matching refs:index
65 index(-1),
239 int index = 0;
240 for (int i = 0; i < 4; ++i, index += 2) {
241 source_coords_[index] = quad.point(i).x();
242 source_coords_[index+1] = quad.point(i).y();
255 int index = 0;
256 for (int i = 0; i < 4; ++i, index += 2) {
257 target_coords_[index] = (quad.point(i).x() * 2.0) - 1.0;
258 target_coords_[index+1] = (quad.point(i).y() * 2.0) - 1.0;
420 std::string ShaderProgram::InputTextureUniformName(int index) {
422 tex_name << "tex_sampler_" << index;
964 attrib.index = var;
990 attrib.index = var;
1030 attrib.index = var;
1042 if (attrib.index >= 0) {
1043 attrib_values_[attrib.index] = attrib;
1062 case 1: glVertexAttrib1fv(attrib.index, values); break;
1063 case 2: glVertexAttrib2fv(attrib.index, values); break;
1064 case 3: glVertexAttrib3fv(attrib.index, values); break;
1065 case 4: glVertexAttrib4fv(attrib.index, values); break;
1068 glDisableVertexAttribArray(attrib.index);
1075 glVertexAttribPointer(attrib.index,
1085 glVertexAttribPointer(attrib.index,
1094 glEnableVertexAttribArray(attrib.index);
1110 glDisableVertexAttribArray(iter->second.index);