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

#include <GteIndexBuffer.h>

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

Public Member Functions

uint32_t GetFirstIndex () const
 
uint32_t GetFirstPrimitive () const
 
uint32_t GetNumActiveIndices () const
 
uint32_t GetNumActivePrimitives () const
 
uint32_t GetNumPrimitives () const
 
bool GetPoint (uint32_t i, uint32_t &v) const
 
IPType GetPrimitiveType () const
 
bool GetSegment (uint32_t i, uint32_t &v0, uint32_t &v1) const
 
bool GetTriangle (uint32_t i, uint32_t &v0, uint32_t &v1, uint32_t &v2) const
 
 IndexBuffer (IPType type, uint32_t numPrimitives, size_t indexSize, bool createStorage=true)
 
 IndexBuffer (IPType type, uint32_t numPrimitives)
 
bool IsIndexed () const
 
void SetFirstPrimitive (uint32_t first)
 
void SetNumActivePrimitives (uint32_t numActive)
 
bool SetPoint (uint32_t i, uint32_t v)
 
bool SetSegment (uint32_t i, uint32_t v0, uint32_t v1)
 
bool SetTriangle (uint32_t i, uint32_t v0, uint32_t v1, uint32_t v2)
 
- 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 Types

typedef uint32_t(* ICFunction) (uint32_t)
 

Protected Member Functions

bool ValidPrimitiveType (IPType type) const
 
- 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 ()
 

Static Protected Member Functions

static uint32_t GetPolypointIndexCount (uint32_t numPrimitives)
 
static uint32_t GetPolysegmentContiguousAdjIndexCount (uint32_t numPrimitives)
 
static uint32_t GetPolysegmentContiguousIndexCount (uint32_t numPrimitives)
 
static uint32_t GetPolysegmentDisjointAdjIndexCount (uint32_t numPrimitives)
 
static uint32_t GetPolysegmentDisjointIndexCount (uint32_t numPrimitives)
 
static uint32_t GetTrimeshAdjIndexCount (uint32_t numPrimitives)
 
static uint32_t GetTrimeshIndexCount (uint32_t numPrimitives)
 
static uint32_t GetTristripAdjIndexCount (uint32_t numPrimitives)
 
static uint32_t GetTristripIndexCount (uint32_t numPrimitives)
 

Protected Attributes

uint32_t mFirstPrimitive
 
uint32_t mNumActivePrimitives
 
uint32_t mNumPrimitives
 
IPType mPrimitiveType
 
- 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
 

Static Protected Attributes

static ICFunction msIndexCounter [IP_NUM_TYPES]
 

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 22 of file GteIndexBuffer.h.

Member Typedef Documentation

typedef uint32_t(* gte::IndexBuffer::ICFunction) (uint32_t)
protected

Definition at line 89 of file GteIndexBuffer.h.

Constructor & Destructor Documentation

IndexBuffer::IndexBuffer ( IPType  type,
uint32_t  numPrimitives,
size_t  indexSize,
bool  createStorage = true 
)

Definition at line 14 of file GteIndexBuffer.cpp.

IndexBuffer::IndexBuffer ( IPType  type,
uint32_t  numPrimitives 
)

Definition at line 26 of file GteIndexBuffer.cpp.

Member Function Documentation

uint32_t IndexBuffer::GetFirstIndex ( ) const

Definition at line 68 of file GteIndexBuffer.cpp.

uint32_t gte::IndexBuffer::GetFirstPrimitive ( ) const
inline

Definition at line 124 of file GteIndexBuffer.h.

uint32_t IndexBuffer::GetNumActiveIndices ( ) const

Definition at line 51 of file GteIndexBuffer.cpp.

uint32_t gte::IndexBuffer::GetNumActivePrimitives ( ) const
inline

Definition at line 119 of file GteIndexBuffer.h.

uint32_t gte::IndexBuffer::GetNumPrimitives ( ) const
inline

Definition at line 109 of file GteIndexBuffer.h.

bool IndexBuffer::GetPoint ( uint32_t  i,
uint32_t &  v 
) const

Definition at line 101 of file GteIndexBuffer.cpp.

uint32_t IndexBuffer::GetPolypointIndexCount ( uint32_t  numPrimitives)
staticprotected

Definition at line 318 of file GteIndexBuffer.cpp.

uint32_t IndexBuffer::GetPolysegmentContiguousAdjIndexCount ( uint32_t  numPrimitives)
staticprotected

Definition at line 356 of file GteIndexBuffer.cpp.

uint32_t IndexBuffer::GetPolysegmentContiguousIndexCount ( uint32_t  numPrimitives)
staticprotected

Definition at line 331 of file GteIndexBuffer.cpp.

uint32_t IndexBuffer::GetPolysegmentDisjointAdjIndexCount ( uint32_t  numPrimitives)
staticprotected

Definition at line 350 of file GteIndexBuffer.cpp.

uint32_t IndexBuffer::GetPolysegmentDisjointIndexCount ( uint32_t  numPrimitives)
staticprotected

Definition at line 324 of file GteIndexBuffer.cpp.

IPType gte::IndexBuffer::GetPrimitiveType ( ) const
inline

Definition at line 104 of file GteIndexBuffer.h.

bool IndexBuffer::GetSegment ( uint32_t  i,
uint32_t &  v0,
uint32_t &  v1 
) const

Definition at line 165 of file GteIndexBuffer.cpp.

bool IndexBuffer::GetTriangle ( uint32_t  i,
uint32_t &  v0,
uint32_t &  v1,
uint32_t &  v2 
) const

Definition at line 269 of file GteIndexBuffer.cpp.

uint32_t IndexBuffer::GetTrimeshAdjIndexCount ( uint32_t  numPrimitives)
staticprotected

Definition at line 362 of file GteIndexBuffer.cpp.

uint32_t IndexBuffer::GetTrimeshIndexCount ( uint32_t  numPrimitives)
staticprotected

Definition at line 338 of file GteIndexBuffer.cpp.

uint32_t IndexBuffer::GetTristripAdjIndexCount ( uint32_t  numPrimitives)
staticprotected

Definition at line 368 of file GteIndexBuffer.cpp.

uint32_t IndexBuffer::GetTristripIndexCount ( uint32_t  numPrimitives)
staticprotected

Definition at line 344 of file GteIndexBuffer.cpp.

bool gte::IndexBuffer::IsIndexed ( ) const
inline

Definition at line 114 of file GteIndexBuffer.h.

void IndexBuffer::SetFirstPrimitive ( uint32_t  first)

Definition at line 57 of file GteIndexBuffer.cpp.

void IndexBuffer::SetNumActivePrimitives ( uint32_t  numActive)

Definition at line 38 of file GteIndexBuffer.cpp.

bool IndexBuffer::SetPoint ( uint32_t  i,
uint32_t  v 
)

Definition at line 79 of file GteIndexBuffer.cpp.

bool IndexBuffer::SetSegment ( uint32_t  i,
uint32_t  v0,
uint32_t  v1 
)

Definition at line 123 of file GteIndexBuffer.cpp.

bool IndexBuffer::SetTriangle ( uint32_t  i,
uint32_t  v0,
uint32_t  v1,
uint32_t  v2 
)

Definition at line 207 of file GteIndexBuffer.cpp.

bool gte::IndexBuffer::ValidPrimitiveType ( IPType  type) const
inlineprotected

Definition at line 129 of file GteIndexBuffer.h.

Member Data Documentation

uint32_t gte::IndexBuffer::mFirstPrimitive
protected

Definition at line 85 of file GteIndexBuffer.h.

uint32_t gte::IndexBuffer::mNumActivePrimitives
protected

Definition at line 84 of file GteIndexBuffer.h.

uint32_t gte::IndexBuffer::mNumPrimitives
protected

Definition at line 83 of file GteIndexBuffer.h.

IPType gte::IndexBuffer::mPrimitiveType
protected

Definition at line 82 of file GteIndexBuffer.h.

IndexBuffer::ICFunction IndexBuffer::msIndexCounter
staticprotected

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