mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-28 07:45:40 +00:00
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:
parent
975fc924cc
commit
3aef90a6bc
66 changed files with 4235 additions and 2590 deletions
|
|
@ -50,35 +50,35 @@ public:
|
|||
|
||||
const Point2I getSize() override;
|
||||
GFXFormat getFormat() override;
|
||||
void attachTexture(RenderSlot slot, GFXTextureObject *tex, U32 mipLevel=0, U32 zOffset = 0) override;
|
||||
void attachTexture(RenderSlot slot, GFXCubemap *tex, U32 face, U32 mipLevel=0) override;
|
||||
void attachTexture(RenderSlot slot, GFXTextureObject* tex, U32 mipLevel = 0, U32 zOffset = 0, U32 face = 0) override;
|
||||
void attachTexture(RenderSlot slot, GFXCubemap* tex, U32 face, U32 mipLevel = 0) override;
|
||||
virtual void clearAttachments();
|
||||
|
||||
/// Functions to query internal state
|
||||
/// @{
|
||||
|
||||
|
||||
/// Returns the internal structure for the given slot. This should only be called by our internal implementations.
|
||||
_GFXGLTargetDesc* getTargetDesc(RenderSlot slot) const;
|
||||
|
||||
/// @}
|
||||
|
||||
|
||||
void deactivate() override;
|
||||
void zombify() override;
|
||||
void resurrect() override;
|
||||
const String describeSelf() const override;
|
||||
|
||||
|
||||
void resolve() override;
|
||||
|
||||
|
||||
void resolveTo(GFXTextureObject* obj) override;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
friend class GFXGLDevice;
|
||||
|
||||
/// The callback used to get texture events.
|
||||
/// @see GFXTextureManager::addEventDelegate
|
||||
void _onTextureEvent( GFXTexCallbackCode code );
|
||||
|
||||
void _onTextureEvent(GFXTexCallbackCode code);
|
||||
|
||||
/// Pointer to our internal implementation
|
||||
AutoPtr<_GFXGLTextureTargetImpl> _impl;
|
||||
|
||||
|
|
@ -87,10 +87,10 @@ protected:
|
|||
|
||||
/// These redirect to our internal implementation
|
||||
/// @{
|
||||
|
||||
|
||||
void applyState();
|
||||
void makeActive();
|
||||
|
||||
|
||||
/// @}
|
||||
|
||||
//copy FBO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue