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

Go to the source code of this file.

Functions

void fb_hPostEvent_code_start (void)
 
void fb_hPostEvent (EVENT *e)
 
void fb_hPostEvent_code_end (void)
 
FB_GFXCTXfb_hGetContext (void)
 
void fb_hPrepareTarget (FB_GFXCTX *context, void *target)
 
void fb_hSetPixelTransfer (FB_GFXCTX *context, unsigned int color)
 
void fb_hTranslateCoord (FB_GFXCTX *context, float fx, float fy, int *x, int *y)
 
void fb_hFixRelative (FB_GFXCTX *context, int coord_type, float *x1, float *y1, float *x2, float *y2)
 
void fb_hFixCoordsOrder (int *x1, int *y1, int *x2, int *y2)
 
static void fb_hPutPixel1 (FB_GFXCTX *ctx, int x, int y, unsigned int color)
 
static void fb_hPutPixel2 (FB_GFXCTX *ctx, int x, int y, unsigned int color)
 
static void fb_hPutPixel4 (FB_GFXCTX *ctx, int x, int y, unsigned int color)
 
static void fb_hPutPixelAlpha4 (FB_GFXCTX *ctx, int x, int y, unsigned int color)
 
static unsigned int fb_hGetPixel1 (FB_GFXCTX *ctx, int x, int y)
 
static unsigned int fb_hGetPixel2 (FB_GFXCTX *ctx, int x, int y)
 
static unsigned int fb_hGetPixel4 (FB_GFXCTX *ctx, int x, int y)
 
static void * fb_hPixelSet2 (void *dest, int color, size_t size)
 
static void * fb_hPixelSet4 (void *dest, int color, size_t size)
 
void * fb_hPixelSetAlpha4 (void *dest, int color, size_t size)
 
static void * fb_hPixelCpy2 (void *dest, const void *src, size_t size)
 
static void * fb_hPixelCpy4 (void *dest, const void *src, size_t size)
 
void fb_hSetupFuncs (int bpp)
 

Variables

static void(* fb_hPutPixelSolid )(FB_GFXCTX *ctx, int x, int y, unsigned int color)
 
static void *(* fb_hPixelSetSolid )(void *dest, int color, size_t size)
 
static void(* fb_hPutPixelAlpha )(FB_GFXCTX *ctx, int x, int y, unsigned int color)
 
static void *(* fb_hPixelSetAlpha )(void *dest, int color, size_t size)
 
static unsigned int(* fb_hGetPixel )(struct FB_GFXCTX *ctx, int x, int y)
 

Function Documentation

void fb_hFixCoordsOrder ( int *  x1,
int *  y1,
int *  x2,
int *  y2 
)

Definition at line 188 of file gfx_core.c.

Here is the caller graph for this function:

void fb_hFixRelative ( FB_GFXCTX context,
int  coord_type,
float *  x1,
float *  y1,
float *  x2,
float *  y2 
)

Definition at line 153 of file gfx_core.c.

Here is the caller graph for this function:

FB_GFXCTX* fb_hGetContext ( void  )

Definition at line 40 of file gfx_core.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static unsigned int fb_hGetPixel1 ( FB_GFXCTX ctx,
int  x,
int  y 
)
static

Definition at line 238 of file gfx_core.c.

Here is the caller graph for this function:

static unsigned int fb_hGetPixel2 ( FB_GFXCTX ctx,
int  x,
int  y 
)
static

Definition at line 245 of file gfx_core.c.

Here is the caller graph for this function:

static unsigned int fb_hGetPixel4 ( FB_GFXCTX ctx,
int  x,
int  y 
)
static

Definition at line 252 of file gfx_core.c.

Here is the caller graph for this function:

static void* fb_hPixelCpy2 ( void *  dest,
const void *  src,
size_t  size 
)
static

Definition at line 307 of file gfx_core.c.

Here is the caller graph for this function:

static void* fb_hPixelCpy4 ( void *  dest,
const void *  src,
size_t  size 
)
static

Definition at line 314 of file gfx_core.c.

Here is the caller graph for this function:

static void* fb_hPixelSet2 ( void *  dest,
int  color,
size_t  size 
)
static

Definition at line 259 of file gfx_core.c.

Here is the caller graph for this function:

static void* fb_hPixelSet4 ( void *  dest,
int  color,
size_t  size 
)
static

Definition at line 271 of file gfx_core.c.

Here is the caller graph for this function:

void* fb_hPixelSetAlpha4 ( void *  dest,
int  color,
size_t  size 
)

Definition at line 283 of file gfx_core.c.

Here is the caller graph for this function:

void fb_hPostEvent ( EVENT e)

Definition at line 23 of file gfx_core.c.

Here is the caller graph for this function:

void fb_hPostEvent_code_end ( void  )

Definition at line 36 of file gfx_core.c.

Here is the caller graph for this function:

void fb_hPostEvent_code_start ( void  )

Definition at line 19 of file gfx_core.c.

Here is the caller graph for this function:

void fb_hPrepareTarget ( FB_GFXCTX context,
void *  target 
)

Definition at line 69 of file gfx_core.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void fb_hPutPixel1 ( FB_GFXCTX ctx,
int  x,
int  y,
unsigned int  color 
)
static

Definition at line 199 of file gfx_core.c.

Here is the caller graph for this function:

static void fb_hPutPixel2 ( FB_GFXCTX ctx,
int  x,
int  y,
unsigned int  color 
)
static

Definition at line 206 of file gfx_core.c.

Here is the caller graph for this function:

static void fb_hPutPixel4 ( FB_GFXCTX ctx,
int  x,
int  y,
unsigned int  color 
)
static

Definition at line 213 of file gfx_core.c.

Here is the caller graph for this function:

static void fb_hPutPixelAlpha4 ( FB_GFXCTX ctx,
int  x,
int  y,
unsigned int  color 
)
static

Definition at line 220 of file gfx_core.c.

Here is the caller graph for this function:

void fb_hSetPixelTransfer ( FB_GFXCTX context,
unsigned int  color 
)

Definition at line 118 of file gfx_core.c.

Here is the caller graph for this function:

void fb_hSetupFuncs ( int  bpp)

Definition at line 321 of file gfx_core.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hTranslateCoord ( FB_GFXCTX context,
float  fx,
float  fy,
int *  x,
int *  y 
)

Definition at line 132 of file gfx_core.c.

Here is the caller graph for this function:

Variable Documentation

unsigned int(* fb_hGetPixel)(struct FB_GFXCTX *ctx, int x, int y)
static

Definition at line 9 of file gfx_core.c.

void*(* fb_hPixelSetAlpha)(void *dest, int color, size_t size)
static

Definition at line 8 of file gfx_core.c.

void*(* fb_hPixelSetSolid)(void *dest, int color, size_t size)
static

Definition at line 6 of file gfx_core.c.

void(* fb_hPutPixelAlpha)(FB_GFXCTX *ctx, int x, int y, unsigned int color)
static

Definition at line 7 of file gfx_core.c.

void(* fb_hPutPixelSolid)(FB_GFXCTX *ctx, int x, int y, unsigned int color)
static

Definition at line 5 of file gfx_core.c.