iRenderBuffer Struct Reference
[3D]
This is a general buffer.
More...
#include <ivideo/rndbuf.h>
Inheritance diagram for iRenderBuffer:

Public Member Functions | |
virtual void | CopyInto (const void *data, size_t elementCount, size_t elemOffset=0)=0 |
Copy data to the render buffer. | |
virtual csRenderBufferType | GetBufferType () const =0 |
Get type of buffer (static/dynamic). | |
virtual int | GetComponentCount () const =0 |
Gets the number of components per element. | |
virtual csRenderBufferComponentType | GetComponentType () const =0 |
Gets the component type (float, int, etc). | |
virtual size_t | GetElementCount () const =0 |
Number of elements in a buffer. | |
virtual size_t | GetElementDistance () const =0 |
Get the distance between two elements (in bytes, includes stride). | |
virtual iRenderBuffer * | GetMasterBuffer () const =0 |
Get the master buffer in case this is an interleaved buffer. | |
virtual size_t | GetOffset () const =0 |
Get the offset of the buffer (in bytes). | |
virtual size_t | GetRangeEnd () const =0 |
The highest index contained in this buffer, only valid for index buffers. | |
virtual size_t | GetRangeStart () const =0 |
The lowest index contained in this buffer, only valid for index buffers. | |
virtual size_t | GetSize () const =0 |
Get the size of the buffer (in bytes). | |
virtual size_t | GetStride () const =0 |
Get the stride of the buffer (in bytes). | |
virtual uint | GetVersion ()=0 |
Get version. | |
virtual bool | IsIndexBuffer () const =0 |
Whether the buffer is an index buffer. | |
virtual void * | Lock (csRenderBufferLockType lockType)=0 |
Lock the buffer to allow writing and return a pointer to the first element. | |
virtual void | Release ()=0 |
Releases the buffer. |
Detailed Description
This is a general buffer.Main creators of instances implementing this interface:
- csRenderBuffer::CreateRenderBuffer()
- csRenderBuffer::CreateIndexRenderBuffer()
- csRenderBuffer::CreateInterleavedRenderBuffers()
- See also:
- csRenderBuffer
Definition at line 107 of file rndbuf.h.
Member Function Documentation
|
Copy data to the render buffer.
Implemented in csRenderBuffer. |
|
Get type of buffer (static/dynamic).
Implemented in csRenderBuffer. |
|
Gets the number of components per element.
Implemented in csRenderBuffer. |
|
Gets the component type (float, int, etc).
Implemented in csRenderBuffer. |
|
Number of elements in a buffer.
Implemented in csRenderBuffer. Referenced by csRenderBufferLock< T, TbufferKeeper >::csRenderBufferLock(). |
|
Get the distance between two elements (in bytes, includes stride).
Implemented in csRenderBuffer. |
|
Get the master buffer in case this is an interleaved buffer. The master buffer is the buffer that actually holds the data; while it can be used to retrieve or set data, it must not be used for actual rendering. Use the interleaved buffers instead. Implemented in csRenderBuffer. |
|
Get the offset of the buffer (in bytes).
Implemented in csRenderBuffer. |
|
The highest index contained in this buffer, only valid for index buffers.
Implemented in csRenderBuffer. |
|
The lowest index contained in this buffer, only valid for index buffers.
Implemented in csRenderBuffer. |
|
Get the size of the buffer (in bytes).
Implemented in csRenderBuffer. |
|
Get the stride of the buffer (in bytes).
Implemented in csRenderBuffer. |
|
Get version.
Implemented in csRenderBuffer. |
|
Whether the buffer is an index buffer.
Implemented in csRenderBuffer. |
|
Lock the buffer to allow writing and return a pointer to the first element. The pointer will be (void*)-1 if there was some error.
Implemented in csRenderBuffer. |
|
Releases the buffer. After this all access to the buffer pointer is illegal. Implemented in csRenderBuffer. |
The documentation for this struct was generated from the following file:
- ivideo/rndbuf.h
Generated for Crystal Space by doxygen 1.4.6