X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgrid.cpp;h=3f4d5e2fddb0fa11c9ab99f64f906fc3ecbaeece;hb=refs%2Fheads%2Fmaster;hp=aaeada8a73130e2ae2dccd4fb53c3da608731def;hpb=8e9d872c2ba8dc633d29a673ba93adf38d262a5c;p=libs%2Fgl.git diff --git a/source/grid.cpp b/source/grid.cpp deleted file mode 100644 index aaeada8a..00000000 --- a/source/grid.cpp +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include "grid.h" -#include "primitivebuilder.h" - -using namespace std; - -namespace Msp { -namespace GL { - -GridBuilder::GridBuilder(float w, float h, unsigned u, unsigned v): - origin(-w/2, -h/2, 0), - side1(w, 0, 0), - side2(0, h, 0), - norm(0, 0, 1), - binorm(0, 1, 0), - u_div(u), - v_div(v) -{ - init(false); -} - -GridBuilder::GridBuilder(const Vector3 &o, const Vector3 &s, unsigned u, unsigned v): - origin(o), - u_div(u), - v_div(v) -{ - if(abs(s.z)