Panda3D
 All Classes Functions Variables Enumerations
sgi.h
00001 /* Filename: sgi.h
00002  * Created by:  
00003  *
00004  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00005  *
00006  * PANDA 3D SOFTWARE
00007  * Copyright (c) Carnegie Mellon University.  All rights reserved.
00008  *
00009  * All use of this software is subject to the terms of the revised BSD
00010  * license.  You should have received a copy of this license along
00011  * with this source code in a file named "LICENSE."
00012  *
00013  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00014 
00015 #ifndef SGI_IMAGE_H
00016 #define SGI_IMAGE_H
00017 
00018 typedef struct {
00019     short           magic;
00020     char            storage;
00021     char            bpc;            /* pixel size: 1 = bytes, 2 = shorts */
00022     unsigned short  dimension;      /* 1 = single row, 2 = B/W, 3 = RGB */
00023     unsigned short  xsize,          /* width in pixels */
00024                     ysize,          /* height in pixels */
00025                     zsize;          /* # of channels; B/W=1, RGB=3, RGBA=4 */
00026     long            pixmin, pixmax; /* min/max pixel values */
00027     char            dummy1[4];
00028     char            name[80];
00029     long            colormap;
00030     char            dummy2[404];
00031 } Header;
00032 #define HeaderSize  512
00033 
00034 #define SGI_MAGIC           (short)474
00035 
00036 #define STORAGE_VERBATIM    0
00037 #define STORAGE_RLE         1
00038 
00039 #define CMAP_NORMAL         0
00040 #define CMAP_DITHERED       1   /* not supported */
00041 #define CMAP_SCREEN         2   /* not supported */
00042 #define CMAP_COLORMAP       3   /* not supported */
00043 
00044 #endif
 All Classes Functions Variables Enumerations