-----------------------------------------------------------------------------
| 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 | { |
nothing calls this directly
no test coverage detected