Skip to content

Conversation

@marauder2k7
Copy link
Contributor

@marauder2k7 marauder2k7 commented Dec 22, 2025

GBitmap Changes:
Added all other formats to gbitmap that we support gbitmap now supports cubemaps
added converters for all these other formats
added stb_image_resize for extrudemips so we can extrude mipmaps for all other formats

GFXTextureManager
Can now directly make cubemaps and texture arrays based on the GFXTextureProfile API implementations for all functions that cubemaps and arrays needed

Cubemaps can now be managed directly with GFXTextureHandle instead of raw pointers being passed around the codebase.

Future improvements: More directly link cubemap usages with the ImageAsset class so that we have 1 area for creation, baking can be made directly to the files now and imageAsset can update accordingly so probes do not need to copy references and free them themselves. Leave all memory management for resources down to assets so there is one single location to free everything on teardown.

TODO: Remove the GFXCubemap and GFXTextureArray classes, this should be a final cleanup step but PR up for testing and beatup checks.

GBitmap Changes:
Added all other formats to gbitmap that we support
gbitmap now supports cubemaps
added converters for all these other formats
added stb_image_resize for extrudemips so we can extrude mipmaps for all other formats

GFXTextureManager
Can now directly make cubemaps and texture arrays based on the GFXTextureProfile
API implementations for all functions that cubemaps and arrays needed
@Azaezel Azaezel merged commit f55d061 into TorqueGameEngines:development Dec 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants