source: golgotha/src/golg/editor/mode/e_light.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 14 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.3 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 LIGHT_MODE_HH
10#define LIGHT_MODE_HH
11
12
13#include "editor/e_state.hh"
14#include "editor/mode/e_mode.hh"
15
16class g1_light_mode : public g1_mode_handler
17{
18public:
19  virtual state current_state();
20  g1_light_mode(g1_controller_edit_class *c) : g1_mode_handler(c) {}
21};
22
23
24class g1_light_params : public g1_mode_creator
25{
26public:
27  char *name() { return "LIGHT"; }
28  enum
29  {
30    ROTATE,
31    ZOOM,
32    MOVE,
33    SELECT,
34    GDARKEN,
35    GBRIGHTEN,
36    DDARKEN,
37    DBRIGHTEN,
38    AMBIENT,
39    GDARKEN_REP,
40    GBRIGHTEN_REP,
41    DDARKEN_REP,
42    DBRIGHTEN_REP,
43  } ;
44
45  void create_buttons(i4_parent_window_class *container);
46
47  g1_mode_handler *create_mode_handler(g1_controller_edit_class *c)
48  { return new g1_light_mode(c); }
49
50
51  void receive_event(i4_event *ev);
52} ;
53
54extern g1_light_params g1_e_light;
55
56
57
58#endif
Note: See TracBrowser for help on using the repository browser.