Torque3D Documentation / _generateds / gfxGLTextureArray.h

gfxGLTextureArray.h

Engine/source/gfx/gl/gfxGLTextureArray.h

More...

Classes:

Detailed Description

 1
 2#ifndef _GFXGLTEXTUREARRAY_H_
 3#define _GFXGLTEXTUREARRAY_H_
 4
 5#include <glad/glad.h>
 6
 7#include "gfx/gfxTextureArray.h"
 8#include "gfx/gfxTextureManager.h"
 9
10class GFXGLTextureArray : public GFXTextureArray
11{
12public:
13   GFXGLTextureArray();
14
15   ~GFXGLTextureArray() { Release(); };
16
17   void init();
18
19   void setToTexUnit(U32 tuNum) override;
20
21   void bind(U32 textureUnit) const;
22
23   // GFXResource interface
24   void zombify() override;
25   void resurrect() override;
26   void Release() override;
27
28protected:
29   void _setTexture(const GFXTexHandle& texture, U32 slot) override;
30
31private:
32   GLuint mTextureArray;
33};
34
35
36#endif
37