source: golgotha/src/golg/objs/sprite.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_SPRITE_HH
10#define G1_SPRITE_HH
11
12#include "g1_limits.hh"
13#include "tex_id.hh"
14
15class r1_render_api_class;
16
17class g1_sprite_class
18{
19public:
20  i4_float texture_scale;
21  i4_float add_x, add_y;     // added to sprites position before transform
22                             // these numbers are calculated from vertex[0] of the quadgon
23                             // loaded from 3d studio model
24  r1_texture_handle texture;
25  sw32 num_animation_frames;
26  i4_float extent;
27} ;
28
29class g1_sprite_list_class
30{
31  g1_sprite_class array[G1_MAX_SPRITES];
32
33public:
34  void load(r1_render_api_class *tmap);
35  g1_sprite_class *get_sprite(w16 handle) { return &array[handle]; }
36} ;
37
38extern g1_sprite_list_class g1_sprite_list_man;
39
40#endif
Note: See TracBrowser for help on using the repository browser.