Sparkle 0.0.1
Loading...
Searching...
No Matches
spk_vertex_array_object.hpp
1#pragma once
2
3#include "structure/design_pattern/spk_activable_object.hpp"
4#include "structure/design_pattern/spk_cached_data.hpp"
5#include "structure/opengl/spk_opengl_includes.hpp"
6#include "utils/spk_opengl_utils.hpp"
7
8namespace spk
9{
10 namespace OpenGL
11 {
18 {
19 private:
21 void _registerCallbacks();
22
23 public:
39
44 GLuint id() const
45 {
46 return _id.get();
47 }
48 };
49
50 using VAO = VertexArrayObject;
51 }
52}
Stateful helper toggling between activated/deactivated states.
Definition spk_activable_object.hpp:20
Lazily generates and caches a value with optional custom destructor.
Definition spk_cached_data.hpp:26
VertexArrayObject()
Builds an empty VAO wrapper.
Definition spk_vertex_array_object.cpp:9
VertexArrayObject & operator=(const VertexArrayObject &p_other)
Copies VAO handle state from another wrapper.
Definition spk_vertex_array_object.cpp:36
GLuint id() const
Retrieves the VAO id, creating it on-demand.
Definition spk_vertex_array_object.hpp:44