Last change
on this file since 102 was
80,
checked in by Sam Hocevar, 15 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 __R1_TEXTURE_ID_HH_
|
---|
10 | #define __R1_TEXTURE_ID_HH_
|
---|
11 |
|
---|
12 | #include "arch.hh"
|
---|
13 | typedef sw16 r1_texture_handle;
|
---|
14 |
|
---|
15 | class i4_const_str;
|
---|
16 | class i4_str;
|
---|
17 | i4_str *r1_texture_id_to_filename(w32 id, const i4_const_str &out_dir);
|
---|
18 | w32 r1_get_texture_id(const i4_const_str &full_filename);
|
---|
19 |
|
---|
20 |
|
---|
21 | struct r1_texture_ref
|
---|
22 | {
|
---|
23 | public:
|
---|
24 | static r1_texture_ref *first;
|
---|
25 |
|
---|
26 | char *name;
|
---|
27 | r1_texture_handle texture_handle;
|
---|
28 |
|
---|
29 | r1_texture_ref(char *texture_name) : name(texture_name)
|
---|
30 | { texture_handle=0; next=first; first=this; }
|
---|
31 |
|
---|
32 | ~r1_texture_ref();
|
---|
33 |
|
---|
34 | r1_texture_ref *next;
|
---|
35 |
|
---|
36 | r1_texture_handle get() { return texture_handle; }
|
---|
37 | };
|
---|
38 |
|
---|
39 |
|
---|
40 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.