Forward declaring class A and having a RefPtr to it in class B causes
trouble if B's constructor or destructor is synthesized at a location
where A's definition is not visible.
+// Avoid synthesizing ~RefPtr in files including animation.h
+Animation::~Animation()
+{ }
+
void Animation::set_armature(const Armature &a)
{
armature = &a;
void Animation::set_armature(const Armature &a)
{
armature = &a;
void set_armature(const Armature &);
const Armature *get_armature() const { return armature; }
void set_armature(const Armature &);
const Armature *get_armature() const { return armature; }
+// Avoid synthesizing ~RefPtr in files including font.h
+Font::~Font()
+{ }
+
void Font::set_texture(const Texture2D &t)
{
texture = &t;
void Font::set_texture(const Texture2D &t)
{
texture = &t;
void set_texture(const Texture2D &);
const Texture2D &get_texture() const;
void set_texture(const Texture2D &);
const Texture2D &get_texture() const;
namespace Msp {
namespace GL {
namespace Msp {
namespace GL {
+// Avoid synthesizing RefPtr c'tor and d'tor in files including keyframe.h
+KeyFrame::KeyFrame()
+{ }
+
+KeyFrame::~KeyFrame()
+{ }
+
void KeyFrame::set_matrix(const Matrix &m)
{
matrix = m;
void KeyFrame::set_matrix(const Matrix &m)
{
matrix = m;
RefPtr<const Pose> pose;
public:
RefPtr<const Pose> pose;
public:
+ KeyFrame();
+ ~KeyFrame();
+
void set_matrix(const Matrix &);
void set_pose(const Pose &);
const Matrix &get_matrix() const { return matrix; }
void set_matrix(const Matrix &);
void set_pose(const Pose &);
const Matrix &get_matrix() const { return matrix; }
+// Avoid synthesizing ~RefPtr in files including object.h
void Object::set_mesh(unsigned i, const Mesh *m)
{
void Object::set_mesh(unsigned i, const Mesh *m)
{