source: golgotha/src/golg/image_man.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.2 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_IMAGE_MAN_HH
10#define G1_IMAGE_MAN_HH
11
12#include "g1_limits.hh"
13
14class i4_image_class;
15
16struct g1_image_ref
17{
18  static g1_image_ref *first;
19  g1_image_ref *next;
20  const char *image_name;
21  i4_image_class *im;
22
23  virtual void cleanup();
24  virtual void load();
25
26  g1_image_ref(const char *filename);
27  ~g1_image_ref();
28
29  // this will delete the old image (if present)
30  // and load up a new one
31  void set_image(const char *filename); 
32  i4_image_class *get() { return im; }
33};
34
35struct g1_team_icon_ref : public g1_image_ref
36{
37  virtual void load();
38
39  i4_image_class *tinted_icons[G1_MAX_PLAYERS];
40  g1_team_icon_ref(const char *filename);
41  virtual void cleanup();
42};
43
44
45void g1_load_images();
46void g1_unload_images();
47
48#endif
Note: See TracBrowser for help on using the repository browser.