cloth

view src/object.h @ 3:28a31079dcdf

disc
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 04 Jan 2016 10:52:15 +0200
parents 2eac424f58b2
children
line source
1 #ifndef OBJECT_H_
2 #define OBJECT_H_
4 struct Collision;
6 class Object {
7 public:
8 virtual ~Object() = default;
10 virtual bool collision(const Ray &ray, float rad, Collision *col) const = 0;
11 virtual void draw() const = 0;
12 };
14 #endif // OBJECT_H_