Lines Matching refs:ShaderProgram
56 ShaderProgram::VertexAttrib::VertexAttrib()
69 // ShaderProgram implementation ////////////////////////////////////////////////
70 ShaderProgram::ShaderProgram(GLEnv* gl_env, const std::string& fragment_shader)
92 ShaderProgram::ShaderProgram(GLEnv* gl_env,
116 ShaderProgram::~ShaderProgram() {
130 void ShaderProgram::SetDefaultCoords() {
156 ShaderProgram* ShaderProgram::CreateIdentity(GLEnv* gl_env) {
164 ShaderProgram* result = new ShaderProgram(gl_env, s_id_fragment_shader);
169 bool ShaderProgram::IsVarValid(ProgramVar var) {
173 bool ShaderProgram::Process(const std::vector<const GLTextureHandle*>& input,
181 ALOGE("ShaderProgram: unexecutable program!");
201 ALOGE("ShaderProgram: invalid texture id at input: %d!", i);
217 bool ShaderProgram::Process(const std::vector<const GLFrame*>& input, GLFrame* output) {
223 void ShaderProgram::SetSourceRect(float x, float y, float width, float height) {
231 void ShaderProgram::SetSourceRegion(const Quad& quad) {
239 void ShaderProgram::SetTargetRect(float x, float y, float width, float height) {
247 void ShaderProgram::SetTargetRegion(const Quad& quad) {
255 bool ShaderProgram::CompileAndLink() {
296 GLuint ShaderProgram::CompileShader(GLenum shader_type, const char* source) {
341 GLuint ShaderProgram::LinkProgram(GLuint* shaders, GLuint count) {
375 void ShaderProgram::ScanUniforms() {
390 bool ShaderProgram::PushCoords(ProgramVar attr, float* coords) {
403 bool ShaderProgram::PushSourceCoords(float* coords) {
408 bool ShaderProgram::PushTargetCoords(float* coords) {
413 std::string ShaderProgram::InputTextureUniformName(int index) {
419 bool ShaderProgram::BindInputTextures(const std::vector<GLuint>& textures,
438 ALOGE("ShaderProgram: Shader does not seem to support %zd number of "
450 bool ShaderProgram::UseProgram() {
459 bool ShaderProgram::RenderFrame(const std::vector<GLuint>& textures,
463 ALOGE("ShaderProgram: Number of input textures is unsupported on this "
470 ALOGE("ShaderProgram: couldn't initialize gl for drawing!");
500 bool ShaderProgram::Draw() {
508 bool ShaderProgram::DrawTiled() {
547 void ShaderProgram::Yield() {
551 bool ShaderProgram::BeginDraw() {
577 int ShaderProgram::MaxVaryingCount() {
583 int ShaderProgram::MaxTextureUnits() {
587 void ShaderProgram::SetDrawMode(GLenum mode) {
591 void ShaderProgram::SetClearsOutput(bool clears) {
595 void ShaderProgram::SetClearColor(float red, float green, float blue, float alpha) {
602 void ShaderProgram::SetTileCounts(int x_count, int y_count) {
608 bool ShaderProgram::CheckValueCount(const std::string& var_type,
624 bool ShaderProgram::CheckValueMult(const std::string& var_type,
637 bool ShaderProgram::CheckVarValid(ProgramVar var) {
646 bool ShaderProgram::CheckUniformValid(ProgramVar var) {
654 int ShaderProgram::MaxUniformCount() {
663 ProgramVar ShaderProgram::GetUniform(const std::string& name) const {
665 ALOGE("ShaderProgram: Error: Must link program before querying uniforms!");
671 bool ShaderProgram::SetUniformValue(ProgramVar var, int value) {
683 bool ShaderProgram::SetUniformValue(ProgramVar var, float value) {
695 bool ShaderProgram::SetUniformValue(ProgramVar var,
746 bool ShaderProgram::SetUniformValue(ProgramVar var,
809 bool ShaderProgram::SetUniformValue(ProgramVar var, const std::vector<int>& values) {
813 bool ShaderProgram::SetUniformValue(ProgramVar var,
818 bool ShaderProgram::SetUniformValue(const std::string& name, const Value& value) {
831 Value ShaderProgram::GetUniformValue(const std::string& name) {
923 GLuint ShaderProgram::IndexOfUniform(ProgramVar var) {
928 int ShaderProgram::MaxAttributeCount() {
934 ProgramVar ShaderProgram::GetAttribute(const std::string& name) const {
936 ALOGE("ShaderProgram: Error: Must link program before querying attributes!");
939 ALOGW("ShaderProgram: Attempting to overwrite internal vertex attribute '%s'!", name.c_str());
944 bool ShaderProgram::SetAttributeValues(ProgramVar var,
970 bool ShaderProgram::SetAttributeValues(ProgramVar var,
995 bool ShaderProgram::SetAttributeValues(ProgramVar var,
1001 bool ShaderProgram::SetAttributeValues(ProgramVar var,
1010 ALOGE("ShaderProgram: Invalid attribute vector given! Specified a component "
1034 bool ShaderProgram::StoreAttribute(VertexAttrib attrib) {
1042 bool ShaderProgram::PushAttributes() {
1098 bool ShaderProgram::PopAttributes() {
1110 void ShaderProgram::SetVertexCount(int count) {