|
| BufferGL (size_t size, const DataFormatBase *format, BufferUsage usage, BufferTarget target, std::shared_ptr< BufferObject > data=std::shared_ptr< BufferObject >(nullptr)) |
| Create a buffer stored on the GPU. More...
|
|
| BufferGL (const BufferGL &rhs) |
|
virtual BufferGL * | clone () const override |
|
virtual void | setSize (size_t size) override |
|
virtual size_t | getSize () const override |
|
GLenum | getFormatType () const |
|
GLuint | getId () const |
|
virtual std::shared_ptr< BufferObject > | getBufferObject () const |
|
void | bind () const |
|
void | upload (const void *data, GLsizeiptr sizeInBytes) |
|
void | download (void *data) const |
|
void | enable () const |
|
void | disable () const |
|
virtual std::type_index | getTypeIndex () const override final |
|
virtual size_t | getSizeOfElement () const |
|
BufferUsage | getBufferUsage () const |
|
BufferTarget | getBufferTarget () const |
|
const DataFormatBase * | getDataFormat () const |
|
std::string | getDataFormatString () const |
|
DataFormatId | getDataFormatId () const |
|
void | setOwner (BufferBase *owner) |
|
BufferBase * | getOwner () |
|
const BufferBase * | getOwner () const |
|
bool | isValid () const |
|
void | setValid (bool valid) |
|
◆ BufferGL()
inviwo::BufferGL::BufferGL |
( |
size_t |
size, |
|
|
const DataFormatBase * |
format, |
|
|
BufferUsage |
usage, |
|
|
BufferTarget |
target, |
|
|
std::shared_ptr< BufferObject > |
data = std::shared_ptr<BufferObject>(nullptr) |
|
) |
| |
Create a buffer stored on the GPU.
- Parameters
-
size | Size in bytes. |
format | Data format |
usage | BufferUsage::Static if not changing all the time, else BufferUsage::Dynamic. |
target | BufferTarget::Data for vertex buffers and BufferTarget::Index for index buffers |
data | Will be created if nullptr. |
- Returns
◆ getSize()
size_t inviwo::BufferGL::getSize |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: