Lines Matching refs:glu
110 static const char* getVertSrc (glu::GLSLVersion glslVersion)
112 if (glslVersion == glu::GLSL_VERSION_100_ES)
114 else if (glslVersion == glu::GLSL_VERSION_300_ES)
116 else if (glslVersion == glu::GLSL_VERSION_330)
123 static const char* getFragSrc (glu::GLSLVersion glslVersion)
125 if (glslVersion == glu::GLSL_VERSION_100_ES)
127 else if (glslVersion == glu::GLSL_VERSION_300_ES)
129 else if (glslVersion == glu::GLSL_VERSION_330)
136 QuadRenderer::QuadRenderer (const glu::RenderContext& context, glu::GLSLVersion glslVersion)
142 , m_blendFuncExt (!glu::glslVersionIsES(glslVersion) && (glslVersion >= glu::GLSL_VERSION_330))
144 DE_ASSERT(glslVersion == glu::GLSL_VERSION_100_ES ||
145 glslVersion == glu::GLSL_VERSION_300_ES ||
146 glslVersion == glu::GLSL_VERSION_330);
152 m_program = new glu::ShaderProgram(m_context, glu::makeVtxFragSources(vertSrc, fragSrc));
192 std::vector<glu::VertexArrayBinding> vertexArrays;
194 vertexArrays.push_back(glu::va::Float(m_positionLoc, 4, 4, 0, &position[0]));
195 vertexArrays.push_back(glu::va::Float(m_colorLoc, 4, 4, 0, (const float*)&quad.color[0]));
198 vertexArrays.push_back(glu::va::Float(m_color1Loc, 4, 4, 0, (const float*)&quad.color1[0]));
201 glu::draw(m_context, m_program->getProgram(),
203 glu::pr::Triangles(DE_LENGTH_OF_ARRAY(indices), &indices[0]));