source: golgotha/src/golg/light.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.1 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef G1_LIGHT_HH
10#define G1_LIGHT_HH
11
12#include "math/vector.hh"
13
14class i4_saver_class;
15class i4_loader_class;
16
17struct g1_light_info
18{
19  float directional_intensity;           // 0..1
20  i4_3d_vector direction;
21
22  float ambient_intensity;               // 0..1
23  float shadow_intensity[256];
24
25  void recalc_shadow_intensity();
26  void set_ambient_intensity(float v);
27  void set_directional_intensity(float v);
28
29  void save(i4_saver_class *fp);
30  i4_bool load(i4_loader_class *fp);
31  void defaults();
32  g1_light_info();
33} ;
34
35extern g1_light_info g1_lights;
36
37
38
39
40#endif
41
Note: See TracBrowser for help on using the repository browser.