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

Method setNumMipmaps

OgreMain/src/OgreTextureUnitState.cpp:479–486  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

477 }
478 //-----------------------------------------------------------------------
479 void TextureUnitState::setNumMipmaps(int numMipmaps)
480 {
481 OgreAssert(mFramePtrs[0], "frame must not be blank");
482 for (auto& frame : mFramePtrs)
483 frame->setNumMipmaps(numMipmaps == MIP_DEFAULT
484 ? TextureManager::getSingleton().getDefaultNumMipmaps()
485 : numMipmaps);
486 }
487 //-----------------------------------------------------------------------
488 int TextureUnitState::getNumMipmaps(void) const
489 {

Callers 10

createTextureFromFontMethod · 0.80
preAddToRenderStateMethod · 0.80
ensureLtcLUTPresentFunction · 0.80
_create_image_backgroundFunction · 0.80
createOrRetrieveMethod · 0.80
loadImageMethod · 0.80
loadRawDataMethod · 0.80
createManualMethod · 0.80
createSwapchainMethod · 0.80
create_image_backgroundFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected