#include <KeosBuffer.h>
Inheritance diagram for Keos::CBuffer< T >:

Public Member Functions | |
| CBuffer (IBufferBase *pBuffer=NULL) | |
| Default constructor. | |
| T * | Lock (ulong nOffset=0, ulong nSize=0, ulong nFlags=0) |
| Lock the buffer. | |
| void | Unlock () |
| Unlock the buffer. | |
| void | Fill (const T *pData, size_t nCount) |
| Fill the buffer. | |
| void | Release () |
| Destroy the buffer. | |
| const IBufferBase * | GetBuffer () const |
| Return pointer on the buffer. | |
| ulong | GetCount () const |
| Return the number of elements in the buffer. | |
..).
Definition at line 34 of file KeosBuffer.h.
| Keos::CBuffer< T >::CBuffer | ( | IBufferBase * | pBuffer = NULL |
) | [inline] |
Default constructor.
| pBuffer | Pointer on the intern buffer. |
Definition at line 87 of file KeosBuffer.h.
| T * Keos::CBuffer< T >::Lock | ( | ulong | nOffset = 0, |
|
| ulong | nSize = 0, |
|||
| ulong | nFlags = 0 | |||
| ) | [inline] |
Lock the buffer.
| nOffset | Lock position. | |
| nSize | Number of elements to be locked. | |
| nFlags | Lock options. |
Definition at line 93 of file KeosBuffer.h.
Referenced by Keos::CBuffer< T >::Fill().
| void Keos::CBuffer< T >::Unlock | ( | ) | [inline] |
Unlock the buffer.
Definition at line 100 of file KeosBuffer.h.
Referenced by Keos::CBuffer< T >::Fill().
| void Keos::CBuffer< T >::Fill | ( | const T * | pData, | |
| size_t | nCount | |||
| ) | [inline] |
Fill the buffer.
| pData | Pointer on the data. | |
| nCount | Number of elements to be copied. |
Definition at line 107 of file KeosBuffer.h.
References Assert, Keos::CBuffer< T >::Lock(), and Keos::CBuffer< T >::Unlock().
Referenced by Keos::IRenderSystem::CreateIndexBuffer(), and Keos::IRenderSystem::CreateVertexBuffer().
| void Keos::CBuffer< T >::Release | ( | ) | [inline] |
| const IBufferBase * Keos::CBuffer< T >::GetBuffer | ( | ) | const [inline] |
Return pointer on the buffer.
Definition at line 125 of file KeosBuffer.h.
Referenced by Keos::IRenderSystem::SetIndexBuffer(), and Keos::IRenderSystem::SetVertexBuffer().
| ulong Keos::CBuffer< T >::GetCount | ( | ) | const [inline] |
Return the number of elements in the buffer.
Definition at line 132 of file KeosBuffer.h.
Referenced by Keos::IRenderSystem::SetVertexBuffer().
1.5.1-p1