| 212 | } |
| 213 | |
| 214 | void TextBankGL33::InitDetailTextures() |
| 215 | { |
| 216 | if (_detail) |
| 217 | return; |
| 218 | |
| 219 | const ParamEntry& names = Remaster >> "CfgDetailTextures"; |
| 220 | RStringB detailName = names >> "detail"; |
| 221 | if (QIFStreamB::FileExist(detailName)) |
| 222 | { |
| 223 | _detail = new TextureGL33; |
| 224 | _detail->Init(detailName); |
| 225 | _detail->_isDetail = true; |
| 226 | } |
| 227 | |
| 228 | RStringB specularName = names >> "specular"; |
| 229 | if (QIFStreamB::FileExist(specularName)) |
| 230 | { |
| 231 | _specular = new TextureGL33; |
| 232 | _specular->Init(specularName); |
| 233 | _specular->_isDetail = true; |
| 234 | } |
| 235 | |
| 236 | RStringB grassName = names >> "grass"; |
| 237 | if (QIFStreamB::FileExist(grassName)) |
| 238 | { |
| 239 | _grass = new TextureGL33; |
| 240 | _grass->Init(grassName); |
| 241 | _grass->SetMaxSize(1024); |
| 242 | _grass->_isDetail = true; |
| 243 | } |
| 244 | |
| 245 | RStringB waterName = names >> "waterBump"; |
| 246 | if (QIFStreamB::FileExist(waterName)) |
| 247 | { |
| 248 | _waterBump = new TextureGL33; |
| 249 | _waterBump->Init(waterName); |
| 250 | _waterBump->SetMaxSize(1024); |
| 251 | _waterBump->_isDetail = true; |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | void TextBankGL33::FlushTextures() |
| 256 | { |
nothing calls this directly
no test coverage detected