Shadowrun: Awakened 29 September 2011 - Build 871
Classes | Functions
bndbox.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bndbox

Functions

bndboxnewbndbox (vector min, vector max)

Function Documentation

bndbox* newbndbox ( vector  min,
vector  max 
)

Definition at line 82 of file bndbox.cpp.

References bndbox_methods, bndbox::max, bndbox::methods, bndbox::min, bndbox::nextobj, bndbox::objlist, rt_getmem(), and bndbox::tex.

Referenced by dividespace(), and octreespace().

                                           {
  bndbox * b;
  
  b=(bndbox *) rt_getmem(sizeof(bndbox));
  memset(b, 0, sizeof(bndbox));
  b->min=min;
  b->max=max;
  b->methods = &bndbox_methods;

  b->objlist=NULL;
  b->tex=NULL;
  b->nextobj=NULL;
  return b;
}

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net