13#include <lagrange/ui/Entity.h>
14#include <lagrange/ui/types/VertexBuffer.h>
22 constexpr static const entt::id_type Position = entt::hashed_string{
"in_pos"};
23 constexpr static const entt::id_type Normal = entt::hashed_string{
"in_normal"};
24 constexpr static const entt::id_type UV = entt::hashed_string{
"in_uv"};
25 constexpr static const entt::id_type
Color = entt::hashed_string{
"in_color"};
26 constexpr static const entt::id_type Tangent = entt::hashed_string{
"in_tangent"};
27 constexpr static const entt::id_type Bitangent = entt::hashed_string{
"in_bitangent"};
28 constexpr static const entt::id_type Value =
29 entt::hashed_string{
"in_value"};
30 constexpr static const entt::id_type BoneIDs = entt::hashed_string{
"in_bone_ids"};
31 constexpr static const entt::id_type BoneWeights = entt::hashed_string{
"in_bone_weights"};
36 constexpr static const entt::id_type VertexIndices = entt::hashed_string{
"_vertex_indices"};
37 constexpr static const entt::id_type EdgeIndices = entt::hashed_string{
"_edge_indices"};
38 constexpr static const entt::id_type TriangleIndices = entt::hashed_string{
"_triangle_indices"};
43 std::shared_ptr<GPUBuffer> get_attribute_buffer(entt::id_type
id)
const
45 auto it = attribute_buffers.find(
id);
46 if (it == attribute_buffers.end())
return nullptr;
50 std::shared_ptr<GPUBuffer> get_index_buffer(entt::id_type
id)
const
52 auto it = index_buffers.find(
id);
53 if (it == index_buffers.end())
return nullptr;
57 std::shared_ptr<GPUBuffer> get_submesh_buffer(entt::id_type
id)
const
59 auto it = submesh_indices.find(
id);
60 if (it == submesh_indices.end())
return nullptr;
65 std::unordered_map<entt::id_type, std::shared_ptr<GPUBuffer>> attribute_buffers;
68 std::unordered_map<entt::id_type, std::shared_ptr<GPUBuffer>> index_buffers;
70 std::unordered_map<entt::id_type, std::shared_ptr<GPUBuffer>> submesh_indices;
Lagrange UI Viewer and mini 3D engine.
Definition: AcceleratedPicking.h:22
Main namespace for Lagrange.
Definition: AABBIGL.h:30