//--------------------------------------------------------------------- void CameraMatrixFile::loadImpl() { CameraMatrixFileSerializer serializer; Ogre::DataStreamPtr stream( openResource() ); serializer.importCameraMatrixFile( stream, this ); }
//-------------------------------------------------------------------------- void FLevelFileSerializer::readCameraMatrix( Ogre::DataStreamPtr &stream, FLevelFile *pDest ) { CameraMatrixFilePtr camera_matrix = createResource<CameraMatrixFileManager>( pDest, EXT_CAMERA_MATRIX ).staticCast<CameraMatrixFile>(); CameraMatrixFileSerializer ser; ser.importCameraMatrixFile( stream, camera_matrix.getPointer() ); pDest->setCameraMatrix( camera_matrix ); }