delete shdata;
}
-void AnimatedObject::set_matrix(const Matrix &m)
-{
- matrix = m;
-}
-
void AnimatedObject::set_pose_matrix(unsigned link, const Matrix &m)
{
if(shdata)
}
}
+ProgramData &AnimatedObject::get_shader_data()
+{
+ if(!shdata)
+ throw invalid_operation("AnimatedObject::get_shader_data");
+ return *shdata;
+}
+
+const ProgramData &AnimatedObject::get_shader_data() const
+{
+ if(!shdata)
+ throw invalid_operation("AnimatedObject::get_shader_data");
+ return *shdata;
+}
+
void AnimatedObject::set_uniform(const string &name, const KeyFrame::AnimatedUniform &uni)
{
if(!shdata)
AnimatedObject::Loader::Loader(AnimatedObject &o):
- DataFile::ObjectLoader<AnimatedObject>(o)
+ DataFile::DerivedObjectLoader<AnimatedObject, ObjectInstance::Loader>(o)
{
+ // Deprecated; Use the transform statement defined in ObjectInstance instead
add("position", &Loader::position);
add("rotation", &Loader::rotation);
add("scale", &Loader::scale);