Creates a matrix stack.
Relases the matrix stack memory.
Replacement for glPopMatrix.
auto m = new MatrixStack!(4, double)(); scope(exit) destroy(m); m.loadIdentity(); m.push(); m.pop(); m.translate(Vector!(double, 3)(2.4, 3.3, 7.5)); m.scale(Vector!(double, 3)(0.7)); auto t = new MatrixStack!(3, float)(); scope(exit) destroy(t); t.loadIdentity(); t.push(); t.pop(); t.translate(Vector!(float, 2)(1, -8)); t.scale(Vector!(float, 2)(0.2));