worked on obj and mtl prefetching nad parsing
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "util/uix.hpp"
|
||||
#include <array>
|
||||
#include <vector>
|
||||
#include "GL/glew.h"
|
||||
|
||||
template<typename C, typename... Ts>
|
||||
struct dynamic_vertex_buffer {
|
||||
std::tuple<std::vector<Ts>...> vertices{};
|
||||
|
||||
protected:
|
||||
inline void clear_vertices()
|
||||
{
|
||||
std::apply(
|
||||
[](auto&... vertex_opt) {
|
||||
(vertex_opt.clear(), ...);
|
||||
},
|
||||
vertices
|
||||
);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user