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

Method _setTextureMatrix

RenderSystems/GL/src/OgreGLRenderSystem.cpp:1534–1555  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1532 }
1533 //-----------------------------------------------------------------------------
1534 void GLRenderSystem::_setTextureMatrix(size_t stage, const Matrix4& xform)
1535 {
1536 if (stage >= mFixedFunctionTextureUnits)
1537 {
1538 // Can't do this
1539 return;
1540 }
1541
1542 mStateCacheManager->activateGLTextureUnit(stage);
1543 glMatrixMode(GL_TEXTURE);
1544
1545 // Load this matrix in
1546 glLoadMatrixf(Matrix4f(xform.transpose())[0]);
1547
1548 if (mUseAutoTextureMatrix)
1549 {
1550 // Concat auto matrix
1551 glMultMatrixf(mAutoTextureMatrix);
1552 }
1553
1554 glMatrixMode(GL_MODELVIEW);
1555 }
1556 //-----------------------------------------------------------------------------
1557 GLint GLRenderSystem::getBlendMode(SceneBlendFactor ogreBlend) const
1558 {

Callers

nothing calls this directly

Calls 2

transposeMethod · 0.80
activateGLTextureUnitMethod · 0.45

Tested by

no test coverage detected