summaryrefslogtreecommitdiff
path: root/inc/model_instance.hpp
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-11-25 17:05:01 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-11-25 17:05:01 -0700
commitf4a7739a40c095e0c837d78d00f13a1ef47d3a11 (patch)
tree901a02ea8cf1cab8344bf3d6310ae4812f7062f4 /inc/model_instance.hpp
parentebc517c800a90f6f0ed157e5c3bd7c3bd18165b5 (diff)
downloadgbarubik-f4a7739a40c095e0c837d78d00f13a1ef47d3a11.tar.gz
gbarubik-f4a7739a40c095e0c837d78d00f13a1ef47d3a11.zip
cube foo init
Diffstat (limited to 'inc/model_instance.hpp')
-rw-r--r--inc/model_instance.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/model_instance.hpp b/inc/model_instance.hpp
index a8bbee0..059d3a5 100644
--- a/inc/model_instance.hpp
+++ b/inc/model_instance.hpp
@@ -8,10 +8,14 @@
class ModelInstance : Renderable {
private:
FIXED m_scale;
- VECTOR m_rotation;
+ 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_pos;
std::shared_ptr<Mesh> m_mesh;
+
+public:
+ void render(std::shared_ptr<Scene> scene_context);
};
#endif // MODEL_INSTANCE_HPP