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

Method _setDepthBufferParams

RenderSystems/GL/src/OgreGLRenderSystem.cpp:1670–1681  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1668 }
1669 //-----------------------------------------------------------------------------
1670 void GLRenderSystem::_setDepthBufferParams(bool depthTest, bool depthWrite, CompareFunction depthFunction)
1671 {
1672 if (depthTest)
1673 {
1674 mStateCacheManager->setClearDepth(1.0f);
1675 }
1676 mStateCacheManager->setEnabled(GL_DEPTH_TEST, depthTest);
1677 mStateCacheManager->setDepthMask( depthWrite );
1678 // Store for reference in _beginFrame
1679 mDepthWrite = depthWrite;
1680 mStateCacheManager->setDepthFunc(convertCompareFunction(depthFunction));
1681 }
1682 //-----------------------------------------------------------------------------
1683 void GLRenderSystem::_setDepthBias(float constantBias, float slopeScaleBias)
1684 {

Callers 3

_setPassMethod · 0.45

Calls 4

setClearDepthMethod · 0.45
setEnabledMethod · 0.45
setDepthMaskMethod · 0.45
setDepthFuncMethod · 0.45

Tested by

no test coverage detected