summaryrefslogtreecommitdiff
path: root/inc/model_instance.hpp
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-11-26 16:09:41 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-11-26 16:09:41 -0700
commitdbccd866229a4b06d10fbafc3eb3343015caedba (patch)
treebffb0d36f48d5c1defd877fdbebd58a1b7eb7fde /inc/model_instance.hpp
parentf4a7739a40c095e0c837d78d00f13a1ef47d3a11 (diff)
downloadgbarubik-dbccd866229a4b06d10fbafc3eb3343015caedba.tar.gz
gbarubik-dbccd866229a4b06d10fbafc3eb3343015caedba.zip
checkpoint
Diffstat (limited to 'inc/model_instance.hpp')
-rw-r--r--inc/model_instance.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/inc/model_instance.hpp b/inc/model_instance.hpp
index 059d3a5..997e9a6 100644
--- a/inc/model_instance.hpp
+++ b/inc/model_instance.hpp
@@ -5,17 +5,18 @@
#include "renderable.hpp"
#include <tonc.h>
-class ModelInstance : Renderable {
+class ModelInstance : public Renderable {
private:
+ std::shared_ptr<Mesh> m_mesh;
FIXED m_scale;
- VECTOR m_rotation; // though technically "FIXED"'s, these are simply s32's
- // where [0, 2pi] -> [0, 0xFFFF] in the x,y,z axes
+ VECTOR m_rot; // though technically "FIXED"'s, these are simply s32's
+ // where [0, 2pi] -> [0, 0xFFFF] in the x,y,z axes
VECTOR m_pos;
- std::shared_ptr<Mesh> m_mesh;
-
public:
- void render(std::shared_ptr<Scene> scene_context);
+ ModelInstance(std::shared_ptr<Mesh> mesh, FIXED scale, VECTOR m_rotation,
+ VECTOR m_pos);
+ virtual void render(std::shared_ptr<Scene> scene_context);
};
#endif // MODEL_INSTANCE_HPP