24 lines
546 B
C++
24 lines
546 B
C++
#pragma once
|
|
|
|
#include "config/primitives.hpp"
|
|
#include "assets/components/mesh_vertex_components.hpp"
|
|
#include "assets/data_stores/material_store.hpp"
|
|
|
|
namespace assets::detail
|
|
{
|
|
|
|
template<typename T>
|
|
struct generic_mesh_view {};
|
|
|
|
template<typename... Ts>
|
|
struct generic_mesh_view<z3d::structure<Ts...>>
|
|
{
|
|
mesh_vertex_components::flags component_flags;
|
|
z3d::array_view<z3d::index_triangle> triangles;
|
|
z3d::structure<z3d::array_view<Ts>...> vertex_component_arrays;
|
|
z3d::vertex_index vertex_count;
|
|
material_store::id_type material_id;
|
|
};
|
|
|
|
}
|