|
| enum | Target {
Array = GL_ARRAY_BUFFER
, ElementArray = GL_ELEMENT_ARRAY_BUFFER
, Uniform = GL_UNIFORM_BUFFER
, Texture = GL_TEXTURE_BUFFER
,
TransformFeedback = GL_TRANSFORM_FEEDBACK_BUFFER
, CopyRead = GL_COPY_READ_BUFFER
, PixelUnpack = GL_PIXEL_UNPACK_BUFFER
, ShaderStorage = GL_SHADER_STORAGE_BUFFER
} |
| |
| enum | DataUsage {
StreamDraw = GL_STREAM_DRAW
, StreamRead = GL_STREAM_READ
, StreamCopy = GL_STREAM_COPY
, StaticDraw = GL_STATIC_DRAW
,
StaticRead = GL_STATIC_READ
, StaticCopy = GL_STATIC_COPY
, DynamicDraw = GL_DYNAMIC_DRAW
, DynamicRead = GL_DYNAMIC_READ
,
DynamicCopy = GL_DYNAMIC_COPY
} |
| |
| using | Id = unsigned int |
| |
Definition at line 13 of file buffer.hpp.
◆ Id
| using brenta::Buffer::Id = unsigned int |
◆ DataUsage
| enum brenta::Buffer::DataUsage |
◆ Target
| enum brenta::Buffer::Target |
◆ Buffer() [1/2]
| Buffer::Buffer |
( |
Buffer::Target |
target | ) |
|
◆ Buffer() [2/2]
| constexpr brenta::Buffer::Buffer |
( |
Buffer && |
other | ) |
|
|
inlineconstexprnoexcept |
◆ ~Buffer()
◆ bind()
| void Buffer::bind |
( |
| ) |
const |
|
virtual |
◆ copy_data()
| void Buffer::copy_data |
( |
const void * |
data, |
|
|
GLsizeiptr |
size, |
|
|
Buffer::DataUsage |
usage |
|
) |
| |
◆ destroy()
◆ get_id()
| Buffer::Id Buffer::get_id |
( |
| ) |
const |
◆ get_target()
| Buffer::Target & Buffer::get_target |
( |
| ) |
|
◆ init()
| void Buffer::init |
( |
Buffer::Target |
target | ) |
|
◆ operator=()
| constexpr Buffer & brenta::Buffer::operator= |
( |
Buffer && |
other | ) |
|
|
inlineconstexprnoexcept |
◆ set_id()
| void Buffer::set_id |
( |
Buffer::Id |
id | ) |
|
◆ set_target()
| void Buffer::set_target |
( |
Buffer::Target |
target | ) |
|
◆ unbind()
| void Buffer::unbind |
( |
| ) |
const |
|
virtual |
◆ id
| Buffer::Id brenta::Buffer::id = 0 |
|
protected |
◆ memory
| int brenta::Buffer::memory = 0 |
◆ target
| Target brenta::Buffer::target |
|
protected |
◆ tot_memory
| int Buffer::tot_memory = 0 |
|
static |
The documentation for this class was generated from the following files: