Added support for Matrixd and Matrixf implementations, with the default

Matrix typedef's to either Matrixd or Matrixf.
This commit is contained in:
Robert Osfield
2003-09-05 20:48:42 +00:00
parent 604e478f52
commit 5b93250eb0
36 changed files with 1231 additions and 690 deletions

View File

@@ -168,7 +168,7 @@ void DrawShapeVisitor::apply(const Box& box)
if (!box.zeroRotation())
{
Matrix rotation(box.getRotationMatrix());
rotation.glMultMatrix();
glMultMatrix(rotation.ptr());
}
glBegin(GL_QUADS);
@@ -284,7 +284,7 @@ void DrawShapeVisitor::apply(const Cone& cone)
if (!cone.zeroRotation())
{
Matrix rotation(cone.getRotationMatrix());
rotation.glMultMatrix();
glMultMatrix(rotation.ptr());
}
// evaluate hints
@@ -402,7 +402,7 @@ void DrawShapeVisitor::apply(const Cylinder& cylinder)
if (!cylinder.zeroRotation())
{
Matrix rotation(cylinder.getRotationMatrix());
rotation.glMultMatrix();
glMultMatrix(rotation.ptr());
}
// evaluate hints
@@ -568,7 +568,7 @@ void DrawShapeVisitor::apply(const HeightField& field)
if (!field.zeroRotation())
{
Matrix rotation(field.getRotationMatrix());
rotation.glMultMatrix();
glMultMatrix(rotation.ptr());
}
float dx = field.getXInterval();