| 144 | #endif |
| 145 | |
| 146 | struct SSortTextureEntries |
| 147 | { |
| 148 | public: |
| 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 |
no outgoing calls
no test coverage detected