Made Matrix a typedef to Matrixf, and converted the old Matrix to Matrixf, as
part of prep for supporting both Matrixf (float) and Matrixd (double). Added osg::Matrixf::glLoadMatrix() and osg::Matrixf::glMultiMatrix() methods and changed corresponding usage of glLoad/MultMatrixf() calls across to use these methods. Again prep for support Matrixd. Fixes for VisualStudio 6.0 compile.
This commit is contained in:
@@ -168,7 +168,7 @@ void DrawShapeVisitor::apply(const Box& box)
|
||||
if (!box.zeroRotation())
|
||||
{
|
||||
Matrix rotation(box.getRotationMatrix());
|
||||
glMultMatrixf(rotation.ptr());
|
||||
rotation.glMultMatrix();
|
||||
}
|
||||
|
||||
glBegin(GL_QUADS);
|
||||
@@ -284,7 +284,7 @@ void DrawShapeVisitor::apply(const Cone& cone)
|
||||
if (!cone.zeroRotation())
|
||||
{
|
||||
Matrix rotation(cone.getRotationMatrix());
|
||||
glMultMatrixf(rotation.ptr());
|
||||
rotation.glMultMatrix();
|
||||
}
|
||||
|
||||
// evaluate hints
|
||||
@@ -402,7 +402,7 @@ void DrawShapeVisitor::apply(const Cylinder& cylinder)
|
||||
if (!cylinder.zeroRotation())
|
||||
{
|
||||
Matrix rotation(cylinder.getRotationMatrix());
|
||||
glMultMatrixf(rotation.ptr());
|
||||
rotation.glMultMatrix();
|
||||
}
|
||||
|
||||
// evaluate hints
|
||||
@@ -568,7 +568,7 @@ void DrawShapeVisitor::apply(const HeightField& field)
|
||||
if (!field.zeroRotation())
|
||||
{
|
||||
Matrix rotation(field.getRotationMatrix());
|
||||
glMultMatrixf(rotation.ptr());
|
||||
rotation.glMultMatrix();
|
||||
}
|
||||
|
||||
float dx = field.getXInterval();
|
||||
|
||||
Reference in New Issue
Block a user