mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-26 23:59:30 +00:00
35 lines
628 B
C
35 lines
628 B
C
|
|
#ifndef _GFXGLTEXTUREARRAY_H_
|
||
|
|
#define _GFXGLTEXTUREARRAY_H_
|
||
|
|
|
||
|
|
#include <glad/glad.h>
|
||
|
|
|
||
|
|
#include "gfx/gfxTextureArray.h"
|
||
|
|
#include "gfx/gfxTextureManager.h"
|
||
|
|
|
||
|
|
class GFXGLTextureArray : public GFXTextureArray
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
GFXGLTextureArray();
|
||
|
|
|
||
|
|
~GFXGLTextureArray();
|
||
|
|
|
||
|
|
bool fromTextureArray(const Vector<GFXTexHandle>& textureArray) override;
|
||
|
|
void setToTexUnit(U32 tuNum) override;
|
||
|
|
|
||
|
|
void bind(U32 textureUnit) const;
|
||
|
|
|
||
|
|
// GFXResource interface
|
||
|
|
void zombify() override;
|
||
|
|
void resurrect() override;
|
||
|
|
void Release() override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
GLuint mTextureArray;
|
||
|
|
|
||
|
|
U32 mMipMapLevels;
|
||
|
|
GFXFormat mFormat;
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
#endif
|