|
FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "bmpman/bmpman.h"#include "cfile/cfile.h"#include "debugconsole/console.h"#include "graphics/grinternal.h"#include "palman/palman.h"#include "parse/parselo.h"#include "pcxutils/pcxutils.h"Go to the source code of this file.
Macros | |
| #define | SQUARE(x) ((x)*(x)) |
| #define | NUM_BLEND_TABLES 3 |
| #define | LOOKUP_SIZE (64*64*64) |
| #define | PAL_ID 0x4c415056 |
| #define | PAL_VERSION 20 |
| #define | PAL_LAST_COMPATIBLE_VERSION 20 |
Functions | |
| 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) |
| void | palette_cache_clear () |
| int | palette_cache_find (int r, int g, int b) |
| void | palette_cache_add (int r, int g, int b, int index) |
| void | palette_load_table (const char *filename) |
| DCF (palette,"Loads a new palette") | |
| uint | palette_find (int r, int g, int b) |
| void | palette_write_cached1 (char *name) |
| int | palette_read_cached (char *name) |
| void | palman_create_blend_table (float factor, ubyte *table) |
| void | palette_flush () |
| void | palette_update (const char *name_with_extension, int restrict_font_to_128) |
| ubyte * | palette_get_blend_table (float alpha) |
| uint | palette_compute_checksum (ubyte *pal) |
| void | palette_use_bm_palette (int n) |
| void | palette_restore_palette () |
Variables | |
| float | blend_table_factors [NUM_BLEND_TABLES] = { 0.5f, 1.0f, 1.2f } |
| ubyte | palette_org [256 *3] |
| ubyte | gr_palette [256 *3] |
| ubyte | gr_fade_table [(256 *34)*2] |
| int | palette_blend_table_calculated = 0 |
| int | palette_fade_table_calculated = 0 |
| uint | gr_palette_checksum = 0 |
| uint | palman_screen_signature = 0 |
| ubyte | palette_lookup [64 *64 *64] |
| int | Palman_num_nondarkening_default = 0 |
| ubyte | Palman_non_darkening_default [MAX_NONDARK_COLORS][3] |
| int | Palman_num_nondarkening = 0 |
| ubyte | Palman_non_darkening [MAX_NONDARK_COLORS][3] |
| char | palette_base_filename [128] = { "default" } |
| int | palette_base_loaded = 0 |
| int | Palman_allow_any_color = 0 |
| #define LOOKUP_SIZE (64*64*64) |
Definition at line 38 of file palman.cpp.
| #define NUM_BLEND_TABLES 3 |
Definition at line 23 of file palman.cpp.
| #define PAL_ID 0x4c415056 |
Definition at line 274 of file palman.cpp.
| #define PAL_LAST_COMPATIBLE_VERSION 20 |
Definition at line 276 of file palman.cpp.
| #define PAL_VERSION 20 |
Definition at line 275 of file palman.cpp.
Definition at line 21 of file palman.cpp.
| DCF | ( | palette | , |
| "Loads a new palette" | |||
| ) |
Definition at line 169 of file palman.cpp.
Definition at line 120 of file palman.cpp.
| void palette_cache_clear | ( | ) |
Definition at line 100 of file palman.cpp.
Definition at line 559 of file palman.cpp.
| void palette_flush | ( | ) |
Definition at line 483 of file palman.cpp.
Definition at line 532 of file palman.cpp.
| void palette_load_table | ( | const char * | filename | ) |
Definition at line 132 of file palman.cpp.
| int palette_read_cached | ( | char * | name | ) |
Definition at line 320 of file palman.cpp.
Definition at line 588 of file palman.cpp.
Definition at line 497 of file palman.cpp.
Definition at line 578 of file palman.cpp.
| void palette_write_cached1 | ( | char * | name | ) |
Definition at line 278 of file palman.cpp.
Definition at line 400 of file palman.cpp.
| void palman_load_pixels | ( | ) |
Definition at line 65 of file palman.cpp.
Definition at line 93 of file palman.cpp.
| float blend_table_factors[NUM_BLEND_TABLES] = { 0.5f, 1.0f, 1.2f } |
Definition at line 24 of file palman.cpp.
| 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 = 0 |
Definition at line 34 of file palman.cpp.
| char palette_base_filename[128] = { "default" } |
Definition at line 129 of file palman.cpp.
| int palette_base_loaded = 0 |
Definition at line 130 of file palman.cpp.
| int palette_blend_table_calculated = 0 |
Definition at line 31 of file palman.cpp.
| int palette_fade_table_calculated = 0 |
Definition at line 32 of file palman.cpp.
| ubyte palette_lookup[64 *64 *64] |
Definition at line 39 of file palman.cpp.
| ubyte palette_org[256 *3] |
Definition at line 26 of file palman.cpp.
| int Palman_allow_any_color = 0 |
Definition at line 181 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 = 0 |
Definition at line 50 of file palman.cpp.
| int Palman_num_nondarkening_default = 0 |
Definition at line 47 of file palman.cpp.
| uint palman_screen_signature = 0 |
Definition at line 36 of file palman.cpp.