tried making naming more uniform and implemented most of the opengl managers
This commit is contained in:
21
include/assets/data/generic/vertex_array_data.hpp
Normal file
21
include/assets/data/generic/vertex_array_data.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
template<typename C, typename... Ts>
|
||||
struct vertex_array_data
|
||||
{
|
||||
C component_flags;
|
||||
std::tuple<std::vector<Ts>...> vertices{};
|
||||
|
||||
protected:
|
||||
void clear_vertices()
|
||||
{
|
||||
std::apply(
|
||||
[](auto&... vertex_opt) {
|
||||
(vertex_opt.clear(), ...);
|
||||
},
|
||||
vertices
|
||||
);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user