Open source remastering of the Freespace 2 engine
palman.h File Reference

Go to the source code of this file.




void palette_update (const char *name, int restrict_colors_to_upper_128)
void palette_flush ()
uint palette_compute_checksum (ubyte *pal)
ubytepalette_get_blend_table (float alpha)
uint palette_find (int r, int g, int b)
void palette_load_table (const char *filename)
void palette_use_bm_palette (int n)
void palette_restore_palette (void)
int palman_is_nondarkening (int r, int g, int b)
void palman_load_pixels ()
void palman_set_nondarkening (ubyte colors[MAX_NONDARK_COLORS][3], int size)


ubyte gr_palette [256 *3]
ubyte gr_fade_table [(256 *34)*2]
uint gr_palette_checksum
int Palman_num_nondarkening_default
ubyte Palman_non_darkening_default [MAX_NONDARK_COLORS][3]
int Palman_num_nondarkening
ubyte Palman_non_darkening [MAX_NONDARK_COLORS][3]

Macro Definition Documentation


Definition at line 43 of file palman.h.

Function Documentation

uint palette_compute_checksum ( ubyte pal)

Definition at line 559 of file palman.cpp.

uint palette_find ( int  r,
int  g,
int  b 

Definition at line 184 of file palman.cpp.

void palette_flush ( )

Definition at line 483 of file palman.cpp.

ubyte* palette_get_blend_table ( float  alpha)

Definition at line 532 of file palman.cpp.

void palette_load_table ( const char *  filename)

Definition at line 132 of file palman.cpp.

void palette_restore_palette ( void  )

Definition at line 588 of file palman.cpp.

void palette_update ( const char *  name,
int  restrict_colors_to_upper_128 

Definition at line 497 of file palman.cpp.

void palette_use_bm_palette ( int  n)

Definition at line 578 of file palman.cpp.

int palman_is_nondarkening ( int  r,
int  g,
int  b 

Definition at line 53 of file palman.cpp.

void palman_load_pixels ( )

Definition at line 65 of file palman.cpp.

void palman_set_nondarkening ( ubyte  colors[MAX_NONDARK_COLORS][3],
int  size 

Definition at line 93 of file palman.cpp.

Variable Documentation

ubyte gr_fade_table[(256 *34)*2]

Definition at line 28 of file palman.cpp.

ubyte gr_palette[256 *3]

Definition at line 27 of file palman.cpp.

uint gr_palette_checksum

Definition at line 34 of file palman.cpp.

ubyte Palman_non_darkening[MAX_NONDARK_COLORS][3]

Definition at line 51 of file palman.cpp.

ubyte Palman_non_darkening_default[MAX_NONDARK_COLORS][3]

Definition at line 48 of file palman.cpp.

int Palman_num_nondarkening

Definition at line 50 of file palman.cpp.

int Palman_num_nondarkening_default

Definition at line 47 of file palman.cpp.