mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 22:05:40 +00:00
Refactor GFXTextureArray
This commit is contained in:
parent
87dd7ffc4a
commit
e92e945912
7 changed files with 234 additions and 307 deletions
|
|
@ -11,9 +11,10 @@ class GFXGLTextureArray : public GFXTextureArray
|
|||
public:
|
||||
GFXGLTextureArray();
|
||||
|
||||
~GFXGLTextureArray();
|
||||
~GFXGLTextureArray() { Release(); };
|
||||
|
||||
void init();
|
||||
|
||||
bool fromTextureArray(const Vector<GFXTexHandle>& textureArray) override;
|
||||
void setToTexUnit(U32 tuNum) override;
|
||||
|
||||
void bind(U32 textureUnit) const;
|
||||
|
|
@ -23,11 +24,13 @@ public:
|
|||
void resurrect() override;
|
||||
void Release() override;
|
||||
|
||||
protected:
|
||||
void _setTexture(const GFXTexHandle& texture, U32 slot) override;
|
||||
|
||||
private:
|
||||
GLuint mTextureArray;
|
||||
|
||||
U32 mMipMapLevels;
|
||||
GFXFormat mFormat;
|
||||
bool mIsCompressed;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue