MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / write

Method write

src/bzfs/CustomMeshFace.cpp:321–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319
320
321void CustomMeshFace::write(MeshObstacle* mesh) const {
322 const BzMaterial* matref = MATERIALMGR.addMaterial(&material);
323
324 // does this face need special data?
325 const MeshFace::SpecialData* sd = NULL;
326 if ((specialData.baseTeam >= 0) ||
327 !specialData.linkName.empty() ||
328 !specialData.zoneParams.empty()) {
329 sd = &specialData;
330 }
331
332 mesh->addFace(vertices, normals, texcoords, matref, phydrv,
333 noclusters, smoothBounce,
334 driveThrough, shootThrough, ricochet,
335 true /* triangulate if required */, sd);
336 return;
337}
338
339
340// Local Variables: ***

Callers 8

runMainLoopFunction · 0.45
writeToGroupDefMethod · 0.45
executeMethod · 0.45
saveCacheMethod · 0.45
executeMethod · 0.45
createCacheSignatureFunction · 0.45
saveSettingsFunction · 0.45
createCacheSignatureFunction · 0.45

Calls 3

addMaterialMethod · 0.80
addFaceMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected