Grx.ColorInfo – grx-3.0 Reference Manual
Packages
grx-3.0
Grx
ColorInfo
get_palette_type
get_save_buffer_size
n_colors
n_free_colors
refresh_colors
reset_colors
restore_colors
save_colors
set_palette_type_rgb
Grx.ColorInfo
Description:
Functions for manipulating the color table.
Content:
Functions:
public
void
reset_colors
()
Frees all colors (except for black and white).
public
void
set_palette_type_rgb
()
Changes the graphics mode to RGB color values instead of using a color table.
public
ColorPaletteType
get_palette_type
()
Gets the current color palette type.
public
void
refresh_colors
()
Reloads the currently allocated color values into the video hardware.
public
int
n_colors
()
Gets the number of colors supported by the current graphics mode.
public
int
n_free_colors
()
Gets the number of unallocated colors remaining for the current graphics mode.
public
int
get_save_buffer_size
()
public
void
save_colors
(
void
* buffer)
public
void
restore_colors
(
void
* buffer)