28 lines
557 B
C++
28 lines
557 B
C++
#pragma once
|
|
|
|
#include <span>
|
|
#include <tuple>
|
|
|
|
#include "assets/components/point_cloud_vertex_components.hpp"
|
|
|
|
namespace assets
|
|
{
|
|
|
|
namespace detail
|
|
{
|
|
template<typename... Ts>
|
|
struct generic_point_cloud_view
|
|
{
|
|
point_cloud_vertex_components::flags vertex_components;
|
|
std::tuple<std::span<Ts>...> vertex_component_arrays;
|
|
};
|
|
}
|
|
|
|
using point_cloud_view = detail::generic_point_cloud_view<
|
|
point_cloud_vertex_components::position,
|
|
point_cloud_vertex_components::normal,
|
|
point_cloud_vertex_components::color,
|
|
point_cloud_vertex_components::reflectance
|
|
>;
|
|
|
|
} |