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

Function getTextureAddressingMode

RenderSystems/GLES2/src/OgreGLES2RenderSystem.cpp:680–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678 }
679
680 static int getTextureAddressingMode(TextureAddressingMode tam, bool hasBorderClamp = true)
681 {
682 switch (tam)
683 {
684 case TAM_BORDER:
685 if (hasBorderClamp)
686 return GL_CLAMP_TO_BORDER_EXT;
687 OGRE_FALLTHROUGH;
688 case TAM_CLAMP:
689 return GL_CLAMP_TO_EDGE;
690 case TAM_MIRROR:
691 return GL_MIRRORED_REPEAT;
692 case TAM_WRAP:
693 default:
694 return GL_REPEAT;
695 }
696 }
697
698 void GLES2RenderSystem::_setSampler(size_t unit, Sampler& sampler)
699 {

Callers 3

_setSamplerMethod · 0.85
_setSamplerMethod · 0.85
bindMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected