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

Function getCombinedMinMipFilter

RenderSystems/GLES2/src/OgreGLES2RenderSystem.cpp:111–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

_setSamplerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected