Panda3D
sgi.h
1 /* Filename: sgi.h
2  * Created by:
3  *
4  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
5  *
6  * PANDA 3D SOFTWARE
7  * Copyright (c) Carnegie Mellon University. All rights reserved.
8  *
9  * All use of this software is subject to the terms of the revised BSD
10  * license. You should have received a copy of this license along
11  * with this source code in a file named "LICENSE."
12  *
13  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
14 
15 #ifndef SGI_IMAGE_H
16 #define SGI_IMAGE_H
17 
18 typedef struct {
19  short magic;
20  char storage;
21  char bpc; /* pixel size: 1 = bytes, 2 = shorts */
22  unsigned short dimension; /* 1 = single row, 2 = B/W, 3 = RGB */
23  unsigned short xsize, /* width in pixels */
24  ysize, /* height in pixels */
25  zsize; /* # of channels; B/W=1, RGB=3, RGBA=4 */
26  long pixmin, pixmax; /* min/max pixel values */
27  char dummy1[4];
28  char name[80];
29  long colormap;
30  char dummy2[404];
31 } Header;
32 #define HeaderSize 512
33 
34 #define SGI_MAGIC (short)474
35 
36 #define STORAGE_VERBATIM 0
37 #define STORAGE_RLE 1
38 
39 #define CMAP_NORMAL 0
40 #define CMAP_DITHERED 1 /* not supported */
41 #define CMAP_SCREEN 2 /* not supported */
42 #define CMAP_COLORMAP 3 /* not supported */
43 
44 #endif
Definition: sgi.h:18