Lines Matching refs:pgm
144 GLuint pgm = e->program; in link() local
145 glAttachShader(pgm, vID); in link()
147 glAttachShader(pgm, fID); in link()
149 glBindAttribLocation(pgm, 0, "ATTRIB_position"); in link()
150 glBindAttribLocation(pgm, 1, "ATTRIB_color"); in link()
151 glBindAttribLocation(pgm, 2, "ATTRIB_normal"); in link()
152 glBindAttribLocation(pgm, 3, "ATTRIB_texture0"); in link()
155 glLinkProgram(pgm); in link()
158 glGetProgramiv(pgm, GL_LINK_STATUS, &linkStatus); in link()
161 glGetProgramiv(pgm, GL_INFO_LOG_LENGTH, &bufLength); in link()
165 glGetProgramInfoLog(pgm, bufLength, nullptr, buf); in link()
170 glDeleteProgram(pgm); in link()
176 glGetAttribLocation(pgm, vtx->getAttribName(ct).c_str()); in link()
184 populateUniformData(vtx, pgm, e->vtxUniforms); in link()
185 populateUniformData(frag, pgm, e->fragUniforms); in link()
193 glGetProgramiv(pgm, GL_ACTIVE_UNIFORMS, &numUniforms); in link()
195 glGetProgramiv(pgm, GL_ACTIVE_UNIFORM_MAX_LENGTH, &maxNameLength); in link()
202 glGetActiveUniform(pgm, ct, maxNameLength, &uniformList[ct]->writtenLength, in link()
214 updateUniformArrayData(rsc, vtx, pgm, e->vtxUniforms, "vtx", in link()
216 updateUniformArrayData(rsc, frag, pgm, e->fragUniforms, "frag", in link()