Lines Matching refs:glu

64 static bool isExtensionSupported (const glu::RenderContext& renderCtx, const std::string& extension)
130 static glu::ProgramSources genSources (const IndexExprType indexExprType)
135 glu::ProgramSources sources;
139 sources << glu::VertexSource(
152 sources << glu::FragmentSource(string(
166 const glu::RenderContext& renderCtx = m_context.getRenderContext();
168 const glu::ShaderProgram program (renderCtx, genSources(m_indexExprType));
189 const glu::VertexArrayBinding vertexArrays[] =
191 glu::va::Float("a_position", 2, 4, 0, &positions[0]),
192 glu::va::Float("a_color", 4, 4, 0, &colors[0]),
193 glu::va::Float("a_index", 1, 4, 0, &indexValues[0])
213 glu::draw(renderCtx, program.getProgram(), DE_LENGTH_OF_ARRAY(vertexArrays), &vertexArrays[0],
214 glu::pr::Triangles(DE_LENGTH_OF_ARRAY(indices), &indices[0]));
222 glu::readPixels(renderCtx, 0, 0, result.getAccess());
248 const glu::RenderContext& renderCtx = m_context.getRenderContext();
261 const glu::ShaderProgram program (renderCtx, glu::ProgramSources()
262 << glu::VertexSource(
271 << glu::FragmentSource(
283 const glu::Framebuffer fbo (renderCtx);
284 const glu::Renderbuffer colorBuf0 (renderCtx);
285 const glu::Renderbuffer colorBuf1 (renderCtx);
303 const glu::VertexArrayBinding vertexArrays[] =
305 glu::va::Float("a_position", 2, 4, 0, &positions[0]),
306 glu::va::Float("a_color", 4, 4, 0, &colors[0])
346 glu::draw(renderCtx, program.getProgram(), DE_LENGTH_OF_ARRAY(vertexArrays), &vertexArrays[0],
347 glu::pr::Triangles(DE_LENGTH_OF_ARRAY(indices), &indices[0]));
357 glu::readPixels(renderCtx, 0, 0, result.getAccess());