mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +02:00
explicitly flag virtual functions as such
This commit is contained in:
parent
bd1817817b
commit
4581802532
3 changed files with 3 additions and 4 deletions
|
@ -51,7 +51,7 @@ public:
|
||||||
_color[BLUE_INDEX] = value.blue;
|
_color[BLUE_INDEX] = value.blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
ShapeType getShapeType() const { return SHAPE_TYPE_BOX; }
|
virtual ShapeType getShapeType() const { return SHAPE_TYPE_BOX; }
|
||||||
|
|
||||||
virtual void debugDump() const;
|
virtual void debugDump() const;
|
||||||
|
|
||||||
|
|
|
@ -49,8 +49,7 @@ public:
|
||||||
virtual void debugDump() const;
|
virtual void debugDump() const;
|
||||||
|
|
||||||
void updateShapeType(ShapeType type);
|
void updateShapeType(ShapeType type);
|
||||||
ShapeType getShapeType() const { return _shapeType; }
|
virtual ShapeType getShapeType() const { return _shapeType; }
|
||||||
|
|
||||||
|
|
||||||
// TODO: Move these to subclasses, or other appropriate abstraction
|
// TODO: Move these to subclasses, or other appropriate abstraction
|
||||||
// getters/setters applicable to models and particles
|
// getters/setters applicable to models and particles
|
||||||
|
|
|
@ -53,7 +53,7 @@ public:
|
||||||
// TODO: implement proper contains for 3D ellipsoid
|
// TODO: implement proper contains for 3D ellipsoid
|
||||||
//virtual bool contains(const glm::vec3& point) const;
|
//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 supportsDetailedRayIntersection() const { return true; }
|
||||||
virtual bool findDetailedRayIntersection(const glm::vec3& origin, const glm::vec3& direction,
|
virtual bool findDetailedRayIntersection(const glm::vec3& origin, const glm::vec3& direction,
|
||||||
|
|
Loading…
Reference in a new issue