コード例 #1
0
 //---------------------------------------------------------------------
 void
 CameraMatrixFile::loadImpl()
 {
     CameraMatrixFileSerializer serializer;
     Ogre::DataStreamPtr stream( openResource() );
     serializer.importCameraMatrixFile( stream, this );
 }
コード例 #2
0
 //--------------------------------------------------------------------------
 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 );
 }