stuff...
This commit is contained in:
23
include/assets/data_views/generic/generic_mesh_view.hpp
Normal file
23
include/assets/data_views/generic/generic_mesh_view.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "config/primitives.hpp"
|
||||
#include "assets/components/point_cloud_vertex_components.hpp"
|
||||
|
||||
namespace assets::detail
|
||||
{
|
||||
|
||||
template<typename... Ts>
|
||||
struct generic_point_cloud_view
|
||||
{
|
||||
point_cloud_vertex_components::flags vertex_component_flags;
|
||||
z3d::structure<z3d::array_view<Ts>...> vertex_component_arrays;
|
||||
z3d::vertex_index point_count;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user