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

#include <GteVertexBuffer.h>

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

Public Member Functions

char * GetChannel (VASemantic semantic, unsigned int unit, std::set< DFType > const &requiredTypes)
 
VertexFormat const & GetFormat () const
 
std::shared_ptr< StructuredBuffer > const & GetSBuffer () const
 
bool StandardUsage () const
 
 VertexBuffer (VertexFormat const &vformat, unsigned int numVertices, bool createStorage=true)
 
 VertexBuffer (VertexFormat const &vformat, std::shared_ptr< StructuredBuffer > const &sbuffer)
 
 VertexBuffer (unsigned int numVertices)
 
- 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 ()
 

Protected Attributes

std::shared_ptr< StructuredBuffermSBuffer
 
VertexFormat mVFormat
 
- 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 18 of file GteVertexBuffer.h.

Constructor & Destructor Documentation

VertexBuffer::VertexBuffer ( VertexFormat const &  vformat,
unsigned int  numVertices,
bool  createStorage = true 
)

Definition at line 13 of file GteVertexBuffer.cpp.

VertexBuffer::VertexBuffer ( VertexFormat const &  vformat,
std::shared_ptr< StructuredBuffer > const &  sbuffer 
)

Definition at line 22 of file GteVertexBuffer.cpp.

VertexBuffer::VertexBuffer ( unsigned int  numVertices)

Definition at line 33 of file GteVertexBuffer.cpp.

Member Function Documentation

char * VertexBuffer::GetChannel ( VASemantic  semantic,
unsigned int  unit,
std::set< DFType > const &  requiredTypes 
)

Definition at line 40 of file GteVertexBuffer.cpp.

VertexFormat const & gte::VertexBuffer::GetFormat ( ) const
inline

Definition at line 61 of file GteVertexBuffer.h.

std::shared_ptr< StructuredBuffer > const & gte::VertexBuffer::GetSBuffer ( ) const
inline

Definition at line 71 of file GteVertexBuffer.h.

bool gte::VertexBuffer::StandardUsage ( ) const
inline

Definition at line 66 of file GteVertexBuffer.h.

Member Data Documentation

std::shared_ptr<StructuredBuffer> gte::VertexBuffer::mSBuffer
protected

Definition at line 57 of file GteVertexBuffer.h.

VertexFormat gte::VertexBuffer::mVFormat
protected

Definition at line 54 of file GteVertexBuffer.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