MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / SSortTextureEntries

Class SSortTextureEntries

Source/HLEGraphics/TextureCache.cpp:146–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144#endif
145
146struct SSortTextureEntries
147{
148public:
149 bool operator()( const TextureInfo & a, const TextureInfo & b ) const
150 {
151 return a < b;
152 }
153 bool operator()( const CachedTexture * a, const TextureInfo & b ) const
154 {
155 return a->GetTextureInfo() < b;
156 }
157 bool operator()( const TextureInfo & a, const CachedTexture * b ) const
158 {
159 return a < b->GetTextureInfo();
160 }
161 bool operator()( const CachedTexture * a, const CachedTexture * b ) const
162 {
163 return a->GetTextureInfo() < b->GetTextureInfo();
164 }
165};
166
167// If already in table, return cached copy
168// Otherwise, create surfaces, and load texture into memory

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected