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

Method setFiltering

OgreMain/src/OgreTextureUnitState.cpp:61–78  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

59
60 //-----------------------------------------------------------------------
61 void Sampler::setFiltering(TextureFilterOptions filterType)
62 {
63 switch (filterType)
64 {
65 case TFO_NONE:
66 setFiltering(FO_POINT, FO_POINT, FO_NONE);
67 break;
68 case TFO_BILINEAR:
69 setFiltering(FO_LINEAR, FO_LINEAR, FO_POINT);
70 break;
71 case TFO_TRILINEAR:
72 setFiltering(FO_LINEAR, FO_LINEAR, FO_LINEAR);
73 break;
74 case TFO_ANISOTROPIC:
75 setFiltering(FO_ANISOTROPIC, FO_ANISOTROPIC, FO_LINEAR);
76 break;
77 }
78 }
79 //-----------------------------------------------------------------------
80 void Sampler::setFiltering(FilterType ft, FilterOptions fo)
81 {

Callers 5

preAddToRenderStateMethod · 0.80
translateSamplerParamMethod · 0.80
setTextureFilteringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected