explicitly flag virtual functions as such

This commit is contained in:
Andrew Meadows 2015-02-11 13:03:22 -08:00
parent bd1817817b
commit 4581802532
3 changed files with 3 additions and 4 deletions

View file

@ -51,7 +51,7 @@ public:
_color[BLUE_INDEX] = value.blue;
}
ShapeType getShapeType() const { return SHAPE_TYPE_BOX; }
virtual ShapeType getShapeType() const { return SHAPE_TYPE_BOX; }
virtual void debugDump() const;

View file

@ -49,8 +49,7 @@ public:
virtual void debugDump() const;
void updateShapeType(ShapeType type);
ShapeType getShapeType() const { return _shapeType; }
virtual ShapeType getShapeType() const { return _shapeType; }
// TODO: Move these to subclasses, or other appropriate abstraction
// getters/setters applicable to models and particles

View file

@ -53,7 +53,7 @@ public:
// TODO: implement proper contains for 3D ellipsoid
//virtual bool contains(const glm::vec3& point) const;
ShapeType getShapeType() const { return SHAPE_TYPE_SPHERE; }
virtual ShapeType getShapeType() const { return SHAPE_TYPE_SPHERE; }
virtual bool supportsDetailedRayIntersection() const { return true; }
virtual bool findDetailedRayIntersection(const glm::vec3& origin, const glm::vec3& direction,