Line | |
---|
1 | /* |
---|
2 | |
---|
3 | Homan Igehy |
---|
4 | |
---|
5 | Computer Graphics Laboratory |
---|
6 | Stanford University |
---|
7 | |
---|
8 | --------------------------------------------------------------------- |
---|
9 | |
---|
10 | Copyright (1997) The Board of Trustees of the Leland Stanford Junior |
---|
11 | University. Except for commercial resale, lease, license or other |
---|
12 | commercial transactions, permission is hereby given to use, copy, |
---|
13 | modify this software for academic purposes only. No part of this |
---|
14 | software or any derivatives thereof may be used in the production of |
---|
15 | computer models for resale or for use in a commercial |
---|
16 | product. STANFORD MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND |
---|
17 | CONCERNING THIS SOFTWARE. No support is implied or provided. |
---|
18 | |
---|
19 | */ |
---|
20 | |
---|
21 | |
---|
22 | /* |
---|
23 | * sl_texture.H |
---|
24 | * |
---|
25 | */ |
---|
26 | |
---|
27 | |
---|
28 | #ifndef SL_TEXTURE_H |
---|
29 | #define SL_TEXTURE_H |
---|
30 | |
---|
31 | #include "sl_val.H" |
---|
32 | |
---|
33 | typedef struct TM_RGB { Integer8 R, G, B; } TM_RGB; |
---|
34 | |
---|
35 | typedef struct TextureMap { |
---|
36 | TM_RGB *texture; |
---|
37 | Integer height, width; |
---|
38 | Integer height_shift, width_shift; |
---|
39 | } TextureMap; |
---|
40 | |
---|
41 | |
---|
42 | #define MIPMAP_MAX_LEVELS 12 |
---|
43 | |
---|
44 | typedef struct MipMap { |
---|
45 | TM_RGB *texture[MIPMAP_MAX_LEVELS]; |
---|
46 | Integer levels; |
---|
47 | } MipMap; |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | #endif /* SL_TEXTURE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.