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

#include <GteGL4TextureSingle.h>

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

Public Member Functions

virtual bool CanAutoGenerateMipmaps () const =0
 
virtual bool CopyCpuToGpu () override
 
bool CopyCpuToGpu (unsigned int level)
 
virtual bool CopyGpuToCpu () override
 
bool CopyGpuToCpu (unsigned int level)
 
void CopyGpuToGpu (GL4TextureSingle *texture, unsigned int level)
 
virtual bool GenerateMipmaps ()
 
TextureSingleGetTexture () const
 
virtual bool Update () override
 
bool Update (unsigned int level)
 
virtual ~GL4TextureSingle ()
 
- 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 level)
 
 GL4TextureSingle (TextureSingle const *gtTexture, GLenum target, GLenum targetBinding)
 
void Initialize ()
 
virtual void LoadTextureLevel (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)
 

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
 
- 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]
 

Detailed Description

Definition at line 17 of file GteGL4TextureSingle.h.

Constructor & Destructor Documentation

GL4TextureSingle::~GL4TextureSingle ( )
virtual

Definition at line 13 of file GteGL4TextureSingle.cpp.

GL4TextureSingle::GL4TextureSingle ( TextureSingle const *  gtTexture,
GLenum  target,
GLenum  targetBinding 
)
protected

Definition at line 22 of file GteGL4TextureSingle.cpp.

Member Function Documentation

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

Reimplemented from gte::GL4Resource.

Definition at line 110 of file GteGL4TextureSingle.cpp.

bool GL4TextureSingle::CopyCpuToGpu ( unsigned int  level)

Definition at line 167 of file GteGL4TextureSingle.cpp.

bool GL4TextureSingle::CopyGpuToCpu ( )
overridevirtual

Reimplemented from gte::GL4Resource.

Definition at line 140 of file GteGL4TextureSingle.cpp.

bool GL4TextureSingle::CopyGpuToCpu ( unsigned int  level)

Definition at line 177 of file GteGL4TextureSingle.cpp.

void gte::GL4TextureSingle::CopyGpuToGpu ( GL4TextureSingle texture,
unsigned int  level 
)
inline

Definition at line 34 of file GteGL4TextureSingle.h.

void GL4TextureSingle::CreateStaging ( )
protected

Definition at line 294 of file GteGL4TextureSingle.cpp.

bool GL4TextureSingle::DoCopyCpuToGpu ( unsigned int  level)
protected

Definition at line 222 of file GteGL4TextureSingle.cpp.

bool GL4TextureSingle::GenerateMipmaps ( )
virtual

Definition at line 271 of file GteGL4TextureSingle.cpp.

TextureSingle * gte::GL4TextureSingle::GetTexture ( ) const
inline

Definition at line 71 of file GteGL4TextureSingle.h.

void GL4TextureSingle::Initialize ( )
protected

Definition at line 31 of file GteGL4TextureSingle.cpp.

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

Reimplemented from gte::GL4Resource.

Definition at line 80 of file GteGL4TextureSingle.cpp.

bool GL4TextureSingle::Update ( unsigned int  level)

Definition at line 155 of file GteGL4TextureSingle.cpp.

Member Data Documentation

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

Definition at line 68 of file GteGL4TextureSingle.h.

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

Definition at line 67 of file GteGL4TextureSingle.h.


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