diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-12 20:22:20 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-12 20:22:20 +0000 |
commit | ea18c25aef4aa0104852f314dd76e4ce446673f3 (patch) | |
tree | 928d7ecef63acda7b32d5243ef5cf14760e555c9 /src/model/primitives.h | |
parent | 83b66522dfcad1b2428ce4fd81d83e39a051a4c5 (diff) |
triangle/quad code cleanup,corrects submodel origin, enable quad rendering again
Diffstat (limited to 'src/model/primitives.h')
-rw-r--r-- | src/model/primitives.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/model/primitives.h b/src/model/primitives.h index 116d01b..84c3f9b 100644 --- a/src/model/primitives.h +++ b/src/model/primitives.h @@ -49,12 +49,11 @@ public: } /// add a Triangle primitive - Triangle *add_triangle(math::Vector3f const &v0, math::Vector3f const &v1, math::Vector3f const &v2, - math::Vector3f const &normal, bool detail); + void add_triangle(Triangle *triangle); /// add a Quad primitive - Quad *add_quad(math::Vector3f const &v0, math::Vector3f const &v1, math::Vector3f const &v2, math::Vector3f const &v3, - math::Vector3f const &normal, bool detail); + void add_quad(Quad *quad); + private: Triangles primitives_triangles; Quads primitives_quads; |