Lines Matching refs:currentProgram
194 if (mCaches.currentProgram) {
195 if (mCaches.currentProgram->isInUse()) {
196 mCaches.currentProgram->remove();
197 mCaches.currentProgram = NULL;
907 glVertexAttribPointer(mCaches.currentProgram->position, 2, GL_FLOAT, GL_FALSE,
1124 mCaches.currentProgram->set(mOrthoMatrix, mModelView, *mSnapshot->transform);
1127 mCaches.currentProgram->set(mOrthoMatrix, mModelView, mIdentity);
1133 mCaches.currentProgram->set(mOrthoMatrix, mIdentity, *mSnapshot->transform, offset);
1146 mCaches.currentProgram->set(mOrthoMatrix, mModelView, *mSnapshot->transform);
1151 mCaches.currentProgram->set(mOrthoMatrix, mModelView, mIdentity);
1157 int slot = mCaches.currentProgram->getUniform("pointSize");
1163 mCaches.currentProgram->setColor(mColorR, mColorG, mColorB, mColorA);
1169 mCaches.currentProgram->setColor(mColorR, mColorG, mColorB, mColorA);
1178 mShader->setupProgram(mCaches.currentProgram, mModelView, *mSnapshot, &mTextureUnit);
1184 mShader->setupProgram(mCaches.currentProgram, mIdentity, *mSnapshot, &mTextureUnit);
1190 mColorFilter->setupProgram(mCaches.currentProgram);
1196 glVertexAttribPointer(mCaches.currentProgram->position, 2, GL_FLOAT, GL_FALSE,
1202 glUniform1i(mCaches.currentProgram->getUniform("sampler"), mTextureUnit++);
1204 mTexCoordsSlot = mCaches.currentProgram->getAttrib("texCoords");
1210 glUniform1i(mCaches.currentProgram->getUniform("sampler"), mTextureUnit++);
1212 mTexCoordsSlot = mCaches.currentProgram->getAttrib("texCoords");
1221 glUniformMatrix4fv(mCaches.currentProgram->getUniform("mainTextureTransform"), 1,
1231 glVertexAttribPointer(mCaches.currentProgram->position, 2, GL_FLOAT, GL_FALSE,
1240 glVertexAttribPointer(mCaches.currentProgram->position, 2, GL_FLOAT, GL_FALSE,
1258 glVertexAttribPointer(mCaches.currentProgram->position, 2, GL_FLOAT, GL_FALSE,
1260 int widthSlot = mCaches.currentProgram->getAttrib("vtxWidth");
1263 int lengthSlot = mCaches.currentProgram->getAttrib("vtxLength");
1266 int boundaryWidthSlot = mCaches.currentProgram->getUniform("boundaryWidth");
1269 int inverseBoundaryWidthSlot = mCaches.currentProgram->getUniform("inverseBoundaryWidth");
1642 int boundaryLengthSlot = mCaches.currentProgram->getUniform("boundaryLength");
1643 int inverseBoundaryLengthSlot = mCaches.currentProgram->getUniform("inverseBoundaryLength");
1862 mCaches.currentProgram->getUniform("boundaryWidth");
1864 mCaches.currentProgram->getUniform("inverseBoundaryWidth");
1870 boundaryLengthSlot = mCaches.currentProgram->getUniform("boundaryLength");
1872 mCaches.currentProgram->getUniform("inverseBoundaryLength");
2175 int positionSlot = mCaches.currentProgram->position;
2190 glDisableVertexAttribArray(mCaches.currentProgram->getAttrib("texCoords"));
2533 if (mCaches.currentProgram != NULL) mCaches.currentProgram->remove();
2535 mCaches.currentProgram = program;