コード例 #1
0
/*
================
idRestoreGame::ReadWinding
================
*/
void idRestoreGame::ReadWinding( idWinding &w ) {
	int i, num;
	file->ReadInt( num );
	w.SetNumPoints( num );
	for( i = 0; i < num; i++ ) {
		file->Read( &w[i], sizeof( idVec5 ) );
		LittleRevBytes( &w[i], sizeof( float ), sizeof( idVec5 ) / sizeof( float ) );
	}
}
コード例 #2
0
/*
================
idRestoreGame::ReadWinding
================
*/
void idRestoreGame::ReadWinding( idWinding& w )
{
	int i, num;
	ReadInt( num );
	w.SetNumPoints( num );
	for( i = 0; i < num; i++ )
	{
		idVec5& v = w[i];
		file->ReadBig( v );
	}
}
コード例 #3
0
void idRestoreGame::ReadWinding( idWinding &w ) {
	int i, num;
	ReadInt( num );
	if( num < 0 ) {
		Error( "idRestoreGame::ReadWinding: negative number of points (%d)", num );
	}
	w.SetNumPoints( num );
	for( i = 0; i < num; i++ ) {
		ReadVec5( w[i] );
	}
}