goat3d
diff src/object.h @ 75:76dea247f75c
in progress
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 08 May 2014 00:50:16 +0300 |
parents | dad392c710df |
children |
line diff
1.1 --- a/src/object.h Tue May 06 13:26:52 2014 +0300 1.2 +++ b/src/object.h Thu May 08 00:50:16 2014 +0300 1.3 @@ -20,6 +20,9 @@ 1.4 1.5 #include <string> 1.6 #include <vmath/vmath.h> 1.7 +#include "aabox.h" 1.8 + 1.9 +namespace g3dimpl { 1.10 1.11 class Object { 1.12 public: 1.13 @@ -27,8 +30,14 @@ 1.14 1.15 Vector3 pos; 1.16 Quaternion rot; 1.17 + Vector3 scale; 1.18 1.19 - virtual ~Object() {}; 1.20 + Object() : scale(1, 1, 1) {} 1.21 + virtual ~Object() {} 1.22 + 1.23 + virtual AABox get_bounds(const Matrix4x4 &xform) const { return AABox(); } 1.24 }; 1.25 1.26 +} 1.27 + 1.28 #endif // OBJECT_H_