![]() |
LibCarna Version 3.4.0
|
Implements OpenGL buffer objects maintenance RAII base class. More...
#include <BaseBuffer.hpp>
Inheritance diagram for LibCarna::base::BaseBuffer:Public Member Functions | |
| virtual | ~BaseBuffer () |
| Deletes the maintained OpenGL buffer object. | |
| std::size_t | size () const |
| Tells the previously set size of the maintained buffer object. | |
| void | bind () const |
Invokes glBindBuffer to bind the maintained buffer object to target. | |
| bool | isValid () const |
| Tells whether the buffer object was marked as valid. | |
Public Attributes | |
| const unsigned int | target |
Holds where the maintained buffer object is to be bound to by glBindBuffer. | |
| const unsigned int | id |
| Holds the ID of the maintained OpenGL buffer object. | |
Protected Member Functions | |
| BaseBuffer (unsigned int target) | |
| Acquires new OpenGL buffer object. | |
| void | setSize (std::size_t size) |
| Sets the size of the maintained buffer object. | |
Protected Attributes | |
| bool | valid |
| Flag that indicates whether the maintained OpenGL buffer object is valid. | |
Implements OpenGL buffer objects maintenance RAII base class.
Definition at line 42 of file BaseBuffer.hpp.
Acquires new OpenGL buffer object.
| target | specifies where the buffer object is to be bound to by glBindBuffer. |
Holds the ID of the maintained OpenGL buffer object.
Definition at line 82 of file BaseBuffer.hpp.
Holds where the maintained buffer object is to be bound to by glBindBuffer.
Definition at line 77 of file BaseBuffer.hpp.
|
protected |
Flag that indicates whether the maintained OpenGL buffer object is valid.
Definition at line 52 of file BaseBuffer.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen