From Domenico Mangieri, addded some missing const qualifiers in osgUtil::SceneView.

This commit is contained in:
Robert Osfield
2005-08-22 13:58:23 +00:00
parent 8e3f4e4890
commit c0d6126313
2 changed files with 8 additions and 8 deletions

View File

@@ -1108,7 +1108,7 @@ void SceneView::setProjectionMatrixAsPerspective(double fovy,double aspectRatio,
bool SceneView::getProjectionMatrixAsOrtho(double& left, double& right,
double& bottom, double& top,
double& zNear, double& zFar)
double& zNear, double& zFar) const
{
return _projectionMatrix.getOrtho(left, right,
bottom, top,
@@ -1117,7 +1117,7 @@ bool SceneView::getProjectionMatrixAsOrtho(double& left, double& right,
bool SceneView::getProjectionMatrixAsFrustum(double& left, double& right,
double& bottom, double& top,
double& zNear, double& zFar)
double& zNear, double& zFar) const
{
return _projectionMatrix.getFrustum(left, right,
bottom, top,
@@ -1125,7 +1125,7 @@ bool SceneView::getProjectionMatrixAsFrustum(double& left, double& right,
}
bool SceneView::getProjectionMatrixAsPerspective(double& fovy,double& aspectRatio,
double& zNear, double& zFar)
double& zNear, double& zFar) const
{
return _projectionMatrix.getPerspective(fovy, aspectRatio, zNear, zFar);
}
@@ -1135,7 +1135,7 @@ void SceneView::setViewMatrixAsLookAt(const Vec3& eye,const Vec3& center,const V
setViewMatrix(osg::Matrixd::lookAt(eye,center,up));
}
void SceneView::getViewMatrixAsLookAt(Vec3& eye,Vec3& center,Vec3& up,float lookDistance)
void SceneView::getViewMatrixAsLookAt(Vec3& eye,Vec3& center,Vec3& up,float lookDistance) const
{
_viewMatrix.getLookAt(eye,center,up,lookDistance);
}