Transfer Buffer provider. More...
#include <transfer_buffer_provider.h>
Public Member Functions | |
virtual | ~TransferBufferProvider () |
virtual void | create (int size, BufferUsage usage)=0 |
Constructs a array buffer. More... | |
virtual void | create (void *data, int size, BufferUsage usage)=0 |
Create. More... | |
virtual void * | get_data ()=0 |
Retrieves a pointer to the mapped buffer. More... | |
virtual void | lock (GraphicContext &gc, BufferAccess access)=0 |
Maps buffer into system memory. More... | |
virtual void | unlock ()=0 |
Unmaps buffer. More... | |
virtual void | upload_data (GraphicContext &gc, int offset, const void *data, int size)=0 |
Uploads data to buffer. More... | |
Transfer Buffer provider.
|
inlinevirtual |
|
pure virtual |
Constructs a array buffer.
|
pure virtual |
Create.
data | = void |
size | = value |
usage | = Buffer Usage |
|
pure virtual |
Retrieves a pointer to the mapped buffer.
|
pure virtual |
Maps buffer into system memory.
|
pure virtual |
Unmaps buffer.
|
pure virtual |
Uploads data to buffer.