]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animatedobject.h
Add a method of getting the model matrix of a Renderable
[libs/gl.git] / source / animatedobject.h
index df0b15ebe04e2f6cc6d91090ba60292c14a66adb..6bcd37ce4b609dbecadece72bfc336bc75317827 100644 (file)
@@ -26,6 +26,8 @@ public:
        void set_matrix(const Matrix &);
        void set_pose_matrix(unsigned, const Matrix &);
 
+       virtual const Matrix *get_matrix() const { return &matrix; }
+
        virtual void setup_render(Renderer &, const Tag &) const;
 };