Guest User

Untitled

a guest
Jan 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. void setva(cube &c, int cx, int cy, int cz, int size, int csi)
  2. {
  3.     if(verts.length())                                 // since reseting is a bit slow
  4.     {
  5.         verts.setsize(0);
  6.         explicitsky = skyarea = 0;
  7.         vh.clear();
  8.         l0.clear();
  9.         l1.clear();
  10.     }
  11.  
  12.     bbmin = ivec(cx+size, cy+size, cz+size);
  13.     bbmax = ivec(cx, cy, cz);
  14.  
  15.     rendercube(c, cx, cy, cz, size, csi);
  16.  
  17.     if(verts.length())
  18.     {
  19.         c.va = newva(cx, cy, cz, size);
  20.         c.va->min = bbmin;
  21.         c.va->max = bbmax;
  22.     }
  23.  
  24.     l0.clearidx();
  25.     l1.clearidx();
  26. }
Add Comment
Please, Sign In to add comment