Lines Matching defs:ShaderProgram
63 ShaderProgram::VertexAttrib::VertexAttrib()
76 // ShaderProgram implementation ////////////////////////////////////////////////
77 ShaderProgram::ShaderProgram(GLEnv* gl_env, const std::string& fragment_shader)
99 ShaderProgram::ShaderProgram(GLEnv* gl_env,
123 ShaderProgram::~ShaderProgram() {
137 void ShaderProgram::SetDefaultCoords() {
163 ShaderProgram* ShaderProgram::CreateIdentity(GLEnv* gl_env) {
171 ShaderProgram* result = new ShaderProgram(gl_env, s_id_fragment_shader);
176 bool ShaderProgram::IsVarValid(ProgramVar var) {
180 bool ShaderProgram::Process(const std::vector<const GLTextureHandle*>& input,
188 LOGE("ShaderProgram: unexecutable program!");
208 LOGE("ShaderProgram: invalid texture id at input: %d!", i);
224 bool ShaderProgram::Process(const std::vector<const GLFrame*>& input, GLFrame* output) {
230 void ShaderProgram::SetSourceRect(float x, float y, float width, float height) {
238 void ShaderProgram::SetSourceRegion(const Quad& quad) {
246 void ShaderProgram::SetTargetRect(float x, float y, float width, float height) {
254 void ShaderProgram::SetTargetRegion(const Quad& quad) {
262 bool ShaderProgram::CompileAndLink() {
303 GLuint ShaderProgram::CompileShader(GLenum shader_type, const char* source) {
348 GLuint ShaderProgram::LinkProgram(GLuint* shaders, GLuint count) {
382 void ShaderProgram::ScanUniforms() {
397 bool ShaderProgram::PushCoords(ProgramVar attr, float* coords) {
410 bool ShaderProgram::PushSourceCoords(float* coords) {
415 bool ShaderProgram::PushTargetCoords(float* coords) {
420 std::string ShaderProgram::InputTextureUniformName(int index) {
426 bool ShaderProgram::BindInputTextures(const std::vector<GLuint>& textures,
445 LOGE("ShaderProgram: Shader does not seem to support %d number of "
457 bool ShaderProgram::UseProgram() {
466 bool ShaderProgram::RenderFrame(const std::vector<GLuint>& textures,
470 LOGE("ShaderProgram: Number of input textures is unsupported on this "
477 LOGE("ShaderProgram: couldn't initialize gl for drawing!");
507 bool ShaderProgram::Draw() {
515 bool ShaderProgram::DrawTiled() {
554 void ShaderProgram::Yield() {
558 bool ShaderProgram::BeginDraw() {
584 int ShaderProgram::MaxVaryingCount() {
590 int ShaderProgram::MaxTextureUnits() {
594 void ShaderProgram::SetDrawMode(GLenum mode) {
598 void ShaderProgram::SetClearsOutput(bool clears) {
602 void ShaderProgram::SetClearColor(float red, float green, float blue, float alpha) {
609 void ShaderProgram::SetTileCounts(int x_count, int y_count) {
615 bool ShaderProgram::CheckValueCount(const std::string& var_type,
631 bool ShaderProgram::CheckValueMult(const std::string& var_type,
644 bool ShaderProgram::CheckVarValid(ProgramVar var) {
653 bool ShaderProgram::CheckUniformValid(ProgramVar var) {
661 int ShaderProgram::MaxUniformCount() {
670 ProgramVar ShaderProgram::GetUniform(const std::string& name) const {
672 LOGE("ShaderProgram: Error: Must link program before querying uniforms!");
678 bool ShaderProgram::SetUniformValue(ProgramVar var, int value) {
690 bool ShaderProgram::SetUniformValue(ProgramVar var, float value) {
702 bool ShaderProgram::SetUniformValue(ProgramVar var,
753 bool ShaderProgram::SetUniformValue(ProgramVar var,
816 bool ShaderProgram::SetUniformValue(ProgramVar var, const std::vector<int>& values) {
820 bool ShaderProgram::SetUniformValue(ProgramVar var,
825 bool ShaderProgram::SetUniformValue(const std::string& name, const Value& value) {
838 Value ShaderProgram::GetUniformValue(const std::string& name) {
930 GLuint ShaderProgram::IndexOfUniform(ProgramVar var) {
935 int ShaderProgram::MaxAttributeCount() {
941 ProgramVar ShaderProgram::GetAttribute(const std::string& name) const {
943 LOGE("ShaderProgram: Error: Must link program before querying attributes!");
946 LOGW("ShaderProgram: Attempting to overwrite internal vertex attribute '%s'!", name.c_str());
951 bool ShaderProgram::SetAttributeValues(ProgramVar var,
977 bool ShaderProgram::SetAttributeValues(ProgramVar var,
1002 bool ShaderProgram::SetAttributeValues(ProgramVar var,
1008 bool ShaderProgram::SetAttributeValues(ProgramVar var,
1017 LOGE("ShaderProgram: Invalid attribute vector given! Specified a component "
1041 bool ShaderProgram::StoreAttribute(VertexAttrib attrib) {
1049 bool ShaderProgram::PushAttributes() {
1105 bool ShaderProgram::PopAttributes() {
1117 void ShaderProgram::SetVertexCount(int count) {