Removed old object class names.

This commit is contained in:
leo
2014-08-07 15:22:33 +00:00
parent 109ec00f5f
commit b9d2229132
24 changed files with 215 additions and 221 deletions
+6 -6
View File
@@ -33,28 +33,28 @@ View::~View()
delete mCamera;
}
void View::SetCamera(Camera* camera, bool ForceCopy)
void View::SetCamera(lcCamera* Camera, bool ForceCopy)
{
if (camera->IsSimple() || ForceCopy)
if (Camera->IsSimple() || ForceCopy)
{
if (!mCamera || !mCamera->IsSimple())
mCamera = new Camera(true);
mCamera = new lcCamera(true);
mCamera->CopyPosition(camera);
mCamera->CopyPosition(Camera);
}
else
{
if (mCamera && mCamera->IsSimple())
delete mCamera;
mCamera = camera;
mCamera = Camera;
}
}
void View::SetDefaultCamera()
{
if (!mCamera || !mCamera->IsSimple())
mCamera = new Camera(true);
mCamera = new lcCamera(true);
mCamera->SetViewpoint(LC_VIEWPOINT_HOME, 1, false);
}