Home | History | Annotate | Download | only in ndk_helper

Lines Matching full:shader

20 #include "shader.h"
28 bool shader::CompileShader( GLuint *shader,
76 return shader::CompileShader( shader, type, v );
79 bool shader::CompileShader( GLuint *shader,
87 *shader = glCreateShader( type );
88 glShaderSource( *shader, 1, &source, &iSize ); //Not specifying 3rd parameter (size) could be troublesome..
90 glCompileShader( *shader );
94 glGetShaderiv( *shader, GL_INFO_LOG_LENGTH, &logLength );
98 glGetShaderInfoLog( *shader, logLength, &logLength, log );
99 LOGI( "Shader compile log:\n%s", log );
105 glGetShaderiv( *shader, GL_COMPILE_STATUS, &status );
108 glDeleteShader( *shader );
115 bool shader::CompileShader( GLuint *shader,
124 return shader::CompileShader( shader, type, source, iSize );
127 bool shader::CompileShader( GLuint *shader,
139 return shader::CompileShader( shader, type, data );
142 bool shader::LinkProgram( const GLuint prog )
170 bool shader::ValidateProgram( const GLuint prog )