Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Targa Class Reference

#include <TARGA.H>

Public Member Functions

 Targa (void)
 
 ~Targa ()
 
long Open (const char *name, long mode)
 
void Close (void)
 
long Load (const char *name, char *palette, char *image, bool invert_image=true)
 
long Load (const char *name, long flags, bool invert_image=true)
 
long Save (const char *name, long flags, bool addextension=false)
 
void XFlip (void)
 
void YFlip (void)
 
char * SetImage (char *buffer)
 
char * GetImage (void) const
 
char * SetPalette (char *buffer)
 
char * GetPalette (void) const
 
bool IsCompressed (void)
 
TGA2ExtensionGetExtension (void)
 
 Targa (void)
 
 ~Targa ()
 
long Open (const char *name, long mode)
 
void Close (void)
 
long Load (const char *name, char *palette, char *image, bool invert_image=true)
 
long Load (const char *name, long flags, bool invert_image=true)
 
long Save (const char *name, long flags, bool addextension=false)
 
void XFlip (void)
 
void YFlip (void)
 
char * SetImage (char *buffer)
 
char * GetImage (void) const
 
char * SetPalette (char *buffer)
 
char * GetPalette (void) const
 
bool IsCompressed (void)
 
TGA2ExtensionGetExtension (void)
 

Public Attributes

TGAHeader Header
 

Protected Attributes

FileClassTGAFile
 
long mAccess
 
long mFlags
 
char * mImage
 
char * mPalette
 
TGA2Extension mExtension
 
long mFH
 

Detailed Description

Definition at line 259 of file TARGA.H.

Constructor & Destructor Documentation

◆ Targa() [1/2]

Targa::Targa ( void )

Definition at line 101 of file TARGA.CPP.

◆ ~Targa() [1/2]

Targa::~Targa ( void )

Definition at line 133 of file TARGA.CPP.

◆ Targa() [2/2]

Targa::Targa ( void )

◆ ~Targa() [2/2]

Targa::~Targa ( )

Member Function Documentation

◆ Close() [1/2]

void Targa::Close ( void )

Definition at line 312 of file TARGA.CPP.

◆ Close() [2/2]

void Targa::Close ( void )

◆ GetExtension() [1/2]

TGA2Extension * Targa::GetExtension ( void )

Definition at line 1027 of file TARGA.CPP.

◆ GetExtension() [2/2]

TGA2Extension * Targa::GetExtension ( void )

◆ GetImage() [1/2]

char * Targa::GetImage ( void ) const
inline

Definition at line 278 of file TARGA.H.

◆ GetImage() [2/2]

char * Targa::GetImage ( void ) const
inline

Definition at line 278 of file TARGA.H.

◆ GetPalette() [1/2]

char * Targa::GetPalette ( void ) const
inline

Definition at line 281 of file TARGA.H.

◆ GetPalette() [2/2]

char * Targa::GetPalette ( void ) const
inline

Definition at line 281 of file TARGA.H.

◆ IsCompressed() [1/2]

bool Targa::IsCompressed ( void )

Definition at line 996 of file TARGA.CPP.

◆ IsCompressed() [2/2]

bool Targa::IsCompressed ( void )

◆ Load() [1/4]

long Targa::Load ( const char * name,
char * palette,
char * image,
bool invert_image = true )

Definition at line 354 of file TARGA.CPP.

◆ Load() [2/4]

long Targa::Load ( const char * name,
char * palette,
char * image,
bool invert_image = true )

◆ Load() [3/4]

long Targa::Load ( const char * name,
long flags,
bool invert_image = true )

Definition at line 488 of file TARGA.CPP.

◆ Load() [4/4]

long Targa::Load ( const char * name,
long flags,
bool invert_image = true )

◆ Open() [1/2]

long Targa::Open ( const char * name,
long mode )

Definition at line 171 of file TARGA.CPP.

◆ Open() [2/2]

long Targa::Open ( const char * name,
long mode )

◆ Save() [1/2]

long Targa::Save ( const char * name,
long flags,
bool addextension = false )

Definition at line 586 of file TARGA.CPP.

◆ Save() [2/2]

long Targa::Save ( const char * name,
long flags,
bool addextension = false )

◆ SetImage() [1/2]

char * Targa::SetImage ( char * buffer)

Definition at line 930 of file TARGA.CPP.

◆ SetImage() [2/2]

char * Targa::SetImage ( char * buffer)

◆ SetPalette() [1/2]

char * Targa::SetPalette ( char * buffer)

Definition at line 973 of file TARGA.CPP.

◆ SetPalette() [2/2]

char * Targa::SetPalette ( char * buffer)

◆ XFlip() [1/2]

void Targa::XFlip ( void )

Definition at line 775 of file TARGA.CPP.

◆ XFlip() [2/2]

void Targa::XFlip ( void )

◆ YFlip() [1/2]

void Targa::YFlip ( void )

Definition at line 870 of file TARGA.CPP.

◆ YFlip() [2/2]

void Targa::YFlip ( void )

Member Data Documentation

◆ Header

TGAHeader Targa::Header

Definition at line 287 of file TARGA.H.

◆ mAccess

long Targa::mAccess
protected

Definition at line 295 of file TARGA.H.

◆ mExtension

TGA2Extension Targa::mExtension
protected

Definition at line 299 of file TARGA.H.

◆ mFH

long Targa::mFH
protected

Definition at line 293 of file TARGA.H.

◆ mFlags

long Targa::mFlags
protected

Definition at line 296 of file TARGA.H.

◆ mImage

char * Targa::mImage
protected

Definition at line 297 of file TARGA.H.

◆ mPalette

char * Targa::mPalette
protected

Definition at line 298 of file TARGA.H.

◆ TGAFile

FileClass* Targa::TGAFile
protected

Definition at line 291 of file TARGA.H.


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