goat3d

view src/aabox.h @ 103:45a9d493e98c

fixed the input latency issue by calling QWidget::update() instead of QGLWidget::updateGL() update schedules an update instead of redrawing immediately.
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 12 Sep 2015 17:40:02 +0300
parents 76dea247f75c
children
line source
1 #ifndef AABOX_H_
2 #define AABOX_H_
4 #include <vmath/vmath.h>
6 namespace g3dimpl {
8 class AABox {
9 public:
10 Vector3 bmin, bmax;
12 AABox();
13 AABox(const Vector3 &b0, const Vector3 &b1);
15 bool operator ==(const AABox &rhs) const;
16 bool operator !=(const AABox &rhs) const;
17 };
19 AABox aabox_union(const AABox &a, const AABox &b);
21 }
23 #endif // AABOX_H_