Lines Matching refs:program
72 gl_shader_program * program = ggl->ShaderProgramCreate(ggl); in init_shader() local
74 ggl->ShaderAttributeBind(program, 0, "aPosition"); in init_shader()
75 ggl->ShaderAttributeBind(program, 1, "aTexCoord"); in init_shader()
78 ggl->ShaderAttach(ggl, program, vertShader); in init_shader()
79 ggl->ShaderAttach(ggl, program, fragShader); in init_shader()
81 GLboolean linkStatus = ggl->ShaderProgramLink(program, &infoLog); in init_shader()
88 ggl->ShaderUse(ggl, program); in init_shader()
90 return program; in init_shader()
131 gl_shader_program * program = init_shader(); // change states after to test code cache in test_scan() local
194 int uMatrixLoc = ggl->ShaderUniformLocation(program, "uMatrix"); in test_scan()
195 int uRotMLoc = ggl->ShaderUniformLocation(program, "uRotM"); in test_scan()
196 int uTLoc = ggl->ShaderUniformLocation(program, "t"); in test_scan()
204 if (program) { in test_scan()
205 ggl->ShaderUniformMatrix(program, 4, 4, uMatrixLoc, 1, GL_FALSE, m0.m); in test_scan()
206 int sampler2dLoc = ggl->ShaderUniformLocation(program, "sampler2d"); in test_scan()
207 int samplercubeLoc = ggl->ShaderUniformLocation(program, "samplercube"); in test_scan()
316 if (program) { in test_scan()
317 ggl->ShaderUniformMatrix(program, 4, 4, uMatrixLoc, 1, GL_FALSE, m4.m); in test_scan()
318 ggl->ShaderUniformMatrix(program, 4, 4, uRotMLoc, 1, GL_FALSE, m2.m); in test_scan()
319 ggl->ShaderUniform(program, uTLoc, 1, &t, GL_FLOAT); in test_scan()
443 if (program) in test_scan()
444 ggl->ShaderProgramDelete(ggl, program); in test_scan()