From: Mikko Rasa Date: Sat, 11 Aug 2012 18:43:18 +0000 (+0300) Subject: Expose the build(Mesh &) shortcut in classes derived from GeometryBuilder X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e8bdd7946874a6622bda3376232290a35422fdea;p=libs%2Fgl.git Expose the build(Mesh &) shortcut in classes derived from GeometryBuilder --- 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; };