Lines Matching refs:ctx

686 												ContextShaderProgram		(const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays);
692 static std::string genVertexSource (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays);
693 static std::string genFragmentSource (const glu::RenderContext& ctx);
697 static sglr::pdec::ShaderProgramDeclaration createProgramDeclaration (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays);
703 ContextShaderProgram::ContextShaderProgram (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays)
704 : sglr::ShaderProgram (createProgramDeclaration(ctx, arrays))
813 std::string ContextShaderProgram::genVertexSource (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays)
818 if (glu::isGLSLVersionSupported(ctx.getType(), glu::GLSL_VERSION_300_ES))
827 else if (glu::isGLSLVersionSupported(ctx.getType(), glu::GLSL_VERSION_100_ES))
836 else if (glu::isGLSLVersionSupported(ctx.getType(), glu::GLSL_VERSION_330))
957 std::string ContextShaderProgram::genFragmentSource (const glu::RenderContext& ctx)
961 if (glu::isGLSLVersionSupported(ctx.getType(), glu::GLSL_VERSION_300_ES))
970 else if (glu::isGLSLVersionSupported(ctx.getType(), glu::GLSL_VERSION_100_ES))
979 else if (glu::isGLSLVersionSupported(ctx.getType(), glu::GLSL_VERSION_330))
1060 sglr::pdec::ShaderProgramDeclaration ContextShaderProgram::createProgramDeclaration (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays)
1070 decl << sglr::pdec::VertexSource(genVertexSource(ctx, arrays));
1071 decl << sglr::pdec::FragmentSource(genFragmentSource(ctx));