TORCS  1.3.9
The Open Racing Car Simulator
ssgSGIHeader Class Reference

#include <grloadsgi.h>

Inheritance diagram for ssgSGIHeader:

Public Member Functions

 ssgSGIHeader ()
 
 ssgSGIHeader (const char *fname, ssgTextureInfo *info)
 
 ~ssgSGIHeader ()
 
bool openFile (const char *fname)
 
void makeConsistant ()
 
void getRow (unsigned char *buf, int y, int z)
 
void getPlane (unsigned char *buf, int z)
 
void getImage (unsigned char *buf)
 
void readHeader ()
 

Public Attributes

unsigned short magic
 
int max
 
int min
 
int colormap
 
char type
 
char bpp
 
unsigned int * start
 
int * leng
 
unsigned short dim
 
unsigned short xsize
 
unsigned short ysize
 
unsigned short zsize
 
int tablen
 
FILE * image_fd
 
char image_fname [512]
 
int isSwapped
 
unsigned char * rle_temp
 
bool loadSGI_bool
 

Protected Member Functions

void swab_short (unsigned short *x)
 
void swab_int (unsigned int *x)
 
void swab_int_array (int *x, int leng)
 
unsigned char readByte ()
 
unsigned short readShort ()
 
unsigned int readInt ()
 

Detailed Description

Definition at line 51 of file grloadsgi.h.

Constructor & Destructor Documentation

◆ ssgSGIHeader() [1/2]

ssgSGIHeader::ssgSGIHeader ( )

◆ ssgSGIHeader() [2/2]

ssgSGIHeader::ssgSGIHeader ( const char *  fname,
ssgTextureInfo *  info 
)

◆ ~ssgSGIHeader()

ssgSGIHeader::~ssgSGIHeader ( )

Member Function Documentation

◆ getImage()

void ssgSGIHeader::getImage ( unsigned char *  buf)

◆ getPlane()

void ssgSGIHeader::getPlane ( unsigned char *  buf,
int  z 
)

◆ getRow()

void ssgSGIHeader::getRow ( unsigned char *  buf,
int  y,
int  z 
)

◆ makeConsistant()

void ssgSGIHeader::makeConsistant ( )

◆ openFile()

bool ssgSGIHeader::openFile ( const char *  fname)

◆ readByte()

unsigned char ssgSGIHeader::readByte ( )
protected

◆ readHeader()

void ssgSGIHeader::readHeader ( )

◆ readInt()

unsigned int ssgSGIHeader::readInt ( )
protected

◆ readShort()

unsigned short ssgSGIHeader::readShort ( )
protected

◆ swab_int()

void ssgSGIHeader::swab_int ( unsigned int *  x)
protected

◆ swab_int_array()

void ssgSGIHeader::swab_int_array ( int *  x,
int  leng 
)
protected

◆ swab_short()

void ssgSGIHeader::swab_short ( unsigned short *  x)
protected

Member Data Documentation

◆ bpp

char ssgSGIHeader::bpp

Definition at line 58 of file grloadsgi.h.

◆ colormap

int ssgSGIHeader::colormap

Definition at line 56 of file grloadsgi.h.

◆ dim

unsigned short ssgSGIHeader::dim

Definition at line 61 of file grloadsgi.h.

◆ image_fd

FILE* ssgSGIHeader::image_fd

Definition at line 68 of file grloadsgi.h.

◆ image_fname

char ssgSGIHeader::image_fname[512]

Definition at line 69 of file grloadsgi.h.

◆ isSwapped

int ssgSGIHeader::isSwapped

Definition at line 70 of file grloadsgi.h.

◆ leng

int* ssgSGIHeader::leng

Definition at line 60 of file grloadsgi.h.

◆ loadSGI_bool

bool ssgSGIHeader::loadSGI_bool

Definition at line 72 of file grloadsgi.h.

◆ magic

unsigned short ssgSGIHeader::magic

Definition at line 53 of file grloadsgi.h.

◆ max

int ssgSGIHeader::max

Definition at line 54 of file grloadsgi.h.

◆ min

int ssgSGIHeader::min

Definition at line 55 of file grloadsgi.h.

◆ rle_temp

unsigned char* ssgSGIHeader::rle_temp

Definition at line 71 of file grloadsgi.h.

◆ start

unsigned int* ssgSGIHeader::start

Definition at line 59 of file grloadsgi.h.

◆ tablen

int ssgSGIHeader::tablen

Definition at line 65 of file grloadsgi.h.

◆ type

char ssgSGIHeader::type

Definition at line 57 of file grloadsgi.h.

◆ xsize

unsigned short ssgSGIHeader::xsize

Definition at line 62 of file grloadsgi.h.

◆ ysize

unsigned short ssgSGIHeader::ysize

Definition at line 63 of file grloadsgi.h.

◆ zsize

unsigned short ssgSGIHeader::zsize

Definition at line 64 of file grloadsgi.h.


The documentation for this class was generated from the following file: