Merge pull request #268 from kwatts/render_callback_virtual_dtor
Thanks for the help! Adding virtual destructor for RenderCallbacks struct
This commit is contained in:
@@ -101,6 +101,7 @@ struct sth_texture
|
|||||||
|
|
||||||
struct RenderCallbacks
|
struct RenderCallbacks
|
||||||
{
|
{
|
||||||
|
virtual ~RenderCallbacks() {}
|
||||||
virtual void updateTexture(sth_texture* texture, sth_glyph* glyph, int textureWidth, int textureHeight)=0;
|
virtual void updateTexture(sth_texture* texture, sth_glyph* glyph, int textureWidth, int textureHeight)=0;
|
||||||
virtual void render(sth_texture* texture)=0;
|
virtual void render(sth_texture* texture)=0;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ public:
|
|||||||
/* ImplicitFn */
|
/* ImplicitFn */
|
||||||
struct ImplicitFn
|
struct ImplicitFn
|
||||||
{
|
{
|
||||||
|
virtual ~ImplicitFn() {}
|
||||||
virtual btScalar Eval(const btVector3& x)=0;
|
virtual btScalar Eval(const btVector3& x)=0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -528,6 +529,7 @@ public:
|
|||||||
{
|
{
|
||||||
struct IControl
|
struct IControl
|
||||||
{
|
{
|
||||||
|
virtual ~IControl() {}
|
||||||
virtual void Prepare(AJoint*) {}
|
virtual void Prepare(AJoint*) {}
|
||||||
virtual btScalar Speed(AJoint*,btScalar current) { return(current); }
|
virtual btScalar Speed(AJoint*,btScalar current) { return(current); }
|
||||||
static IControl* Default() { static IControl def;return(&def); }
|
static IControl* Default() { static IControl def;return(&def); }
|
||||||
|
|||||||
Reference in New Issue
Block a user