Guest User

Untitled

a guest
Oct 14th, 2014
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. case NDT_MESH:
  2. {
  3. //struct timespec ts;
  4. //struct timespec te;
  5. //clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts);
  6. u8 facedir = n.getFaceDir(nodedef);
  7. for(u16 j = 0; j < f.mesh_ptr[facedir]->getMeshBufferCount(); j++) {
  8. scene::IMeshBuffer *buf = (scene::SMeshBuffer *)f.mesh_ptr[facedir]->getMeshBuffer(j);
  9. collector.append(f.tiles[j],
  10. (video::S3DVertex *)buf->getVertices(), buf->getVertexCount(),
  11. buf->getIndices(), buf->getIndexCount(), intToFloat(p, BS),
  12. MapBlock_LightColor(255, getInteriorLight(n, 1, nodedef),
  13. f.light_source));
  14. }
  15. //clock_gettime(CLOCK_THREAD_CPUTIME_ID, &te);
  16. //dstream<<"Mesh: "<<(te.tv_nsec - ts.tv_nsec)/1000<<"\n";
  17. break;}
  18. }
Advertisement
Add Comment
Please, Sign In to add comment