home *** CD-ROM | disk | FTP | other *** search
- /*
- ** MacWT -- a 3d game engine for the Macintosh
- ** © 1995, Bill Hayden and Nikol Software
- **
- ** On the Internet:
- ** bmoc1@aol.com (my personal address)
- ** nikolsw@grove.ufl.edu (my school address)
- ** MacWT anonymous FTP site: ftp.circa.ufl.edu/pub/software/ufmug/mirrors/LocalSW/Hayden/
- ** http://grove.ufl.edu:80/~nikolsw (my WWW page, containing MacWT info)
- **
- ** based on wt, by Chris Laurel (claurel@mr.net)
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- */
-
- /* GIF87a code from Thomas Hamren (d0hampe@dtek.chalmers.se) */
-
- #ifndef TEXTURE_H_
- #define TEXTURE_H_
-
-
- typedef struct {
- short width, height;
- short log2height;
- Pixel *texels;
- Pixel16 *texels16;
- Boolean opaque;
- } Texture;
-
- #define TEXTURE_COLUMN(tex, col) ((tex)->texels + ((col) << (tex)->log2height))
- #define TEXTURE_COLUMN16(tex, col) ((tex)->texels16 + ((col) << (tex)->log2height))
-
- extern Texture *new_texture(short width, short height);
- extern Texture *read_texture_file(char *filename);
-
- #endif
-