Dynamic buffer for working with buffer witch to need change many times before rendering.
More...
#include <DynamicHardwareBuffer.h>
Public Member Functions |
| DynamicHardwareBuffer (u32 vcount, u32 stride, u32 format, u32 IncreaseRate) |
| Constructor.
|
| ~DynamicHardwareBuffer () |
| Destructor.
|
bool | SetData (void *Data, u32 Offset, u32 iSize, ul32 flags=0) |
HardwareBufferType | GetType () const |
| Returns the hardware buffer type.
|
bool | AppendData (void *data, u32 count) |
| Append data to buffer.
|
bool | Commit () |
| Commit changes to buffer.
|
HardwareBuffer * | GetBuffer () |
| Returns the buffer.
|
| HardwareBuffer () |
| Default constructor.
|
| HardwareBuffer (u32 count, u32 stride, u32 id) |
| Constructor.
|
virtual | ~HardwareBuffer () |
| Destructor.
|
bool | Dynamic () const |
void | Dynamic (bool val) |
u32 | GetID () const |
| Returns this hardware buffer unique ID.
|
u32 | GetStride () const |
| Returns this buffer stride.
|
u32 | GetDataCount () const |
virtual bool | Lock (u32 offset, u32 size, void **ppData, ul32 flags) |
| Locks buffer.
|
virtual bool | Unlock () |
| Unlocks buffer.
|
| KgeUnknown () |
| Constructor.
|
virtual | ~KgeUnknown () |
| Destructor.
|
virtual void | AddRef () |
| Add a reference to the object.
|
virtual void | DecRef () |
| Decrease a reference from the object. if its reference count get 0 then the object will destroy.
|
u32 | GetRefCount () |
| Return resource reference count.
|
const char * | GetDebugText () |
| returns the instance debug text.
|
Detailed Description
Dynamic buffer for working with buffer witch to need change many times before rendering.
Definition at line 12 of file DynamicHardwareBuffer.h.
Constructor & Destructor Documentation
kge::gfx::DynamicHardwareBuffer::DynamicHardwareBuffer |
( |
u32 |
vcount, |
|
|
u32 |
stride, |
|
|
u32 |
format, |
|
|
u32 |
IncreaseRate |
|
) |
| |
kge::gfx::DynamicHardwareBuffer::~DynamicHardwareBuffer |
( |
| ) |
|
Member Function Documentation
bool kge::gfx::DynamicHardwareBuffer::AppendData |
( |
void * |
data, |
|
|
u32 |
count |
|
) |
| |
bool kge::gfx::DynamicHardwareBuffer::Commit |
( |
| ) |
|
Commit changes to buffer.
bool kge::gfx::DynamicHardwareBuffer::SetData |
( |
void * |
Data, |
|
|
u32 |
Offset, |
|
|
u32 |
iSize, |
|
|
ul32 |
flags = 0 |
|
) |
| |
|
virtual |
sets the buffer data if buffer is dynamic.
- Parameters
-
Data | The data pointer |
Offset | The offset in data count for example if Offset is 2 and it is a vertex buffer the offset means two vertex size not two byte |
iSize | The size in data count not in bytes |
Implements kge::gfx::HardwareBuffer.
Member Data Documentation
u32 kge::gfx::DynamicHardwareBuffer::m_filledBytes |
|
protected |
u32 kge::gfx::DynamicHardwareBuffer::m_IncreaseRate |
|
protected |
u32 kge::gfx::DynamicHardwareBuffer::m_offsetToLock |
|
protected |
u8* kge::gfx::DynamicHardwareBuffer::m_pTempData |
|
protected |
u32 kge::gfx::DynamicHardwareBuffer::m_Stride |
|
protected |
u32 kge::gfx::DynamicHardwareBuffer::m_Vcount |
|
protected |
u32 kge::gfx::DynamicHardwareBuffer::m_verticesSize |
|
protected |
The documentation for this class was generated from the following file: