|
Sparkle 0.0.1
|
Bundles VAO, VBO, and IBO with synchronized activation. More...
#include <spk_buffer_set_object.hpp>


Public Member Functions | |
| BufferSetObject (BufferObject::Usage p_usage) | |
| Builds a buffer set with a shared usage hint. | |
| BufferSetObject (const BufferSetObject &p_other) | |
| Copies buffer set resources, keeping usage flags consistent. | |
| BufferSetObject & | operator= (const BufferSetObject &p_other) |
| Assigns buffer set contents from another instance. | |
| VertexBufferObject & | vbo () |
| Access mutable VBO. | |
| IndexBufferObject & | ibo () |
| Access mutable IBO. | |
| const VertexBufferObject & | vbo () const |
| Access const VBO. | |
| const IndexBufferObject & | ibo () const |
| Access const IBO. | |
| VertexBufferObject & | vertexBufferObject () |
| Alias for vbo. | |
| IndexBufferObject & | indexBufferObject () |
| Alias for ibo. | |
| const VertexBufferObject & | vertexBufferObject () const |
| Const alias for vbo. | |
| const IndexBufferObject & | indexBufferObject () const |
| Const alias for ibo. | |
| Public Member Functions inherited from spk::ActivableObject | |
| ActivableObject () | |
| Builds a deactivated object. | |
| ActivableObject (ActivationStatus p_initial) | |
| Builds with a custom initial activation state. | |
| void | activate () |
| Sets the state to Activated. | |
| void | deactivate () |
| Sets the state to Deactivated. | |
| void | toggle () |
| Toggles between activated and deactivated states. | |
| bool | isActive () const |
| Checks whether the object is currently activated. | |
| Contract | addActivationCallback (const Job &p_callback) |
| Registers a callback executed when the object activates. | |
| Contract | addDeactivationCallback (const Job &p_callback) |
| Registers a callback executed when the object deactivates. | |
| Public Member Functions inherited from spk::StatefulObject< ActivationStatus > | |
| StatefulObject (const ActivationStatus &p_initialState) | |
| Builds with an initial state. | |
| StatefulObject & | operator= (const StatefulObject &p_other)=delete |
| void | setState (const ActivationStatus &p_newState) |
| Sets a new state and triggers callbacks registered for it. | |
| ActivationStatus | state () const |
| Returns the current state. | |
| Contract | addCallback (const ActivationStatus &p_state, const Job &p_callback) |
| Subscribes a callback for a specific state. | |
| Public Member Functions inherited from spk::SynchronizableObject | |
| void | requestSynchronization () noexcept |
| Marks the object as needing synchronization. | |
| bool | needsSynchronization () const noexcept |
| Checks if synchronization is pending. | |
| void | synchronize () |
| Performs synchronization if requested. | |
| void | forceSynchronization () |
| Forces synchronization regardless of current flag. | |
Additional Inherited Members | |
| Public Types inherited from spk::ActivableObject | |
| using | Contract = StatefulObject<ActivationStatus>::Contract |
| Subscription handle controlling callback lifetime. | |
| using | Job = StatefulObject<ActivationStatus>::Job |
| Callback signature executed on activation state changes. | |
| Public Types inherited from spk::StatefulObject< ActivationStatus > | |
| using | Contract |
| Handle allowing subscribers to manage callback lifetimes. | |
| using | Job |
| Callable invoked when the object transitions to a state. | |
Bundles VAO, VBO, and IBO with synchronized activation.
|
explicit |
Builds a buffer set with a shared usage hint.
| p_usage | Usage applied to VBO/IBO. |

| spk::OpenGL::BufferSetObject::BufferSetObject | ( | const BufferSetObject & | p_other | ) |
Copies buffer set resources, keeping usage flags consistent.
| p_other | Buffer set to duplicate. |

| IndexBufferObject & spk::OpenGL::BufferSetObject::ibo | ( | ) |
Access mutable IBO.
| const IndexBufferObject & spk::OpenGL::BufferSetObject::ibo | ( | ) | const |
Access const IBO.
| IndexBufferObject & spk::OpenGL::BufferSetObject::indexBufferObject | ( | ) |
Alias for ibo.
| const IndexBufferObject & spk::OpenGL::BufferSetObject::indexBufferObject | ( | ) | const |
Const alias for ibo.
| BufferSetObject & spk::OpenGL::BufferSetObject::operator= | ( | const BufferSetObject & | p_other | ) |
Assigns buffer set contents from another instance.
| p_other | Buffer set to copy from. |

| VertexBufferObject & spk::OpenGL::BufferSetObject::vbo | ( | ) |
Access mutable VBO.

| const VertexBufferObject & spk::OpenGL::BufferSetObject::vbo | ( | ) | const |
Access const VBO.
| VertexBufferObject & spk::OpenGL::BufferSetObject::vertexBufferObject | ( | ) |
Alias for vbo.
| const VertexBufferObject & spk::OpenGL::BufferSetObject::vertexBufferObject | ( | ) | const |
Const alias for vbo.