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

Method attachDepthBuffer

OgreMain/src/OgreRenderTarget.cpp:94–106  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

92 }
93 //-----------------------------------------------------------------------
94 bool RenderTarget::attachDepthBuffer( DepthBuffer *depthBuffer )
95 {
96 bool retVal = false;
97
98 if( (retVal = depthBuffer->isCompatible( this )) )
99 {
100 detachDepthBuffer();
101 mDepthBuffer = depthBuffer;
102 mDepthBuffer->_notifyRenderTargetAttached( this );
103 }
104
105 return retVal;
106 }
107 //-----------------------------------------------------------------------
108 void RenderTarget::detachDepthBuffer()
109 {

Callers 1

setDepthBufferForMethod · 0.45

Calls 2

isCompatibleMethod · 0.45

Tested by

no test coverage detected