Public Member Functions | Protected Member Functions | Static Protected Attributes | Private Attributes | List of all members
gte::GL4TextureArray Class Referenceabstract

#include <GteGL4TextureArray.h>

Inheritance diagram for gte::GL4TextureArray:
Inheritance graph
[legend]

Public Member Functions

virtual bool CanAutoGenerateMipmaps () const =0
 
virtual bool CopyCpuToGpu () override
 
bool CopyCpuToGpu (unsigned int item, unsigned int level)
 
virtual bool CopyGpuToCpu () override
 
bool CopyGpuToCpu (unsigned int item, unsigned int level)
 
void CopyGpuToGpu (GL4TextureArray *target, unsigned int item, unsigned int level)
 
virtual bool GenerateMipmaps ()
 
TextureArrayGetTexture () const
 
virtual bool Update () override
 
bool Update (unsigned int item, unsigned int level)
 
virtual ~GL4TextureArray ()
 
- Public Member Functions inherited from gte::GL4Texture
GLenum GetTarget () const
 
GLenum GetTargetBinding () const
 
TextureGetTexture () const
 
- Public Member Functions inherited from gte::GL4Resource
virtual void CopyGpuToGpu (GL4Resource *target)
 
ResourceGetResource () const
 
voidMapForWrite (GLenum target)
 
void Unmap (GLenum target)
 
- Public Member Functions inherited from gte::GL4GraphicsObject
GLuint GetGLHandle () const
 
virtual void SetName (std::string const &name) override
 
- Public Member Functions inherited from gte::GEObject
GraphicsObjectGetGraphicsObject () const
 
std::string const & GetName () const
 
virtual ~GEObject ()
 

Protected Member Functions

void CreateStaging ()
 
bool DoCopyCpuToGpu (unsigned int item, unsigned int level)
 
 GL4TextureArray (TextureArray const *gtTexture, GLenum target, GLenum targetBinding)
 
void Initialize ()
 
virtual void LoadTextureLevel (unsigned int item, unsigned int level, void const *data)=0
 
- Protected Member Functions inherited from gte::GL4Texture
 GL4Texture (Texture const *texture, GLenum target, GLenum targetBinding)
 
- Protected Member Functions inherited from gte::GL4Resource
 GL4Resource (Resource const *gtResource)
 
bool PreparedForCopy (GLenum access) const
 
- Protected Member Functions inherited from gte::GL4GraphicsObject
 GL4GraphicsObject (GraphicsObject const *gtObject)
 
- Protected Member Functions inherited from gte::GEObject
 GEObject (GraphicsObject const *gtObject)
 

Static Protected Attributes

static GLenum const msCubeFaceTarget [6]
 
- Static Protected Attributes inherited from gte::GL4Texture
static GLuint const msGLTextureExternalFormat [DF_NUM_FORMATS]
 
static GLuint const msGLTextureExternalType [DF_NUM_CHANNEL_TYPES]
 
static GLuint const msGLTextureInternalFormat [DF_NUM_FORMATS]
 

Private Attributes

GLuint mLevelPixelPackBuffer [Texture::MAX_MIPMAP_LEVELS]
 
GLuint mLevelPixelUnpackBuffer [Texture::MAX_MIPMAP_LEVELS]
 

Additional Inherited Members

- Static Public Member Functions inherited from gte::GL4Texture
static GLuint GetInternalFormat (DFType dataFormat)
 
- Protected Attributes inherited from gte::GL4Texture
GLuint mExternalFormat
 
GLuint mExternalType
 
GLuint mInternalFormat
 
GLint mNumLevels
 
GLenum mTarget
 
GLenum mTargetBinding
 
- Protected Attributes inherited from gte::GL4GraphicsObject
GLuint mGLHandle
 
- Protected Attributes inherited from gte::GEObject
GraphicsObjectmGTObject
 
std::string mName
 

Detailed Description

Definition at line 16 of file GteGL4TextureArray.h.

Constructor & Destructor Documentation

GL4TextureArray::~GL4TextureArray ( )
virtual

Definition at line 13 of file GteGL4TextureArray.cpp.

GL4TextureArray::GL4TextureArray ( TextureArray const *  gtTexture,
GLenum  target,
GLenum  targetBinding 
)
protected

Definition at line 22 of file GteGL4TextureArray.cpp.

Member Function Documentation

virtual bool gte::GL4TextureArray::CanAutoGenerateMipmaps ( ) const
pure virtual
bool GL4TextureArray::CopyCpuToGpu ( )
overridevirtual

Reimplemented from gte::GL4Resource.

Definition at line 124 of file GteGL4TextureArray.cpp.

bool GL4TextureArray::CopyCpuToGpu ( unsigned int  item,
unsigned int  level 
)

Definition at line 192 of file GteGL4TextureArray.cpp.

bool GL4TextureArray::CopyGpuToCpu ( )
overridevirtual

Reimplemented from gte::GL4Resource.

Definition at line 161 of file GteGL4TextureArray.cpp.

bool GL4TextureArray::CopyGpuToCpu ( unsigned int  item,
unsigned int  level 
)

Definition at line 202 of file GteGL4TextureArray.cpp.

void gte::GL4TextureArray::CopyGpuToGpu ( GL4TextureArray target,
unsigned int  item,
unsigned int  level 
)
inline

Definition at line 33 of file GteGL4TextureArray.h.

void GL4TextureArray::CreateStaging ( )
protected

Definition at line 312 of file GteGL4TextureArray.cpp.

bool GL4TextureArray::DoCopyCpuToGpu ( unsigned int  item,
unsigned int  level 
)
protected

Definition at line 255 of file GteGL4TextureArray.cpp.

bool GL4TextureArray::GenerateMipmaps ( )
virtual

Definition at line 367 of file GteGL4TextureArray.cpp.

TextureArray * gte::GL4TextureArray::GetTexture ( ) const
inline

Definition at line 74 of file GteGL4TextureArray.h.

void GL4TextureArray::Initialize ( )
protected

Definition at line 31 of file GteGL4TextureArray.cpp.

virtual void gte::GL4TextureArray::LoadTextureLevel ( unsigned int  item,
unsigned int  level,
void const *  data 
)
protectedpure virtual
bool GL4TextureArray::Update ( )
overridevirtual

Reimplemented from gte::GL4Resource.

Definition at line 87 of file GteGL4TextureArray.cpp.

bool GL4TextureArray::Update ( unsigned int  item,
unsigned int  level 
)

Definition at line 180 of file GteGL4TextureArray.cpp.

Member Data Documentation

GLuint gte::GL4TextureArray::mLevelPixelPackBuffer[Texture::MAX_MIPMAP_LEVELS]
private

Definition at line 71 of file GteGL4TextureArray.h.

GLuint gte::GL4TextureArray::mLevelPixelUnpackBuffer[Texture::MAX_MIPMAP_LEVELS]
private

Definition at line 70 of file GteGL4TextureArray.h.

GLenum const GL4TextureArray::msCubeFaceTarget
staticprotected

The documentation for this class was generated from the following files:


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06