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

#include <GteTextureBuffer.h>

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

Public Member Functions

DFType GetFormat () const
 
std::vector< MemberLayout > const & GetLayout () const
 
template<typename T >
bool GetMember (std::string const &name, T &value) const
 
template<typename T >
bool GetMember (std::string const &name, unsigned int index, T &value) const
 
bool HasMember (std::string const &name) const
 
void SetLayout (std::vector< MemberLayout > const &layout)
 
template<typename T >
bool SetMember (std::string const &name, T const &value)
 
template<typename T >
bool SetMember (std::string const &name, unsigned int index, T const &value)
 
 TextureBuffer (DFType format, unsigned int numElements, bool allowDynamicUpdate)
 
- 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 = 1
 

Protected Attributes

DFType mFormat
 
std::vector< MemberLayoutmLayout
 
- 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
 

Additional Inherited Members

- 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)
 
- Protected Member Functions inherited from gte::Buffer
 Buffer (unsigned int numElements, size_t elementSize, bool createStorage=true)
 
- 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 ()
 

Detailed Description

Definition at line 19 of file GteTextureBuffer.h.

Constructor & Destructor Documentation

TextureBuffer::TextureBuffer ( DFType  format,
unsigned int  numElements,
bool  allowDynamicUpdate 
)

Definition at line 13 of file GteTextureBuffer.cpp.

Member Function Documentation

DFType TextureBuffer::GetFormat ( ) const

Definition at line 24 of file GteTextureBuffer.cpp.

std::vector< MemberLayout > const & gte::TextureBuffer::GetLayout ( ) const
inline

Definition at line 84 of file GteTextureBuffer.h.

template<typename T >
bool gte::TextureBuffer::GetMember ( std::string const &  name,
T &  value 
) const

Definition at line 119 of file GteTextureBuffer.h.

template<typename T >
bool gte::TextureBuffer::GetMember ( std::string const &  name,
unsigned int  index,
T &  value 
) const

Definition at line 184 of file GteTextureBuffer.h.

bool TextureBuffer::HasMember ( std::string const &  name) const

Definition at line 29 of file GteTextureBuffer.cpp.

void gte::TextureBuffer::SetLayout ( std::vector< MemberLayout > const &  layout)
inline

Definition at line 79 of file GteTextureBuffer.h.

template<typename T >
bool gte::TextureBuffer::SetMember ( std::string const &  name,
T const &  value 
)

Definition at line 90 of file GteTextureBuffer.h.

template<typename T >
bool gte::TextureBuffer::SetMember ( std::string const &  name,
unsigned int  index,
T const &  value 
)

Definition at line 148 of file GteTextureBuffer.h.

Member Data Documentation

DFType gte::TextureBuffer::mFormat
protected

Definition at line 70 of file GteTextureBuffer.h.

std::vector<MemberLayout> gte::TextureBuffer::mLayout
protected

Definition at line 71 of file GteTextureBuffer.h.

int const gte::TextureBuffer::shaderDataLookup = 1
static

Definition at line 75 of file GteTextureBuffer.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