rayzor
annotate src/object.h @ 11:fe94d9e986ae
optimized 16bpp swap_buffers
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 10 Apr 2014 08:42:33 +0300 |
parents | a826bf0fb169 |
children | d94a69933a71 |
rev | line source |
---|---|
nuclear@1 | 1 #ifndef OBJECT_H_ |
nuclear@1 | 2 #define OBJECT_H_ |
nuclear@1 | 3 |
nuclear@1 | 4 class Object { |
nuclear@1 | 5 public: |
nuclear@1 | 6 Object(); |
nuclear@1 | 7 virtual ~Object(); |
nuclear@1 | 8 |
nuclear@1 | 9 virtual void draw() const = 0; |
nuclear@1 | 10 }; |
nuclear@1 | 11 |
nuclear@6 | 12 class Sphere : public Object { |
nuclear@1 | 13 public: |
nuclear@1 | 14 Sphere(); |
nuclear@1 | 15 ~Sphere(); |
nuclear@1 | 16 |
nuclear@1 | 17 void draw() const; |
nuclear@1 | 18 }; |
nuclear@1 | 19 |
nuclear@1 | 20 #endif // OBJECT_H_ |