本文整理汇总了C++中NetBuffer::addGFXMaterial方法的典型用法代码示例。如果您正苦于以下问题:C++ NetBuffer::addGFXMaterial方法的具体用法?C++ NetBuffer::addGFXMaterial怎么用?C++ NetBuffer::addGFXMaterial使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NetBuffer
的用法示例。
在下文中一共展示了NetBuffer::addGFXMaterial方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addPlanetBuffer
void UnitFactory::addPlanetBuffer( NetBuffer &netbuf,
QVector x,
QVector y,
float vely,
const Vector &rotvel,
float pos,
float gravity,
float radius,
const char *filename,
BLENDFUNC sr,
BLENDFUNC ds,
const vector< string > &dest,
const QVector &orbitcent,
Unit *parent,
const GFXMaterial &ourmat,
const std::vector< GFXLightLocal > &ligh,
int faction,
string fullname,
bool inside_out,
ObjSerial netcreate )
{
netbuf.addChar( ZoneMgr::AddPlanet );
netbuf.addSerial( netcreate );
netbuf.addQVector( x );
netbuf.addQVector( y );
netbuf.addFloat( vely );
netbuf.addVector( Vector( rotvel ) );
netbuf.addFloat( pos );
netbuf.addFloat( gravity );
netbuf.addFloat( radius );
netbuf.addString( string( filename ) );
netbuf.addChar( sr );
netbuf.addChar( ds );
netbuf.addShort( dest.size() );
for (unsigned int i = 0; i < dest.size(); i++)
netbuf.addString( dest[i] );
netbuf.addQVector( QVector( orbitcent ) );
netbuf.addSerial( parent->GetSerial() );
netbuf.addGFXMaterial( ourmat );
netbuf.addShort( ligh.size() );
for (unsigned int j = 0; j < ligh.size(); j++)
netbuf.addGFXLightLocal( ligh[j] );
netbuf.addInt32( faction );
netbuf.addString( fullname );
netbuf.addChar( inside_out );
}