}
}
+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);