FreeBASIC  0.91.0
gfx_palette.c File Reference
#include "fb_gfx.h"
Include dependency graph for gfx_palette.c:

Go to the source code of this file.

Functions

unsigned int fb_hMakeColor (int bpp, unsigned int index, int r, int g, int b)
 
unsigned int fb_hFixColor (int bpp, unsigned int color)
 
void fb_hRestorePalette (void)
 
void fb_hSetPaletteColorRgb (int index, int r, int g, int b)
 
void fb_hSetPaletteColor (int index, unsigned int color)
 
FBCALL void fb_GfxPalette (int index, int red, int green, int blue)
 

Variables

static const unsigned char cga_association [5][4]
 
static const unsigned char ega_association [2][16]
 

Function Documentation

FBCALL void fb_GfxPalette ( int  index,
int  red,
int  green,
int  blue 
)

Definition at line 75 of file gfx_palette.c.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int fb_hFixColor ( int  bpp,
unsigned int  color 
)

Definition at line 25 of file gfx_palette.c.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int fb_hMakeColor ( int  bpp,
unsigned int  index,
int  r,
int  g,
int  b 
)

Definition at line 13 of file gfx_palette.c.

Here is the caller graph for this function:

void fb_hRestorePalette ( void  )

Definition at line 30 of file gfx_palette.c.

Here is the caller graph for this function:

void fb_hSetPaletteColor ( int  index,
unsigned int  color 
)

Definition at line 54 of file gfx_palette.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hSetPaletteColorRgb ( int  index,
int  r,
int  g,
int  b 
)

Definition at line 44 of file gfx_palette.c.

Here is the caller graph for this function:

Variable Documentation

const unsigned char cga_association[5][4]
static
Initial value:
= {
{ 0, 11, 13, 15 }, { 0, 10, 12, 14 }, { 0, 3, 5, 7 }, { 0, 2, 4, 6 }, { 0, 15 }
}

Definition at line 5 of file gfx_palette.c.

const unsigned char ega_association[2][16]
static
Initial value:
= {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
{ 0, 1, 2, 3, 4, 5, 20, 7, 56, 57, 58, 59, 60, 61, 62, 63 }
}

Definition at line 8 of file gfx_palette.c.