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:
erwincoumans
2014-10-16 13:35:43 -07:00
2 changed files with 3 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ struct sth_texture
struct RenderCallbacks
{
virtual ~RenderCallbacks() {}
virtual void updateTexture(sth_texture* texture, sth_glyph* glyph, int textureWidth, int textureHeight)=0;
virtual void render(sth_texture* texture)=0;
};

View File

@@ -171,6 +171,7 @@ public:
/* ImplicitFn */
struct ImplicitFn
{
virtual ~ImplicitFn() {}
virtual btScalar Eval(const btVector3& x)=0;
};
@@ -528,6 +529,7 @@ public:
{
struct IControl
{
virtual ~IControl() {}
virtual void Prepare(AJoint*) {}
virtual btScalar Speed(AJoint*,btScalar current) { return(current); }
static IControl* Default() { static IControl def;return(&def); }