Searched refs:shader_param_ (Results 1 – 4 of 4) sorted by relevance
/development/ndk/platforms/android-17/samples/Teapot/jni/ |
D | TeapotRenderer.cpp | 53 LoadShaders( &shader_param_, "Shaders/VS_ShaderPlain.vsh", in Init() 121 if( shader_param_.program_ ) in Unload() 123 glDeleteProgram( shader_param_.program_ ); in Unload() 124 shader_param_.program_ = 0; in Unload() 171 glUseProgram( shader_param_.program_ ); in Render() 177 glUniform4f( shader_param_.material_diffuse_, material.diffuse_color[0], in Render() 180 glUniform4f( shader_param_.material_specular_, material.specular_color[0], in Render() 186 glUniform3f( shader_param_.material_ambient_, material.ambient_color[0], in Render() 189 glUniformMatrix4fv( shader_param_.matrix_projection_, 1, GL_FALSE, mat_vp.Ptr() ); in Render() 190 glUniformMatrix4fv( shader_param_.matrix_view_, 1, GL_FALSE, mat_view_.Ptr() ); in Render() [all …]
|
D | TeapotRenderer.h | 85 SHADER_PARAMS shader_param_; variable
|
/development/ndk/platforms/android-18/samples/MoreTeapots/jni/ |
D | MoreTeapotsRenderer.cpp | 149 bool b = LoadShadersES3( &shader_param_, "Shaders/VS_ShaderPlainES3.vsh", in Init() 158 blockIndex = glGetUniformBlockIndex( shader_param_.program_, "ParamBlock" ); in Init() 159 glUniformBlockBinding( shader_param_.program_, blockIndex, bindingPoint ); in Init() 163 glGetActiveUniformBlockiv( shader_param_.program_, blockIndex, in Init() 167 glGetActiveUniformBlockiv( shader_param_.program_, blockIndex, in Init() 169 glGetActiveUniformsiv( shader_param_.program_, iNumIndices, (GLuint*) i, in Init() 199 LoadShaders( &shader_param_, "Shaders/VS_ShaderPlain.vsh", "Shaders/ShaderPlain.fsh" ); in Init() 205 LoadShaders( &shader_param_, "Shaders/VS_ShaderPlain.vsh", "Shaders/ShaderPlain.fsh" ); in Init() 241 if( shader_param_.program_ ) in Unload() 243 glDeleteProgram( shader_param_.program_ ); in Unload() [all …]
|
D | MoreTeapotsRenderer.h | 85 SHADER_PARAMS shader_param_; variable
|