mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 11:55:33 +00:00
Implement Singlepass Terrain Render
This commit is contained in:
parent
49a8c0ad36
commit
87dd7ffc4a
35 changed files with 1658 additions and 951 deletions
34
Engine/source/gfx/gl/gfxGLTextureArray.h
Normal file
34
Engine/source/gfx/gl/gfxGLTextureArray.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue