Struct mallumo_gls::buffer::MutableBuffer [] [src]

pub struct MutableBuffer { /* fields omitted */ }

Methods

impl MutableBuffer
[src]

Creates new buffer and copies data to its memory on GPU

Errors

  • GL_OUT_OF_MEMORY - if the buffer cannot be created

Creates new empty buffer

Errors

  • BufferCreationError(GL_OUT_OF_MEMORY) - if the buffer cannot be created

Replaces part of memory with data

Errors

  • BufferSetSubDataError(GL_INVALID_VALUE) - if size of data + offset > buffer size

Trait Implementations

impl Buffer for MutableBuffer
[src]

impl Drop for MutableBuffer
[src]

A method called when the value goes out of scope. Read more