Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
foray_meshinstance.hpp
Go to the documentation of this file.
1#pragma once
2#include "../../foray_glm.hpp"
3#include "../foray_component.hpp"
4#include "../foray_scene_declares.hpp"
5
6namespace foray::scene::ncomp {
9 {
10 public:
11 inline virtual ~MeshInstance() {}
12
13 FORAY_PROPERTY_V(InstanceIndex)
15 protected:
16 int32_t mInstanceIndex = 0;
17 Mesh* mMesh = nullptr;
18 };
19} // namespace foray
Type describing a single mesh object, described by multiple Primitive objects.
Definition foray_mesh.hpp:49
Definition foray_component.hpp:82
Defines an instance of a mesh.
Definition foray_meshinstance.hpp:9
Mesh * mMesh
Definition foray_meshinstance.hpp:17
int32_t mInstanceIndex
Definition foray_meshinstance.hpp:16
virtual ~MeshInstance()
Definition foray_meshinstance.hpp:11
#define FORAY_PROPERTY_V(member)
Getter+Setter shorthand for value types.
Definition foray_basics.hpp:81
Definition foray_scene_declares.hpp:10