Update GFXTextureManager and GBitmap

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
This commit is contained in:
marauder2k7 2025-12-22 10:29:01 +00:00
parent 975fc924cc
commit 3aef90a6bc
66 changed files with 4235 additions and 2590 deletions

View file

@ -145,7 +145,7 @@ class CubeReflector : public ReflectorBase
public:
CubeReflector();
virtual ~CubeReflector() {}
virtual ~CubeReflector() { mCubemap.free(); }
void registerReflector( SceneObject *inObject,
ReflectorDesc *inDesc );
@ -153,7 +153,7 @@ public:
void unregisterReflector() override;
void updateReflection( const ReflectParams &params, Point3F explicitPostion = Point3F::Max) override;
GFXCubemap* getCubemap() const { return mCubemap; }
GFXTexHandle getCubemap() const { return mCubemap; }
void updateFace( const ReflectParams &params, U32 faceidx, Point3F explicitPostion = Point3F::Max);
F32 calcFaceScore( const ReflectParams &params, U32 faceidx );
@ -162,7 +162,7 @@ protected:
GFXTexHandle mDepthBuff;
GFXTextureTargetRef mRenderTarget;
GFXCubemapHandle mCubemap;
GFXTexHandle mCubemap;
U32 mLastTexSize;
class CubeFaceReflector : public ReflectorBase