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

Function getCombinedMinMipFilter

RenderSystems/GL/src/OgreGLRenderSystem.cpp:114–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 static GLint getCombinedMinMipFilter(FilterOptions min, FilterOptions mip)
115 {
116 switch(min)
117 {
118 case FO_ANISOTROPIC:
119 case FO_LINEAR:
120 switch (mip)
121 {
122 case FO_ANISOTROPIC:
123 case FO_LINEAR:
124 // linear min, linear mip
125 return GL_LINEAR_MIPMAP_LINEAR;
126 case FO_POINT:
127 // linear min, point mip
128 return GL_LINEAR_MIPMAP_NEAREST;
129 case FO_NONE:
130 // linear min, no mip
131 return GL_LINEAR;
132 }
133 break;
134 case FO_POINT:
135 case FO_NONE:
136 switch (mip)
137 {
138 case FO_ANISOTROPIC:
139 case FO_LINEAR:
140 // nearest min, linear mip
141 return GL_NEAREST_MIPMAP_LINEAR;
142 case FO_POINT:
143 // nearest min, point mip
144 return GL_NEAREST_MIPMAP_NEAREST;
145 case FO_NONE:
146 // nearest min, no mip
147 return GL_NEAREST;
148 }
149 break;
150 }
151
152 // should never get here
153 return 0;
154 }
155
156 GLRenderSystem::GLRenderSystem()
157 : mFixedFunctionTextureUnits(0),

Callers 2

_setSamplerMethod · 0.70
bindMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected