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

Method _setAlphaRejectSettings

RenderSystems/GLES2/src/OgreGLES2RenderSystem.cpp:788–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786 }
787
788 void GLES2RenderSystem::_setAlphaRejectSettings(CompareFunction func, unsigned char value, bool alphaToCoverage)
789 {
790 if (getCapabilities()->hasCapability(RSC_ALPHA_TO_COVERAGE))
791 {
792 if ((func != CMPF_ALWAYS_PASS) && alphaToCoverage)
793 mStateCacheManager->setEnabled(GL_SAMPLE_ALPHA_TO_COVERAGE);
794 else
795 mStateCacheManager->setDisabled(GL_SAMPLE_ALPHA_TO_COVERAGE);
796 }
797 }
798
799 void GLES2RenderSystem::_setViewport(Viewport *vp)
800 {

Callers

nothing calls this directly

Calls 3

getCapabilitiesFunction · 0.85
setDisabledMethod · 0.80
setEnabledMethod · 0.45

Tested by

no test coverage detected