예제 #1
0
파일: md2.cpp 프로젝트: xonotic/netradient
void istream_read_md2Frame( PointerInputStream& inputStream, md2Frame_t& frame ){
	frame.scale[0] = istream_read_float32_le( inputStream );
	frame.scale[1] = istream_read_float32_le( inputStream );
	frame.scale[2] = istream_read_float32_le( inputStream );
	frame.translate[0] = istream_read_float32_le( inputStream );
	frame.translate[1] = istream_read_float32_le( inputStream );
	frame.translate[2] = istream_read_float32_le( inputStream );
	inputStream.read( reinterpret_cast<unsigned char*>( frame.name ), 16 );
}
예제 #2
0
void istream_read_mdlHeader( PointerInputStream& inputStream, mdlHeader_t& header ){
	inputStream.read( header.ident, 4 );
	header.version = istream_read_int32_le( inputStream );
	header.scale[0] = istream_read_float32_le( inputStream );
	header.scale[1] = istream_read_float32_le( inputStream );
	header.scale[2] = istream_read_float32_le( inputStream );
	header.scale_origin[0] = istream_read_float32_le( inputStream );
	header.scale_origin[1] = istream_read_float32_le( inputStream );
	header.scale_origin[2] = istream_read_float32_le( inputStream );
	header.boundingradius = istream_read_float32_le( inputStream );
	header.eyeposition[0] = istream_read_float32_le( inputStream );
	header.eyeposition[1] = istream_read_float32_le( inputStream );
	header.eyeposition[2] = istream_read_float32_le( inputStream );
	header.numskins = istream_read_int32_le( inputStream );
	header.skinwidth = istream_read_int32_le( inputStream );
	header.skinheight = istream_read_int32_le( inputStream );
	header.numverts = istream_read_int32_le( inputStream );
	header.numtris = istream_read_int32_le( inputStream );
	header.numframes = istream_read_int32_le( inputStream );
	header.synctype = istream_read_int32_le( inputStream );
	header.flags = istream_read_int32_le( inputStream );
	header.size = istream_read_float32_le( inputStream );
}
예제 #3
0
void istream_read_mdcSt(PointerInputStream& inputStream, mdcSt_t& st)
{
  st.st[0] = istream_read_float32_le(inputStream);
  st.st[1] = istream_read_float32_le(inputStream);
}