MCPcopy Create free account
hub / github.com/OGRECave/ogre / activateGLTextureUnit

Method activateGLTextureUnit

RenderSystems/GLES2/src/OgreGLES2StateCacheManager.cpp:229–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 }
228
229 bool GLES2StateCacheManager::activateGLTextureUnit(size_t unit)
230 {
231#ifdef OGRE_ENABLE_STATE_CACHE
232 if (mActiveTextureUnit == unit)
233 return true;
234#endif
235
236 OGRE_CHECK_GL_ERROR(glActiveTexture(GL_TEXTURE0 + unit));
237 mActiveTextureUnit = unit;
238 return true;
239 }
240
241 void GLES2StateCacheManager::setBlendFunc(GLenum source, GLenum dest, GLenum sourceA, GLenum destA)
242 {

Callers 2

_setTextureMethod · 0.45
_setSamplerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected