]> git.tdb.fi Git - libs/gl.git/commitdiff
Expose the build(Mesh &) shortcut in classes derived from GeometryBuilder
authorMikko Rasa <tdb@tdb.fi>
Sat, 11 Aug 2012 18:43:18 +0000 (21:43 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 11 Aug 2012 18:43:18 +0000 (21:43 +0300)
source/box.h
source/capsule.h
source/cylinder.h
source/grid.h

index 7bb881162ac21f52c25d96b24f4298644e05b7e2..1059d21918b0e119cabaa68041da7a6d3b9cd389 100644 (file)
@@ -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;
index 527901b0fda28cb2d94ea659dee56ddfd1844ada..07d06f50f90e05be072bc2e91217bb26d33cc88d 100644 (file)
@@ -17,6 +17,7 @@ private:
 public:
        CapsuleBuilder(float, float, unsigned = 16, unsigned = 9);
 
+       using GeometryBuilder::build;
        virtual void build(PrimitiveBuilder &) const;
 };
 
index 62aa37f1a6981d9a8049026ceca8d683ed70cb5c..ffc3cc2125d094f28332195104a9d40365aeb29c 100644 (file)
@@ -16,6 +16,7 @@ private:
 public:
        CylinderBuilder(float, float, unsigned = 16);
 
+       using GeometryBuilder::build;
        virtual void build(PrimitiveBuilder &) const;
 };
 
index f4e86f23fb8c103bab4c62f28b16b76bfd3f950c..6d65df0a836e7ea31b2c67c512db91daeb93f043 100644 (file)
@@ -28,6 +28,7 @@ private:
        void init(bool);
 
 public:
+       using GeometryBuilder::build;
        virtual void build(PrimitiveBuilder &) const;
 };