Refactor GFXTextureArray

This commit is contained in:
Lukas Aldershaab 2021-01-01 21:05:11 +01:00
parent 87dd7ffc4a
commit e92e945912
7 changed files with 234 additions and 307 deletions

View file

@ -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;
};