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

#include <GteResource.h>

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

Public Member Functions

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 ()
 

Protected Member Functions

 Resource (unsigned int numElements, size_t elementSize, bool createStorage=true)
 
- Protected Member Functions inherited from gte::GraphicsObject
 GraphicsObject ()
 

Protected Attributes

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)
 

Detailed Description

Definition at line 16 of file GteResource.h.

Constructor & Destructor Documentation

Resource::~Resource ( )
virtual

Definition at line 14 of file GteResource.cpp.

Resource::Resource ( unsigned int  numElements,
size_t  elementSize,
bool  createStorage = true 
)
protected

Definition at line 19 of file GteResource.cpp.

Member Function Documentation

void Resource::CreateStorage ( )

Definition at line 63 of file GteResource.cpp.

void Resource::DestroyStorage ( )

Definition at line 75 of file GteResource.cpp.

template<typename T >
T const * gte::Resource::Get ( ) const
inline

Definition at line 162 of file GteResource.h.

template<typename T >
T * gte::Resource::Get ( )
inline

Definition at line 168 of file GteResource.h.

Resource::CopyType gte::Resource::GetCopyType ( ) const
inline

Definition at line 136 of file GteResource.h.

char const * gte::Resource::GetData ( ) const
inline

Definition at line 151 of file GteResource.h.

char * gte::Resource::GetData ( )
inline

Definition at line 156 of file GteResource.h.

unsigned int gte::Resource::GetElementSize ( ) const
inline

Definition at line 111 of file GteResource.h.

unsigned int gte::Resource::GetNumActiveBytes ( ) const
inline

Definition at line 183 of file GteResource.h.

unsigned int gte::Resource::GetNumActiveElements ( ) const
inline

Definition at line 178 of file GteResource.h.

unsigned int gte::Resource::GetNumBytes ( ) const
inline

Definition at line 116 of file GteResource.h.

unsigned int gte::Resource::GetNumElements ( ) const
inline

Definition at line 106 of file GteResource.h.

unsigned int gte::Resource::GetOffset ( ) const
inline

Definition at line 173 of file GteResource.h.

Resource::Usage gte::Resource::GetUsage ( ) const
inline

Definition at line 126 of file GteResource.h.

void gte::Resource::ResetData ( )
inline

Definition at line 141 of file GteResource.h.

void gte::Resource::SetCopyType ( CopyType  copyType)
inline

Definition at line 131 of file GteResource.h.

void gte::Resource::SetData ( char *  data)
inline

Definition at line 146 of file GteResource.h.

void Resource::SetNumActiveElements ( unsigned int  numActiveElements)

Definition at line 103 of file GteResource.cpp.

void Resource::SetOffset ( unsigned int  offset)

Definition at line 90 of file GteResource.cpp.

void gte::Resource::SetUsage ( Usage  usage)
inline

Definition at line 121 of file GteResource.h.

Member Data Documentation

CopyType gte::Resource::mCopyType
protected

Definition at line 98 of file GteResource.h.

char* gte::Resource::mData
protected

Definition at line 102 of file GteResource.h.

unsigned int gte::Resource::mElementSize
protected

Definition at line 95 of file GteResource.h.

unsigned int gte::Resource::mNumActiveElements
protected

Definition at line 100 of file GteResource.h.

unsigned int gte::Resource::mNumBytes
protected

Definition at line 96 of file GteResource.h.

unsigned int gte::Resource::mNumElements
protected

Definition at line 94 of file GteResource.h.

unsigned int gte::Resource::mOffset
protected

Definition at line 99 of file GteResource.h.

std::vector<char> gte::Resource::mStorage
protected

Definition at line 101 of file GteResource.h.

Usage gte::Resource::mUsage
protected

Definition at line 97 of file GteResource.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