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

Go to the source code of this file.

Classes

struct  point_light

Functions

point_lightnewlight (void *, vector, flt)

Function Documentation

point_light* newlight ( void *  ,
vector  ,
flt   
)

Definition at line 81 of file light.cpp.

References point_light::ctr, light_methods, point_light::methods, point_light::rad, rt_getmem(), and point_light::tex.

Referenced by rt_light().

                                                        {
  point_light * l;
  
  l=(point_light *) rt_getmem(sizeof(point_light));
  memset(l, 0, sizeof(point_light));
  l->methods = &light_methods;

  l->tex=(texture *)tex;
  l->ctr=ctr;
  l->rad=rad;

  return l;
}

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