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/quad.cc | |
parent | 83b66522dfcad1b2428ce4fd81d83e39a051a4c5 (diff) |
triangle/quad code cleanup,corrects submodel origin, enable quad rendering again
Diffstat (limited to 'src/model/quad.cc')
-rw-r--r-- | src/model/quad.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/model/quad.cc b/src/model/quad.cc index 5bed2e4..c012bf0 100644 --- a/src/model/quad.cc +++ b/src/model/quad.cc @@ -9,12 +9,15 @@ namespace model { -Quad::Quad(math::Vector3f const &v0, math::Vector3f const &v1, math::Vector3f const &v2, math::Vector3f const &v3, - math::Vector3f const &normal, bool detail) : +Quad::Quad(const math::Vector3f &v0,const math::Vector3f &v1, const math::Vector3f &v2, const math::Vector3f &v3, const math::Vector3f &normal, const bool detail) : quad_v0(v0), + quad_n0(normal), quad_v1(v1), + quad_n1(normal), quad_v2(v2), + quad_n2(normal), quad_v3(v3), + quad_n3(normal), quad_normal(normal) { quad_detail = detail; |