Ejemplo n.º 1
0
 /*
 =================
 Mod_SetParent
 =================
 */
 static void Mod_SetParent(node_or_leaf_t node, mnode_t parent)
 {
     node.parent = parent;
     if (node.contents < 0)
         return;
     mnode_t _node = (mnode_t)node;
     Mod_SetParent((node_or_leaf_t)_node.children[0], _node);
     Mod_SetParent((node_or_leaf_t)_node.children[1], _node);
 }
Ejemplo n.º 2
0
 public static Uint8Array Mod_LeafPVS(node_or_leaf_t leaf, model_t model)
 {
     if (leaf == model.leafs[0])
         return mod_novis;
     return Mod_DecompressVis (leaf.compressed_vis, model);
 }