mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +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
|
|
@ -26,7 +26,9 @@
|
|||
#include "gfx/gfxTextureObject.h"
|
||||
#include "gfx/gl/tGL/tGL.h"
|
||||
#include "gfx/gfxStateBlock.h"
|
||||
|
||||
#ifndef _MRECT_H_
|
||||
#include "math/mRect.h"
|
||||
#endif
|
||||
class GFXGLDevice;
|
||||
|
||||
class GFXGLTextureObject : public GFXTextureObject
|
||||
|
|
@ -64,11 +66,13 @@ public:
|
|||
|
||||
/// Get/set data from texture (for dynamic textures and render targets)
|
||||
/// @attention DO NOT READ FROM THE RETURNED RECT! It is not guaranteed to work and may incur significant performance penalties.
|
||||
GFXLockedRect* lock(U32 mipLevel = 0, RectI *inRect = NULL) override;
|
||||
void unlock(U32 mipLevel = 0 ) override;
|
||||
GFXLockedRect* lock(U32 mipLevel = 0, RectI *inRect = NULL, U32 faceIndex = 0) override;
|
||||
void unlock(U32 mipLevel = 0, U32 faceIndex = 0) override;
|
||||
|
||||
bool copyToBmp(GBitmap *) override; ///< Not implemented
|
||||
|
||||
void updateTextureSlot(const GFXTexHandle& texHandle, const U32 slot, const S32 face = -1) override;
|
||||
void copyTo(GFXTextureObject* dstTex) override;
|
||||
void generateMipMaps() override {};
|
||||
bool mIsNPoT2;
|
||||
|
||||
// GFXResource interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue