void Object::Loader::init()
{
- allow_pointer_reload = false;
-
add("mesh", &Loader::mesh_inline);
add("mesh", &Loader::mesh_inline_lod);
add("mesh", &Loader::mesh);
void Object::Loader::mesh(const std::string &n)
{
- obj.set_mesh(get_collection().get<Mesh>(n));
+ obj.set_mesh(&get_collection().get<Mesh>(n));
}
void Object::Loader::mesh_lod(unsigned l, const string &n)
{
- obj.set_mesh(l, get_collection().get<Mesh>(n));
+ obj.set_mesh(l, &get_collection().get<Mesh>(n));
}
void Object::Loader::technique_inline()
void Object::Loader::technique(const std::string &n)
{
- obj.set_technique(get_collection().get<Technique>(n));
+ obj.set_technique(&get_collection().get<Technique>(n));
}
} // namespace GL