Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
gte::TextureSingle Class Reference

#include <GteTextureSingle.h>

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

Public Member Functions

char const * GetDataFor (unsigned int level) const
 
char * GetDataFor (unsigned int level)
 
template<typename T >
T const * GetFor (unsigned int level) const
 
template<typename T >
T * GetFor (unsigned int level)
 
unsigned int GetOffsetFor (unsigned int level) const
 
- Public Member Functions inherited from gte::Texture
void AutogenerateMipmaps ()
 
char const * GetDataFor (unsigned int item, unsigned int level) const
 
char * GetDataFor (unsigned int item, unsigned int level)
 
unsigned int GetDimension (int i) const
 
unsigned int GetDimensionFor (unsigned int level, int i) const
 
template<typename T >
T const * GetFor (unsigned int item, unsigned int level) const
 
template<typename T >
T * GetFor (unsigned int item, unsigned int level)
 
DFType GetFormat () const
 
unsigned int GetIndex (unsigned int item, unsigned int level) const
 
unsigned int GetNumBytesFor (unsigned int level) const
 
unsigned int GetNumDimensions () const
 
unsigned int GetNumElementsFor (unsigned int level) const
 
unsigned int GetNumItems () const
 
unsigned int GetNumLevels () const
 
unsigned int GetNumSubresources () const
 
unsigned int GetOffsetFor (unsigned int item, unsigned int level) const
 
Subresource GetSubresource (unsigned int index) const
 
bool HasMipmaps () const
 
bool WantAutogenerateMipmaps () const
 
- Public Member Functions inherited from gte::Resource
void CreateStorage ()
 
void DestroyStorage ()
 
template<typename T >
T const * Get () const
 
template<typename T >
T * Get ()
 
CopyType GetCopyType () const
 
char const * GetData () const
 
char * GetData ()
 
unsigned int GetElementSize () const
 
unsigned int GetNumActiveBytes () const
 
unsigned int GetNumActiveElements () const
 
unsigned int GetNumBytes () const
 
unsigned int GetNumElements () const
 
unsigned int GetOffset () const
 
Usage GetUsage () const
 
void ResetData ()
 
void SetCopyType (CopyType copyType)
 
void SetData (char *data)
 
void SetNumActiveElements (unsigned int numActiveElements)
 
void SetOffset (unsigned int offset)
 
void SetUsage (Usage usage)
 
virtual ~Resource ()
 
- Public Member Functions inherited from gte::GraphicsObject
std::string const & GetName () const
 
GraphicsObjectType GetType () const
 
bool IsBuffer () const
 
bool IsDrawingState () const
 
bool IsShader () const
 
bool IsTexture () const
 
bool IsTextureArray () const
 
void SetName (std::string const &name)
 
virtual ~GraphicsObject ()
 

Static Public Attributes

static int const shaderDataLookup = 4
 

Protected Member Functions

 TextureSingle (DFType format, unsigned int numDimensions, unsigned int dim0, unsigned int dim1, unsigned int dim2, bool hasMipmaps, bool createStorage)
 
- Protected Member Functions inherited from gte::Texture
 Texture (unsigned int numItems, DFType format, unsigned int numDimensions, unsigned int dim0, unsigned int dim1, unsigned int dim2, bool hasMipmaps, bool createStorage)
 
- Protected Member Functions inherited from gte::Resource
 Resource (unsigned int numElements, size_t elementSize, bool createStorage=true)
 
- Protected Member Functions inherited from gte::GraphicsObject
 GraphicsObject ()
 

Additional Inherited Members

- Public Types inherited from gte::Texture
enum  { MAX_MIPMAP_LEVELS = 16 }
 
- Static Public Member Functions inherited from gte::GraphicsObject
static void SubscribeForDestruction (std::shared_ptr< ListenerForDestruction > const &listener)
 
static void UnsubscribeForDestruction (std::shared_ptr< ListenerForDestruction > const &listener)
 
- Static Protected Member Functions inherited from gte::Texture
static unsigned int GetTotalElements (unsigned int numItems, unsigned int dim0, unsigned int dim1, unsigned int dim2, bool hasMipmaps)
 
- Protected Attributes inherited from gte::Texture
bool mAutogenerateMipmaps
 
DFType mFormat
 
bool mHasMipmaps
 
std::array< std::array< unsigned int, 3 >, MAX_MIPMAP_LEVELSmLDimension
 
std::array< unsigned int, MAX_MIPMAP_LEVELSmLNumBytes
 
std::vector< std::array< unsigned int, MAX_MIPMAP_LEVELS > > mLOffset
 
unsigned int mNumDimensions
 
unsigned int mNumItems
 
unsigned int mNumLevels
 
- Protected Attributes inherited from gte::Resource
CopyType mCopyType
 
char * mData
 
unsigned int mElementSize
 
unsigned int mNumActiveElements
 
unsigned int mNumBytes
 
unsigned int mNumElements
 
unsigned int mOffset
 
std::vector< char > mStorage
 
Usage mUsage
 
- Protected Attributes inherited from gte::GraphicsObject
std::string mName
 
GraphicsObjectType mType
 

Detailed Description

Definition at line 15 of file GteTextureSingle.h.

Constructor & Destructor Documentation

TextureSingle::TextureSingle ( DFType  format,
unsigned int  numDimensions,
unsigned int  dim0,
unsigned int  dim1,
unsigned int  dim2,
bool  hasMipmaps,
bool  createStorage 
)
protected

Definition at line 13 of file GteTextureSingle.cpp.

Member Function Documentation

char const * gte::TextureSingle::GetDataFor ( unsigned int  level) const
inline

Definition at line 42 of file GteTextureSingle.h.

char * gte::TextureSingle::GetDataFor ( unsigned int  level)
inline

Definition at line 47 of file GteTextureSingle.h.

template<typename T >
T const * gte::TextureSingle::GetFor ( unsigned int  level) const
inline

Definition at line 53 of file GteTextureSingle.h.

template<typename T >
T * gte::TextureSingle::GetFor ( unsigned int  level)
inline

Definition at line 59 of file GteTextureSingle.h.

unsigned int gte::TextureSingle::GetOffsetFor ( unsigned int  level) const
inline

Definition at line 37 of file GteTextureSingle.h.

Member Data Documentation

int const gte::TextureSingle::shaderDataLookup = 4
static

Definition at line 33 of file GteTextureSingle.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:07