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

Method bindGpuProgram

OgreMain/src/OgreRenderSystem.cpp:769–777  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

767 }
768 //-----------------------------------------------------------------------
769 void RenderSystem::bindGpuProgram(GpuProgram* prg)
770 {
771 auto gptype = prg->getType();
772 // mark clip planes dirty if changed (programmable can change space)
773 if(gptype == GPT_VERTEX_PROGRAM && !mClipPlanes.empty() && !mProgramBound[gptype])
774 mClipPlanesDirty = true;
775
776 mProgramBound[gptype] = true;
777 }
778 //-----------------------------------------------------------------------
779 void RenderSystem::unbindGpuProgram(GpuProgramType gptype)
780 {

Callers 2

executeMethod · 0.45

Calls 2

getTypeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected