mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Add texture size fields to terrain textures and improve editor performance
This commit is contained in:
parent
9caa08b7f0
commit
d3996aec84
7 changed files with 414 additions and 44 deletions
|
|
@ -894,7 +894,7 @@ Torque::Path GFXTextureManager::validatePath(const Torque::Path &path)
|
|||
return correctPath;
|
||||
}
|
||||
|
||||
GBitmap *GFXTextureManager::loadUncompressedTexture(const Torque::Path &path, GFXTextureProfile *profile, U32 width, U32 height)
|
||||
GBitmap *GFXTextureManager::loadUncompressedTexture(const Torque::Path &path, GFXTextureProfile *profile, U32 width, U32 height, bool genMips)
|
||||
{
|
||||
GBitmap* inBitmap = loadUncompressedTexture(path, &GFXTexturePersistentProfile);
|
||||
|
||||
|
|
@ -927,6 +927,9 @@ GBitmap *GFXTextureManager::loadUncompressedTexture(const Torque::Path &path, GF
|
|||
}
|
||||
}
|
||||
|
||||
if (genMips)
|
||||
outBmp->extrudeMipLevels();
|
||||
|
||||
return outBmp;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue