From e8bdd7946874a6622bda3376232290a35422fdea Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 11 Aug 2012 21:43:18 +0300 Subject: [PATCH] Expose the build(Mesh &) shortcut in classes derived from GeometryBuilder --- source/box.h | 1 + source/capsule.h | 1 + source/cylinder.h | 1 + source/grid.h | 1 + 4 files changed, 4 insertions(+) diff --git a/source/box.h b/source/box.h index 7bb88116..1059d219 100644 --- a/source/box.h +++ b/source/box.h @@ -17,6 +17,7 @@ public: BoxBuilder(float, float, float); BoxBuilder(const Vector3 &, const Vector3 &); + using GeometryBuilder::build; virtual void build(PrimitiveBuilder &) const; private: void build_face(PrimitiveBuilder &, const Vector3 &, const Vector3 &, const Vector3 &) const; diff --git a/source/capsule.h b/source/capsule.h index 527901b0..07d06f50 100644 --- a/source/capsule.h +++ b/source/capsule.h @@ -17,6 +17,7 @@ private: public: CapsuleBuilder(float, float, unsigned = 16, unsigned = 9); + using GeometryBuilder::build; virtual void build(PrimitiveBuilder &) const; }; diff --git a/source/cylinder.h b/source/cylinder.h index 62aa37f1..ffc3cc21 100644 --- a/source/cylinder.h +++ b/source/cylinder.h @@ -16,6 +16,7 @@ private: public: CylinderBuilder(float, float, unsigned = 16); + using GeometryBuilder::build; virtual void build(PrimitiveBuilder &) const; }; diff --git a/source/grid.h b/source/grid.h index f4e86f23..6d65df0a 100644 --- a/source/grid.h +++ b/source/grid.h @@ -28,6 +28,7 @@ private: void init(bool); public: + using GeometryBuilder::build; virtual void build(PrimitiveBuilder &) const; }; -- 2.45.2