FreeBASIC  0.91.0
fb_gfx.h File Reference
#include "../rtlib/fb.h"
Include dependency graph for fb_gfx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _GFX_CHAR_CELL
 
struct  _EVENT
 
struct  FB_GFXCTX
 
struct  FBGFX
 
struct  GFXDRIVER
 
struct  PALETTE
 
struct  FONT
 
struct  _PUT_HEADER
 

Macros

#define PI   3.1415926535897932384626
 
#define BYTES_PER_PIXEL(d)   (((d) + 7) / 8)
 
#define BPP_MASK(b)   ((int)((1LL << ((b) << 3)) - 1))
 
#define DRIVER_LOCK()   do { fb_GfxLock(); } while (0)
 
#define DRIVER_UNLOCK()   do { fb_GfxUnlock(1, 0); } while (0) /* start_line > end_line so dirty is not modified */
 
#define SET_DIRTY(c, y, h)   { if (__fb_gfx->framebuffer == (c)->line[0]) fb_hMemSet(__fb_gfx->dirty + (y), TRUE, (h)); }
 
#define EVENT_LOCK()   { fb_MutexLock(__fb_gfx->event_mutex); }
 
#define EVENT_UNLOCK()   { fb_MutexUnlock(__fb_gfx->event_mutex); }
 
#define DRIVER_NULL   -1
 
#define DRIVER_FULLSCREEN   0x00000001
 
#define DRIVER_OPENGL   0x00000002
 
#define DRIVER_NO_SWITCH   0x00000004
 
#define DRIVER_NO_FRAME   0x00000008
 
#define DRIVER_SHAPED_WINDOW   0x00000010
 
#define DRIVER_ALWAYS_ON_TOP   0x00000020
 
#define DRIVER_ALPHA_PRIMITIVES   0x00000040
 
#define DRIVER_HIGH_PRIORITY   0x00000080
 
#define DRIVER_OPENGL_OPTIONS   0x000F0000
 
#define HAS_STENCIL_BUFFER   0x00010000
 
#define HAS_ACCUMULATION_BUFFER   0x00020000
 
#define HAS_MULTISAMPLE   0x00040000
 
#define HAS_MMX   0x01000000
 
#define SCREEN_EXIT   0x80000000
 
#define PRINT_SCROLL_WAS_OFF   0x00000004
 
#define ALPHA_PRIMITIVES   0x00000008
 
#define OPENGL_PRIMITIVES   0x00000010
 
#define HIGH_PRIORITY   0x00000020
 
#define QB_COMPATIBILITY   0x10000000
 
#define OPENGL_SUPPORT   0x20000000
 
#define CTX_BUFFER_INIT   0x00000001
 
#define CTX_BUFFER_SET   0x00000002
 
#define CTX_WINDOW_ACTIVE   0x00000004
 
#define CTX_WINDOW_SCREEN   0x00000008
 
#define CTX_VIEWPORT_SET   0x00000010
 
#define CTX_VIEW_SCREEN   0x00000020
 
#define COORD_TYPE_AA   0
 
#define COORD_TYPE_AR   1
 
#define COORD_TYPE_RA   2
 
#define COORD_TYPE_RR   3
 
#define COORD_TYPE_A   4
 
#define COORD_TYPE_R   5
 
#define COORD_TYPE_MASK   0x00000007
 
#define DEFAULT_COLOR_1   0x80000000
 
#define DEFAULT_COLOR_2   0x40000000
 
#define VIEW_SCREEN   0x00000001
 
#define LINE_TYPE_LINE   0
 
#define LINE_TYPE_B   1
 
#define LINE_TYPE_BF   2
 
#define PAINT_TYPE_FILL   0
 
#define PAINT_TYPE_PATTERN   1
 
#define MASK_COLOR_32   0xFF00FF
 
#define MASK_COLOR_16   0xF81F
 
#define MASK_RB_32   0x00FF00FF
 
#define MASK_G_32   0x0000FF00
 
#define MASK_GA_32   0xFF00FF00
 
#define MASK_A_32   0xFF000000
 
#define MASK_RB_16   0xF81F
 
#define MASK_R_16   0xF800
 
#define MASK_G_16   0x07E0
 
#define MASK_B_16   0x001F
 
#define PUT_HEADER_NEW   0x7
 
#define PUT_MODE_TRANS   0
 
#define PUT_MODE_PSET   1
 
#define PUT_MODE_PRESET   2
 
#define PUT_MODE_AND   3
 
#define PUT_MODE_OR   4
 
#define PUT_MODE_XOR   5
 
#define PUT_MODE_ALPHA   6
 
#define PUT_MODE_ADD   7
 
#define PUT_MODE_CUSTOM   8
 
#define PUT_MODE_BLEND   9
 
#define PUT_MODES   10
 
#define WINDOW_TITLE_SIZE   128
 
#define EVENT_KEY_PRESS   1
 
#define EVENT_KEY_RELEASE   2
 
#define EVENT_KEY_REPEAT   3
 
#define EVENT_MOUSE_MOVE   4
 
#define EVENT_MOUSE_BUTTON_PRESS   5
 
#define EVENT_MOUSE_BUTTON_RELEASE   6
 
#define EVENT_MOUSE_DOUBLE_CLICK   7
 
#define EVENT_MOUSE_WHEEL   8
 
#define EVENT_MOUSE_ENTER   9
 
#define EVENT_MOUSE_EXIT   10
 
#define EVENT_WINDOW_GOT_FOCUS   11
 
#define EVENT_WINDOW_LOST_FOCUS   12
 
#define EVENT_WINDOW_CLOSE   13
 
#define EVENT_MOUSE_HWHEEL   14
 
#define MAX_EVENTS   128
 
#define BUTTON_LEFT   0x1
 
#define BUTTON_RIGHT   0x2
 
#define BUTTON_MIDDLE   0x4
 
#define BUTTON_X1   0x8
 
#define BUTTON_X2   0x10
 
#define GET_WINDOW_POS   0
 
#define GET_WINDOW_TITLE   1
 
#define GET_WINDOW_HANDLE   2
 
#define GET_DESKTOP_SIZE   3
 
#define GET_SCREEN_SIZE   4
 
#define GET_SCREEN_DEPTH   5
 
#define GET_SCREEN_BPP   6
 
#define GET_SCREEN_PITCH   7
 
#define GET_SCREEN_REFRESH   8
 
#define GET_DRIVER_NAME   9
 
#define GET_TRANSPARENT_COLOR   10
 
#define GET_VIEWPORT   11
 
#define GET_PEN_POS   12
 
#define GET_COLOR   13
 
#define GET_ALPHA_PRIMITIVES   14
 
#define GET_GL_EXTENSIONS   15
 
#define GET_HIGH_PRIORITY   16
 
#define SET_FIRST_SETTER   100
 
#define SET_WINDOW_POS   100
 
#define SET_WINDOW_TITLE   101
 
#define SET_PEN_POS   102
 
#define SET_DRIVER_NAME   103
 
#define SET_ALPHA_PRIMITIVES   104
 
#define SET_GL_COLOR_BITS   105
 
#define SET_GL_COLOR_RED_BITS   106
 
#define SET_GL_COLOR_GREEN_BITS   107
 
#define SET_GL_COLOR_BLUE_BITS   108
 
#define SET_GL_COLOR_ALPHA_BITS   109
 
#define SET_GL_DEPTH_BITS   110
 
#define SET_GL_STENCIL_BITS   111
 
#define SET_GL_ACCUM_BITS   112
 
#define SET_GL_ACCUM_RED_BITS   113
 
#define SET_GL_ACCUM_GREEN_BITS   114
 
#define SET_GL_ACCUM_BLUE_BITS   115
 
#define SET_GL_ACCUM_ALPHA_BITS   116
 
#define SET_GL_NUM_SAMPLES   117
 
#define POLL_EVENTS   200
 
#define FB_GFX_ACTIVE()   (__fb_gfx!=NULL)
 Returns TRUE if application is in graphics mode. More...
 
#define FB_GFX_GET_CODEPAGE()   437
 Returns the code page as integral value. More...
 
#define FB_GFX_GET_CHARSET()   "CP437"
 Returns the character set as a string. More...
 

Typedefs

typedef void( BLITTER )(unsigned char *, int)
 
typedef FBCALL unsigned int( BLENDER )(unsigned int, unsigned int, void *)
 
typedef void( PUTTER )(unsigned char *, unsigned char *, int, int, int, int, int, BLENDER *, void *)
 
typedef struct _GFX_CHAR_CELL GFX_CHAR_CELL
 
typedef struct _EVENT EVENT
 
typedef struct FB_GFXCTX FB_GFXCTX
 
typedef struct FBGFX FBGFX
 
typedef struct GFXDRIVER GFXDRIVER
 
typedef struct PALETTE PALETTE
 
typedef struct FONT FONT
 
typedef struct _PUT_HEADER PUT_HEADER
 
typedef void(* FBGFX_IMAGE_CONVERT )(const unsigned char *, unsigned char *, int)
 

Enumerations

enum  { FB_FONT_8 = 0, FB_FONT_14, FB_FONT_16, FB_FONT_COUNT }
 
enum  {
  FB_PALETTE_2 = 0, FB_PALETTE_16, FB_PALETTE_64, FB_PALETTE_256,
  FB_PALETTE_COUNT
}
 

Functions

FB_GFXCTXfb_hGetContext (void)
 
void fb_hSetupFuncs (int bpp)
 
void fb_hSetupData (void)
 
FBCALL int fb_hEncode (const unsigned char *in_buffer, ssize_t in_size, unsigned char *out_buffer, ssize_t *out_size)
 
FBCALL int fb_hDecode (const unsigned char *in_buffer, ssize_t in_size, unsigned char *out_buffer, ssize_t *out_size)
 
void fb_hPostEvent (EVENT *e)
 
void fb_hPostKey (int key)
 
BLITTERfb_hGetBlitter (int device_depth, int is_rgb)
 
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)
 
void fb_hPrepareTarget (FB_GFXCTX *ctx, void *target)
 
void fb_hSetPixelTransfer (FB_GFXCTX *ctx, unsigned int color)
 
void fb_hTranslateCoord (FB_GFXCTX *ctx, float fx, float fy, int *x, int *y)
 
void fb_hFixRelative (FB_GFXCTX *ctx, int coord_type, float *x1, float *y1, float *x2, float *y2)
 
void fb_hFixCoordsOrder (int *x1, int *y1, int *x2, int *y2)
 
void fb_hGfxBox (int x1, int y1, int x2, int y2, unsigned int color, int full, unsigned int style)
 
void fb_hScreenInfo (ssize_t *width, ssize_t *height, ssize_t *depth, ssize_t *refresh)
 
void * fb_hMemCpyMMX (void *dest, const void *src, size_t size)
 
void * fb_hMemSetMMX (void *dest, int value, size_t size)
 
void fb_hResetCharCells (FB_GFXCTX *context, int do_alloc)
 
void fb_hClearCharCells (int x1, int y1, int x2, int y2, int page, FB_WCHAR ch, unsigned fg, unsigned bg)
 
void fb_hSoftCursorInit (void)
 
void fb_hSoftCursorExit (void)
 
void fb_hSoftCursorPut (int x, int y)
 
void fb_hSoftCursorUnput (int x, int y)
 
void fb_hSoftCursorPaletteChanged (void)
 
int fb_hColorDistance (int index, int r, int g, int b)
 
void * fb_hPixelSetAlpha4 (void *dest, int color, size_t size)
 
ssize_t fb_hGetWindowHandle (void)
 
FBCALL int fb_GfxScreen (int mode, int depth, int num_pages, int flags, int refresh_rate)
 
FBCALL int fb_GfxScreenQB (int mode, int visible, int active)
 
FBCALL int fb_GfxScreenRes (int width, int height, int depth, int num_pages, int flags, int refresh_rate)
 
FBCALL void fb_GfxScreenInfo (ssize_t *width, ssize_t *height, ssize_t *depth, ssize_t *bpp, ssize_t *pitch, ssize_t *refresh_rate, FBSTRING *driver)
 
FBCALL int fb_GfxScreenList (int depth)
 
FBCALL void * fb_GfxImageCreate (int width, int height, unsigned int color, int depth, int flags)
 
FBCALL void * fb_GfxImageCreateQB (int width, int height, unsigned int color, int depth, int flags)
 
FBCALL void fb_GfxImageDestroy (void *image)
 
FBCALL int fb_GfxImageInfo (void *img, int *width, int *height, int *bpp, int *pitch, void **imgdata, int *size)
 
FBCALL void fb_GfxPalette (int index, int r, int g, int b)
 
FBCALL void fb_GfxPaletteUsing (int *data)
 
FBCALL void fb_GfxPaletteUsing64 (long long *data)
 
FBCALL void fb_GfxPaletteGet (int index, int *r, int *g, int *b)
 
FBCALL void fb_GfxPaletteGet64 (int index, long long *r, long long *g, long long *b)
 
FBCALL void fb_GfxPaletteGetUsing (int *data)
 
FBCALL void fb_GfxPaletteGetUsing64 (long long *data)
 
FBCALL void fb_GfxPset (void *target, float x, float y, unsigned int color, int coord_type, int ispreset)
 
FBCALL int fb_GfxPoint (void *target, float x, float y)
 
FBCALL float fb_GfxPMap (float coord, int func)
 
FBCALL float fb_GfxCursor (int func)
 
FBCALL void fb_GfxView (int x1, int y1, int x2, int y2, unsigned int fill_color, unsigned int border_color, int screen)
 
FBCALL void fb_GfxWindow (float x1, float y1, float x2, float y2, int screen)
 
FBCALL void fb_GfxLine (void *target, float x1, float y1, float x2, float y2, unsigned int color, int type, unsigned int style, int coord_type)
 
FBCALL void fb_GfxEllipse (void *target, float x, float y, float radius, unsigned int color, float aspect, float start, float end, int fill, int coord_type)
 
FBCALL int fb_GfxGet (void *target, float x1, float y1, float x2, float y2, unsigned char *dest, int coord_type, FBARRAY *array)
 
FBCALL int fb_GfxGetQB (void *target, float x1, float y1, float x2, float y2, unsigned char *dest, int coord_type, FBARRAY *array)
 
FBCALL int fb_GfxPut (void *target, float x, float y, unsigned char *src, int x1, int y1, int x2, int y2, int coord_type, int mode, PUTTER *putter, int alpha, BLENDER *blender, void *param)
 
FBCALL int fb_GfxWaitVSync (void)
 
FBCALL void fb_GfxPaint (void *target, float fx, float fy, unsigned int color, unsigned int border_color, FBSTRING *pattern, int mode, int coord_type)
 
FBCALL void fb_GfxDraw (void *target, FBSTRING *command)
 
FBCALL int fb_GfxDrawString (void *target, float fx, float fy, int coord_type, FBSTRING *string, unsigned int color, void *font, int mode, PUTTER *putter, BLENDER *blender, void *param)
 
FBCALL int fb_GfxFlip (int from_page, int to_page)
 
FBCALL void fb_GfxLock (void)
 
FBCALL void fb_GfxUnlock (int start_line, int end_line)
 
FBCALL void * fb_GfxScreenPtr (void)
 
FBCALL void fb_GfxSetWindowTitle (FBSTRING *title)
 
FBCALL int fb_GfxGetJoystick (int id, ssize_t *buttons, float *a1, float *a2, float *a3, float *a4, float *a5, float *a6, float *a7, float *a8)
 
FBCALL int fb_GfxEvent (EVENT *event)
 
FBCALL void fb_GfxControl_s (int what, FBSTRING *param)
 
FBCALL void fb_GfxControl_i (int what, ssize_t *param1, ssize_t *param2, ssize_t *param3, ssize_t *param4)
 
FBCALL int fb_GfxBload (FBSTRING *filename, void *dest, void *pal)
 
FBCALL int fb_GfxBloadQB (FBSTRING *filename, void *dest, void *pal)
 
FBCALL int fb_GfxBsave (FBSTRING *filename, void *src, unsigned int size, void *pal)
 
FBCALL int fb_GfxBsaveEx (FBSTRING *filename, void *src, unsigned int size, void *pal, int bitsperpixel)
 
FBCALL void * fb_GfxGetGLProcAddress (const char *proc)
 
FBCALL int fb_GfxStickQB (int n)
 
FBCALL int fb_GfxStrigQB (int n)
 
int fb_GfxGetkey (void)
 
FBSTRINGfb_GfxInkey (void)
 
int fb_GfxKeyHit (void)
 
int fb_GfxColor (int fg_color, int bg_color, int flags)
 
void fb_GfxClear (int mode)
 
int fb_GfxWidth (int w, int h)
 
int fb_GfxLocateRaw (int y, int x, int cursor)
 
int fb_GfxLocate (int y, int x, int cursor)
 
int fb_GfxGetX (void)
 
int fb_GfxGetY (void)
 
void fb_GfxGetXY (int *col, int *row)
 
void fb_GfxGetSize (int *cols, int *rows)
 
void fb_GfxPrintBuffer (const char *buffer, int mask)
 
void fb_GfxPrintBufferWstr (const FB_WCHAR *buffer, int mask)
 
void fb_GfxPrintBufferEx (const void *buffer, size_t len, int mask)
 
void fb_GfxPrintBufferWstrEx (const FB_WCHAR *buffer, size_t len, int mask)
 
char * fb_GfxReadStr (char *buffer, ssize_t maxlen)
 
int fb_GfxMultikey (int scancode)
 
int fb_GfxGetMouse (int *x, int *y, int *z, int *buttons, int *clip)
 
int fb_GfxSetMouse (int x, int y, int cursor, int clip)
 
int fb_GfxOut (unsigned short port, unsigned char value)
 
int fb_GfxIn (unsigned short port)
 
int fb_GfxLineInput (FBSTRING *text, void *dst, ssize_t dst_len, int fillrem, int addquestion, int addnewline)
 
int fb_GfxLineInputWstr (const FB_WCHAR *text, FB_WCHAR *dst, ssize_t max_chars, int addquestion, int addnewline)
 
unsigned int fb_GfxReadXY (int col, int row, int colorflag)
 
void fb_GfxSleep (int msecs)
 
int fb_GfxIsRedir (int is_input)
 
int fb_GfxPageCopy (int from_page, int to_page)
 
int fb_GfxPageSet (int work_page, int visible_page)
 
void fb_image_convert_8to8 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_8to16 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_8to32 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_24to16 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_24to32 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_32to16 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_32to32 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_24bgrto16 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_24bgrto32 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_32bgrto16 (const unsigned char *src, unsigned char *dest, int w)
 
void fb_image_convert_32bgrto32 (const unsigned char *src, unsigned char *dest, int w)
 
FBCALL void fb_GfxImageConvertRow (const unsigned char *src, int src_bpp, unsigned char *dest, int dst_bpp, int width, int isrgb)
 
void fb_hPutTrans (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 
void fb_hPutPSet (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 
void fb_hPutPReset (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 
void fb_hPutAnd (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 
void fb_hPutOr (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 
void fb_hPutXor (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 
void fb_hPutAlpha (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 
void fb_hPutBlend (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 
void fb_hPutAdd (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 
void fb_hPutCustom (unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
 

Variables

struct _EVENT FBPACKED
 
FBGFX__fb_gfx
 
char * __fb_gfx_driver_name
 
const GFXDRIVER__fb_gfx_drivers_list []
 
const GFXDRIVER __fb_gfxDriverNull
 
void *(* fb_hMemCpy )(void *dest, const void *src, size_t size)
 
void *(* fb_hMemSet )(void *dest, int value, size_t size)
 
void *(* fb_hPixelCpy )(void *dest, const void *src, size_t size)
 
void *(* fb_hPixelSet )(void *dest, int color, size_t size)
 
unsigned int * __fb_color_conv_16to32
 
char * __fb_window_title
 
const FONT __fb_font [FB_FONT_COUNT]
 
const PALETTE __fb_palette [FB_PALETTE_COUNT]
 

Macro Definition Documentation

#define ALPHA_PRIMITIVES   0x00000008

Definition at line 42 of file fb_gfx.h.

#define BPP_MASK (   b)    ((int)((1LL << ((b) << 3)) - 1))

Definition at line 16 of file fb_gfx.h.

#define BUTTON_LEFT   0x1

Definition at line 119 of file fb_gfx.h.

#define BUTTON_MIDDLE   0x4

Definition at line 121 of file fb_gfx.h.

#define BUTTON_RIGHT   0x2

Definition at line 120 of file fb_gfx.h.

#define BUTTON_X1   0x8

Definition at line 122 of file fb_gfx.h.

#define BUTTON_X2   0x10

Definition at line 123 of file fb_gfx.h.

#define BYTES_PER_PIXEL (   d)    (((d) + 7) / 8)

Definition at line 15 of file fb_gfx.h.

#define COORD_TYPE_A   4

Definition at line 59 of file fb_gfx.h.

#define COORD_TYPE_AA   0

Definition at line 55 of file fb_gfx.h.

#define COORD_TYPE_AR   1

Definition at line 56 of file fb_gfx.h.

#define COORD_TYPE_MASK   0x00000007

Definition at line 61 of file fb_gfx.h.

#define COORD_TYPE_R   5

Definition at line 60 of file fb_gfx.h.

#define COORD_TYPE_RA   2

Definition at line 57 of file fb_gfx.h.

#define COORD_TYPE_RR   3

Definition at line 58 of file fb_gfx.h.

#define CTX_BUFFER_INIT   0x00000001

Definition at line 48 of file fb_gfx.h.

#define CTX_BUFFER_SET   0x00000002

Definition at line 49 of file fb_gfx.h.

#define CTX_VIEW_SCREEN   0x00000020

Definition at line 53 of file fb_gfx.h.

#define CTX_VIEWPORT_SET   0x00000010

Definition at line 52 of file fb_gfx.h.

#define CTX_WINDOW_ACTIVE   0x00000004

Definition at line 50 of file fb_gfx.h.

#define CTX_WINDOW_SCREEN   0x00000008

Definition at line 51 of file fb_gfx.h.

#define DEFAULT_COLOR_1   0x80000000

Definition at line 62 of file fb_gfx.h.

#define DEFAULT_COLOR_2   0x40000000

Definition at line 63 of file fb_gfx.h.

#define DRIVER_ALPHA_PRIMITIVES   0x00000040

Definition at line 32 of file fb_gfx.h.

#define DRIVER_ALWAYS_ON_TOP   0x00000020

Definition at line 31 of file fb_gfx.h.

#define DRIVER_FULLSCREEN   0x00000001

Definition at line 26 of file fb_gfx.h.

#define DRIVER_HIGH_PRIORITY   0x00000080

Definition at line 33 of file fb_gfx.h.

#define DRIVER_LOCK ( )    do { fb_GfxLock(); } while (0)

Definition at line 18 of file fb_gfx.h.

#define DRIVER_NO_FRAME   0x00000008

Definition at line 29 of file fb_gfx.h.

#define DRIVER_NO_SWITCH   0x00000004

Definition at line 28 of file fb_gfx.h.

#define DRIVER_NULL   -1

Definition at line 25 of file fb_gfx.h.

#define DRIVER_OPENGL   0x00000002

Definition at line 27 of file fb_gfx.h.

#define DRIVER_OPENGL_OPTIONS   0x000F0000

Definition at line 34 of file fb_gfx.h.

#define DRIVER_SHAPED_WINDOW   0x00000010

Definition at line 30 of file fb_gfx.h.

#define DRIVER_UNLOCK ( )    do { fb_GfxUnlock(1, 0); } while (0) /* start_line > end_line so dirty is not modified */

Definition at line 19 of file fb_gfx.h.

#define EVENT_KEY_PRESS   1

Definition at line 102 of file fb_gfx.h.

#define EVENT_KEY_RELEASE   2

Definition at line 103 of file fb_gfx.h.

#define EVENT_KEY_REPEAT   3

Definition at line 104 of file fb_gfx.h.

#define EVENT_LOCK ( )    { fb_MutexLock(__fb_gfx->event_mutex); }

Definition at line 22 of file fb_gfx.h.

#define EVENT_MOUSE_BUTTON_PRESS   5

Definition at line 106 of file fb_gfx.h.

#define EVENT_MOUSE_BUTTON_RELEASE   6

Definition at line 107 of file fb_gfx.h.

#define EVENT_MOUSE_DOUBLE_CLICK   7

Definition at line 108 of file fb_gfx.h.

#define EVENT_MOUSE_ENTER   9

Definition at line 110 of file fb_gfx.h.

#define EVENT_MOUSE_EXIT   10

Definition at line 111 of file fb_gfx.h.

#define EVENT_MOUSE_HWHEEL   14

Definition at line 115 of file fb_gfx.h.

#define EVENT_MOUSE_MOVE   4

Definition at line 105 of file fb_gfx.h.

#define EVENT_MOUSE_WHEEL   8

Definition at line 109 of file fb_gfx.h.

#define EVENT_UNLOCK ( )    { fb_MutexUnlock(__fb_gfx->event_mutex); }

Definition at line 23 of file fb_gfx.h.

#define EVENT_WINDOW_CLOSE   13

Definition at line 114 of file fb_gfx.h.

#define EVENT_WINDOW_GOT_FOCUS   11

Definition at line 112 of file fb_gfx.h.

#define EVENT_WINDOW_LOST_FOCUS   12

Definition at line 113 of file fb_gfx.h.

#define FB_GFX_ACTIVE ( )    (__fb_gfx!=NULL)

Returns TRUE if application is in graphics mode.

Definition at line 621 of file fb_gfx.h.

#define FB_GFX_GET_CHARSET ( )    "CP437"

Returns the character set as a string.

Definition at line 635 of file fb_gfx.h.

#define FB_GFX_GET_CODEPAGE ( )    437

Returns the code page as integral value.

This function returns the code page as integral value. When the code page cannot be expressed as an integral value (like UTF-8 or UCS-4), it returns -1 and the character set ID should be used instead.

Definition at line 630 of file fb_gfx.h.

#define GET_ALPHA_PRIMITIVES   14

Definition at line 139 of file fb_gfx.h.

#define GET_COLOR   13

Definition at line 138 of file fb_gfx.h.

#define GET_DESKTOP_SIZE   3

Definition at line 128 of file fb_gfx.h.

#define GET_DRIVER_NAME   9

Definition at line 134 of file fb_gfx.h.

#define GET_GL_EXTENSIONS   15

Definition at line 140 of file fb_gfx.h.

#define GET_HIGH_PRIORITY   16

Definition at line 141 of file fb_gfx.h.

#define GET_PEN_POS   12

Definition at line 137 of file fb_gfx.h.

#define GET_SCREEN_BPP   6

Definition at line 131 of file fb_gfx.h.

#define GET_SCREEN_DEPTH   5

Definition at line 130 of file fb_gfx.h.

#define GET_SCREEN_PITCH   7

Definition at line 132 of file fb_gfx.h.

#define GET_SCREEN_REFRESH   8

Definition at line 133 of file fb_gfx.h.

#define GET_SCREEN_SIZE   4

Definition at line 129 of file fb_gfx.h.

#define GET_TRANSPARENT_COLOR   10

Definition at line 135 of file fb_gfx.h.

#define GET_VIEWPORT   11

Definition at line 136 of file fb_gfx.h.

#define GET_WINDOW_HANDLE   2

Definition at line 127 of file fb_gfx.h.

#define GET_WINDOW_POS   0

Definition at line 125 of file fb_gfx.h.

#define GET_WINDOW_TITLE   1

Definition at line 126 of file fb_gfx.h.

#define HAS_ACCUMULATION_BUFFER   0x00020000

Definition at line 36 of file fb_gfx.h.

#define HAS_MMX   0x01000000

Definition at line 39 of file fb_gfx.h.

#define HAS_MULTISAMPLE   0x00040000

Definition at line 37 of file fb_gfx.h.

#define HAS_STENCIL_BUFFER   0x00010000

Definition at line 35 of file fb_gfx.h.

#define HIGH_PRIORITY   0x00000020

Definition at line 44 of file fb_gfx.h.

#define LINE_TYPE_B   1

Definition at line 67 of file fb_gfx.h.

#define LINE_TYPE_BF   2

Definition at line 68 of file fb_gfx.h.

#define LINE_TYPE_LINE   0

Definition at line 66 of file fb_gfx.h.

#define MASK_A_32   0xFF000000

Definition at line 79 of file fb_gfx.h.

#define MASK_B_16   0x001F

Definition at line 84 of file fb_gfx.h.

#define MASK_COLOR_16   0xF81F

Definition at line 74 of file fb_gfx.h.

#define MASK_COLOR_32   0xFF00FF

Definition at line 73 of file fb_gfx.h.

#define MASK_G_16   0x07E0

Definition at line 83 of file fb_gfx.h.

#define MASK_G_32   0x0000FF00

Definition at line 77 of file fb_gfx.h.

#define MASK_GA_32   0xFF00FF00

Definition at line 78 of file fb_gfx.h.

#define MASK_R_16   0xF800

Definition at line 82 of file fb_gfx.h.

#define MASK_RB_16   0xF81F

Definition at line 81 of file fb_gfx.h.

#define MASK_RB_32   0x00FF00FF

Definition at line 76 of file fb_gfx.h.

#define MAX_EVENTS   128

Definition at line 117 of file fb_gfx.h.

#define OPENGL_PRIMITIVES   0x00000010

Definition at line 43 of file fb_gfx.h.

#define OPENGL_SUPPORT   0x20000000

Definition at line 46 of file fb_gfx.h.

#define PAINT_TYPE_FILL   0

Definition at line 70 of file fb_gfx.h.

#define PAINT_TYPE_PATTERN   1

Definition at line 71 of file fb_gfx.h.

#define PI   3.1415926535897932384626

Definition at line 13 of file fb_gfx.h.

#define POLL_EVENTS   200

Definition at line 163 of file fb_gfx.h.

#define PRINT_SCROLL_WAS_OFF   0x00000004

Definition at line 41 of file fb_gfx.h.

#define PUT_HEADER_NEW   0x7

Definition at line 86 of file fb_gfx.h.

#define PUT_MODE_ADD   7

Definition at line 95 of file fb_gfx.h.

#define PUT_MODE_ALPHA   6

Definition at line 94 of file fb_gfx.h.

#define PUT_MODE_AND   3

Definition at line 91 of file fb_gfx.h.

#define PUT_MODE_BLEND   9

Definition at line 97 of file fb_gfx.h.

#define PUT_MODE_CUSTOM   8

Definition at line 96 of file fb_gfx.h.

#define PUT_MODE_OR   4

Definition at line 92 of file fb_gfx.h.

#define PUT_MODE_PRESET   2

Definition at line 90 of file fb_gfx.h.

#define PUT_MODE_PSET   1

Definition at line 89 of file fb_gfx.h.

#define PUT_MODE_TRANS   0

Definition at line 88 of file fb_gfx.h.

#define PUT_MODE_XOR   5

Definition at line 93 of file fb_gfx.h.

#define PUT_MODES   10

Definition at line 98 of file fb_gfx.h.

#define QB_COMPATIBILITY   0x10000000

Definition at line 45 of file fb_gfx.h.

#define SCREEN_EXIT   0x80000000

Definition at line 40 of file fb_gfx.h.

#define SET_ALPHA_PRIMITIVES   104

Definition at line 148 of file fb_gfx.h.

#define SET_DIRTY (   c,
  y,
 
)    { if (__fb_gfx->framebuffer == (c)->line[0]) fb_hMemSet(__fb_gfx->dirty + (y), TRUE, (h)); }

Definition at line 20 of file fb_gfx.h.

#define SET_DRIVER_NAME   103

Definition at line 147 of file fb_gfx.h.

#define SET_FIRST_SETTER   100

Definition at line 143 of file fb_gfx.h.

#define SET_GL_ACCUM_ALPHA_BITS   116

Definition at line 160 of file fb_gfx.h.

#define SET_GL_ACCUM_BITS   112

Definition at line 156 of file fb_gfx.h.

#define SET_GL_ACCUM_BLUE_BITS   115

Definition at line 159 of file fb_gfx.h.

#define SET_GL_ACCUM_GREEN_BITS   114

Definition at line 158 of file fb_gfx.h.

#define SET_GL_ACCUM_RED_BITS   113

Definition at line 157 of file fb_gfx.h.

#define SET_GL_COLOR_ALPHA_BITS   109

Definition at line 153 of file fb_gfx.h.

#define SET_GL_COLOR_BITS   105

Definition at line 149 of file fb_gfx.h.

#define SET_GL_COLOR_BLUE_BITS   108

Definition at line 152 of file fb_gfx.h.

#define SET_GL_COLOR_GREEN_BITS   107

Definition at line 151 of file fb_gfx.h.

#define SET_GL_COLOR_RED_BITS   106

Definition at line 150 of file fb_gfx.h.

#define SET_GL_DEPTH_BITS   110

Definition at line 154 of file fb_gfx.h.

#define SET_GL_NUM_SAMPLES   117

Definition at line 161 of file fb_gfx.h.

#define SET_GL_STENCIL_BITS   111

Definition at line 155 of file fb_gfx.h.

#define SET_PEN_POS   102

Definition at line 146 of file fb_gfx.h.

#define SET_WINDOW_POS   100

Definition at line 144 of file fb_gfx.h.

#define SET_WINDOW_TITLE   101

Definition at line 145 of file fb_gfx.h.

#define VIEW_SCREEN   0x00000001

Definition at line 64 of file fb_gfx.h.

#define WINDOW_TITLE_SIZE   128

Definition at line 100 of file fb_gfx.h.

Typedef Documentation

typedef FBCALL unsigned int( BLENDER)(unsigned int, unsigned int, void *)

Definition at line 166 of file fb_gfx.h.

typedef void( BLITTER)(unsigned char *, int)

Definition at line 165 of file fb_gfx.h.

typedef struct _EVENT EVENT

Definition at line 191 of file fb_gfx.h.

typedef struct FB_GFXCTX FB_GFXCTX
typedef struct FBGFX FBGFX
typedef void(* FBGFX_IMAGE_CONVERT)(const unsigned char *, unsigned char *, int)

Definition at line 592 of file fb_gfx.h.

typedef struct FONT FONT
typedef struct _GFX_CHAR_CELL GFX_CHAR_CELL
typedef struct GFXDRIVER GFXDRIVER
typedef struct PALETTE PALETTE
typedef struct _PUT_HEADER PUT_HEADER

Definition at line 440 of file fb_gfx.h.

typedef void( PUTTER)(unsigned char *, unsigned char *, int, int, int, int, int, BLENDER *, void *)

Definition at line 167 of file fb_gfx.h.

Enumeration Type Documentation

anonymous enum
Enumerator
FB_FONT_8 
FB_FONT_14 
FB_FONT_16 
FB_FONT_COUNT 

Definition at line 455 of file fb_gfx.h.

anonymous enum
Enumerator
FB_PALETTE_2 
FB_PALETTE_16 
FB_PALETTE_64 
FB_PALETTE_256 
FB_PALETTE_COUNT 

Definition at line 463 of file fb_gfx.h.

Function Documentation

FBCALL int fb_GfxBload ( FBSTRING filename,
void *  dest,
void *  pal 
)

Definition at line 533 of file gfx_bload.c.

Here is the call graph for this function:

FBCALL int fb_GfxBloadQB ( FBSTRING filename,
void *  dest,
void *  pal 
)

Definition at line 538 of file gfx_bload.c.

Here is the call graph for this function:

FBCALL int fb_GfxBsave ( FBSTRING filename,
void *  src,
unsigned int  size,
void *  pal 
)

Definition at line 286 of file gfx_bsave.c.

Here is the call graph for this function:

FBCALL int fb_GfxBsaveEx ( FBSTRING filename,
void *  src,
unsigned int  size,
void *  pal,
int  bitsperpixel 
)

Definition at line 218 of file gfx_bsave.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_GfxClear ( int  mode)

Definition at line 7 of file gfx_cls.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxColor ( int  fg_color,
int  bg_color,
int  flags 
)

Definition at line 7 of file gfx_color.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_GfxControl_i ( int  what,
ssize_t *  param1,
ssize_t *  param2,
ssize_t *  param3,
ssize_t *  param4 
)

Definition at line 54 of file gfx_control.c.

Here is the call graph for this function:

FBCALL void fb_GfxControl_s ( int  what,
FBSTRING param 
)

Definition at line 6 of file gfx_control.c.

Here is the call graph for this function:

FBCALL float fb_GfxCursor ( int  func)

Definition at line 50 of file gfx_pmap.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_GfxDraw ( void *  target,
FBSTRING command 
)

Definition at line 37 of file gfx_draw.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_GfxDrawString ( void *  target,
float  fx,
float  fy,
int  coord_type,
FBSTRING string,
unsigned int  color,
void *  font,
int  mode,
PUTTER putter,
BLENDER blender,
void *  param 
)

Definition at line 35 of file gfx_drawstring.c.

Here is the call graph for this function:

FBCALL void fb_GfxEllipse ( void *  target,
float  x,
float  y,
float  radius,
unsigned int  color,
float  aspect,
float  start,
float  end,
int  fill,
int  coord_type 
)

Definition at line 110 of file gfx_circle.c.

Here is the call graph for this function:

FBCALL int fb_GfxEvent ( EVENT event)

Definition at line 7 of file gfx_event.c.

FBCALL int fb_GfxFlip ( int  from_page,
int  to_page 
)

Definition at line 7 of file gfx_page.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_GfxGet ( void *  target,
float  x1,
float  y1,
float  x2,
float  y2,
unsigned char *  dest,
int  coord_type,
FBARRAY array 
)

Definition at line 70 of file gfx_get.c.

Here is the call graph for this function:

FBCALL void* fb_GfxGetGLProcAddress ( const char *  proc)

Definition at line 38 of file gfx_opengl.c.

Here is the call graph for this function:

FBCALL int fb_GfxGetJoystick ( int  id,
ssize_t *  buttons,
float *  a1,
float *  a2,
float *  a3,
float *  a4,
float *  a5,
float *  a6,
float *  a7,
float *  a8 
)

Definition at line 24 of file gfx_joystick.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxGetkey ( void  )

Definition at line 60 of file gfx_inkey.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxGetMouse ( int *  x,
int *  y,
int *  z,
int *  buttons,
int *  clip 
)

Definition at line 7 of file gfx_getmouse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_GfxGetQB ( void *  target,
float  x1,
float  y1,
float  x2,
float  y2,
unsigned char *  dest,
int  coord_type,
FBARRAY array 
)

Definition at line 76 of file gfx_get.c.

Here is the call graph for this function:

void fb_GfxGetSize ( int *  cols,
int *  rows 
)

Definition at line 312 of file gfx_print.c.

Here is the caller graph for this function:

int fb_GfxGetX ( void  )

Definition at line 293 of file gfx_print.c.

Here is the caller graph for this function:

void fb_GfxGetXY ( int *  col,
int *  row 
)

Definition at line 303 of file gfx_print.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxGetY ( void  )

Definition at line 298 of file gfx_print.c.

Here is the caller graph for this function:

FBCALL void fb_GfxImageConvertRow ( const unsigned char *  src,
int  src_bpp,
unsigned char *  dest,
int  dst_bpp,
int  width,
int  isrgb 
)

Definition at line 137 of file gfx_image_convert.c.

Here is the call graph for this function:

FBCALL void* fb_GfxImageCreate ( int  width,
int  height,
unsigned int  color,
int  depth,
int  flags 
)

Definition at line 79 of file gfx_image.c.

Here is the call graph for this function:

FBCALL void* fb_GfxImageCreateQB ( int  width,
int  height,
unsigned int  color,
int  depth,
int  flags 
)

Definition at line 84 of file gfx_image.c.

Here is the call graph for this function:

FBCALL void fb_GfxImageDestroy ( void *  image)

Definition at line 89 of file gfx_image.c.

FBCALL int fb_GfxImageInfo ( void *  img,
int *  width,
int *  height,
int *  bpp,
int *  pitch,
void **  imgdata,
int *  size 
)

Definition at line 6 of file gfx_image_info.c.

Here is the call graph for this function:

int fb_GfxIn ( unsigned short  port)

Definition at line 7 of file gfx_vgaemu.c.

Here is the caller graph for this function:

FBSTRING* fb_GfxInkey ( void  )

Definition at line 87 of file gfx_inkey.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxIsRedir ( int  is_input)

Definition at line 101 of file gfx_inkey.c.

Here is the caller graph for this function:

int fb_GfxKeyHit ( void  )

Definition at line 74 of file gfx_inkey.c.

Here is the caller graph for this function:

FBCALL void fb_GfxLine ( void *  target,
float  x1,
float  y1,
float  x2,
float  y2,
unsigned int  color,
int  type,
unsigned int  style,
int  coord_type 
)

Definition at line 92 of file gfx_line.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxLineInput ( FBSTRING text,
void *  dst,
ssize_t  dst_len,
int  fillrem,
int  addquestion,
int  addnewline 
)

Definition at line 8 of file gfx_lineinp.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxLineInputWstr ( const FB_WCHAR text,
FB_WCHAR dst,
ssize_t  max_chars,
int  addquestion,
int  addnewline 
)

Definition at line 6 of file gfx_lineinp_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxLocate ( int  y,
int  x,
int  cursor 
)

Definition at line 284 of file gfx_print.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxLocateRaw ( int  y,
int  x,
int  cursor 
)

Definition at line 275 of file gfx_print.c.

Here is the caller graph for this function:

FBCALL void fb_GfxLock ( void  )

Definition at line 7 of file gfx_access.c.

int fb_GfxMultikey ( int  scancode)

Definition at line 7 of file gfx_multikey.c.

Here is the caller graph for this function:

int fb_GfxOut ( unsigned short  port,
unsigned char  value 
)

Definition at line 38 of file gfx_vgaemu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxPageCopy ( int  from_page,
int  to_page 
)

Definition at line 77 of file gfx_page.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_GfxPageSet ( int  work_page,
int  visible_page 
)

Definition at line 83 of file gfx_page.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_GfxPaint ( void *  target,
float  fx,
float  fy,
unsigned int  color,
unsigned int  border_color,
FBSTRING pattern,
int  mode,
int  coord_type 
)

Definition at line 43 of file gfx_paint.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_GfxPalette ( int  index,
int  r,
int  g,
int  b 
)

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:

FBCALL void fb_GfxPaletteGet ( int  index,
int *  r,
int *  g,
int *  b 
)

Definition at line 5 of file gfx_paletteget.c.

FBCALL void fb_GfxPaletteGet64 ( int  index,
long long *  r,
long long *  g,
long long *  b 
)

Definition at line 5 of file gfx_paletteget64.c.

FBCALL void fb_GfxPaletteGetUsing ( int *  data)

Definition at line 5 of file gfx_palettegetusing.c.

FBCALL void fb_GfxPaletteGetUsing64 ( long long *  data)

Definition at line 5 of file gfx_palettegetusing64.c.

FBCALL void fb_GfxPaletteUsing ( int *  data)

Definition at line 3 of file gfx_paletteusing.c.

Here is the call graph for this function:

FBCALL void fb_GfxPaletteUsing64 ( long long *  data)

Definition at line 3 of file gfx_paletteusing64.c.

Here is the call graph for this function:

FBCALL float fb_GfxPMap ( float  coord,
int  func 
)

Definition at line 7 of file gfx_pmap.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_GfxPoint ( void *  target,
float  x,
float  y 
)

Definition at line 7 of file gfx_point.c.

Here is the call graph for this function:

void fb_GfxPrintBuffer ( const char *  buffer,
int  mask 
)

Definition at line 270 of file gfx_print.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_GfxPrintBufferEx ( const void *  buffer,
size_t  len,
int  mask 
)

Definition at line 201 of file gfx_print.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_GfxPrintBufferWstr ( const FB_WCHAR buffer,
int  mask 
)

Definition at line 19 of file gfx_print_wstr.c.

Here is the call graph for this function:

void fb_GfxPrintBufferWstrEx ( const FB_WCHAR buffer,
size_t  len,
int  mask 
)

Definition at line 5 of file gfx_print_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_GfxPset ( void *  target,
float  x,
float  y,
unsigned int  color,
int  coord_type,
int  ispreset 
)

Definition at line 7 of file gfx_pset.c.

Here is the call graph for this function:

FBCALL int fb_GfxPut ( void *  target,
float  x,
float  y,
unsigned char *  src,
int  x1,
int  y1,
int  x2,
int  y2,
int  coord_type,
int  mode,
PUTTER putter,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 47 of file gfx_put.c.

Here is the call graph for this function:

char* fb_GfxReadStr ( char *  buffer,
ssize_t  maxlen 
)

Definition at line 16 of file gfx_readstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int fb_GfxReadXY ( int  col,
int  row,
int  colorflag 
)

Definition at line 7 of file gfx_readxy.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_GfxScreen ( int  mode,
int  depth,
int  num_pages,
int  flags,
int  refresh_rate 
)

Definition at line 370 of file gfx_screen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_GfxScreenInfo ( ssize_t *  width,
ssize_t *  height,
ssize_t *  depth,
ssize_t *  bpp,
ssize_t *  pitch,
ssize_t *  refresh_rate,
FBSTRING driver 
)

Definition at line 6 of file gfx_screeninfo.c.

Here is the call graph for this function:

FBCALL int fb_GfxScreenList ( int  depth)

Definition at line 49 of file gfx_screenlist.c.

Here is the call graph for this function:

FBCALL void* fb_GfxScreenPtr ( void  )

Definition at line 42 of file gfx_access.c.

Here is the call graph for this function:

FBCALL int fb_GfxScreenQB ( int  mode,
int  visible,
int  active 
)

Definition at line 418 of file gfx_screen.c.

Here is the call graph for this function:

FBCALL int fb_GfxScreenRes ( int  width,
int  height,
int  depth,
int  num_pages,
int  flags,
int  refresh_rate 
)

Definition at line 432 of file gfx_screen.c.

Here is the call graph for this function:

int fb_GfxSetMouse ( int  x,
int  y,
int  cursor,
int  clip 
)

Definition at line 7 of file gfx_setmouse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_GfxSetWindowTitle ( FBSTRING title)

Definition at line 473 of file gfx_screen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_GfxSleep ( int  msecs)

Definition at line 8 of file gfx_sleep.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_GfxStickQB ( int  n)

Definition at line 11 of file gfx_stick.c.

Here is the call graph for this function:

FBCALL int fb_GfxStrigQB ( int  n)

Definition at line 53 of file gfx_stick.c.

Here is the call graph for this function:

FBCALL void fb_GfxUnlock ( int  start_line,
int  end_line 
)

Definition at line 20 of file gfx_access.c.

Here is the call graph for this function:

FBCALL void fb_GfxView ( int  x1,
int  y1,
int  x2,
int  y2,
unsigned int  fill_color,
unsigned int  border_color,
int  screen 
)

Definition at line 7 of file gfx_view.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_GfxWaitVSync ( void  )

Definition at line 6 of file gfx_vsync.c.

Here is the call graph for this function:

int fb_GfxWidth ( int  w,
int  h 
)

Definition at line 5 of file gfx_width.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_GfxWindow ( float  x1,
float  y1,
float  x2,
float  y2,
int  screen 
)

Definition at line 7 of file gfx_window.c.

Here is the call graph for this function:

void fb_hClearCharCells ( int  x1,
int  y1,
int  x2,
int  y2,
int  page,
FB_WCHAR  ch,
unsigned  fg,
unsigned  bg 
)

Definition at line 144 of file gfx_screen.c.

Here is the caller graph for this function:

int fb_hColorDistance ( int  index,
int  r,
int  g,
int  b 
)

Definition at line 77 of file gfx_softcursor.c.

Here is the caller graph for this function:

FBCALL int fb_hDecode ( const unsigned char *  in_buffer,
ssize_t  in_size,
unsigned char *  out_buffer,
ssize_t *  out_size 
)

Definition at line 25 of file gfx_lzw.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_hEncode ( const unsigned char *  in_buffer,
ssize_t  in_size,
unsigned char *  out_buffer,
ssize_t *  out_size 
)

Definition at line 24 of file gfx_lzw_enc.c.

Here is the call 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:

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 ctx,
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:

BLITTER* fb_hGetBlitter ( int  device_depth,
int  is_rgb 
)

Definition at line 782 of file gfx_blitter.c.

Here is the call graph for this function:

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:

ssize_t fb_hGetWindowHandle ( void  )

Definition at line 673 of file gfx_dos.c.

Here is the caller graph for this function:

void fb_hGfxBox ( int  x1,
int  y1,
int  x2,
int  y2,
unsigned int  color,
int  full,
unsigned int  style 
)

Definition at line 10 of file gfx_box.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_hMemCpyMMX ( void *  dest,
const void *  src,
size_t  size 
)

Here is the caller graph for this function:

void* fb_hMemSetMMX ( void *  dest,
int  value,
size_t  size 
)

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_hPostKey ( int  key)

Definition at line 24 of file gfx_inkey.c.

Here is the caller graph for this function:

void fb_hPrepareTarget ( FB_GFXCTX ctx,
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:

void fb_hPutAdd ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 93 of file gfx_put_add.c.

Here is the call graph for this function:

void fb_hPutAlpha ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 47 of file gfx_put_alpha.c.

Here is the call graph for this function:

void fb_hPutAnd ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 44 of file gfx_put_and.c.

Here is the call graph for this function:

void fb_hPutBlend ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 106 of file gfx_put_blend.c.

Here is the call graph for this function:

void fb_hPutCustom ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 78 of file gfx_put_custom.c.

Here is the call graph for this function:

void fb_hPutOr ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 44 of file gfx_put_or.c.

Here is the call graph for this function:

void fb_hPutPReset ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 43 of file gfx_put_preset.c.

Here is the call graph for this function:

void fb_hPutPSet ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 27 of file gfx_put_pset.c.

Here is the call graph for this function:

void fb_hPutTrans ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 85 of file gfx_put_trans.c.

void fb_hPutXor ( unsigned char *  src,
unsigned char *  dest,
int  w,
int  h,
int  src_pitch,
int  dest_pitch,
int  alpha,
BLENDER blender,
void *  param 
)

Definition at line 44 of file gfx_put_xor.c.

Here is the call graph for this function:

void fb_hResetCharCells ( FB_GFXCTX context,
int  do_alloc 
)

Definition at line 109 of file gfx_screen.c.

Here is the call graph for this function:

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_hScreenInfo ( ssize_t *  width,
ssize_t *  height,
ssize_t *  depth,
ssize_t *  refresh 
)

Definition at line 665 of file gfx_dos.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:

void fb_hSetPixelTransfer ( FB_GFXCTX ctx,
unsigned int  color 
)

Definition at line 118 of file gfx_core.c.

Here is the caller graph for this function:

void fb_hSetupData ( void  )

Definition at line 26 of file gfx_data.c.

Here is the call graph for this function:

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_hSoftCursorExit ( void  )

Definition at line 106 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hSoftCursorInit ( void  )

Definition at line 86 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hSoftCursorPaletteChanged ( void  )

Definition at line 161 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hSoftCursorPut ( int  x,
int  y 
)

Definition at line 116 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hSoftCursorUnput ( int  x,
int  y 
)

Definition at line 153 of file gfx_softcursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hTranslateCoord ( FB_GFXCTX ctx,
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:

void fb_image_convert_24bgrto16 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 97 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_24bgrto32 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 108 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_24to16 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 47 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_24to32 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 58 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_32bgrto16 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 119 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_32bgrto32 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 131 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_32to16 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 69 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_32to32 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 83 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_8to16 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 16 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_8to32 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 32 of file gfx_image_convert.c.

Here is the caller graph for this function:

void fb_image_convert_8to8 ( const unsigned char *  src,
unsigned char *  dest,
int  w 
)

Definition at line 8 of file gfx_image_convert.c.

Here is the caller graph for this function:

Variable Documentation

unsigned int* __fb_color_conv_16to32

Definition at line 10 of file gfx_vars.c.

const FONT __fb_font[FB_FONT_COUNT]

Definition at line 10 of file gfx_data.c.

FBGFX* __fb_gfx

Definition at line 5 of file gfx_vars.c.

char* __fb_gfx_driver_name

Definition at line 12 of file gfx_vars.c.

const GFXDRIVER* __fb_gfx_drivers_list[]

Definition at line 18 of file gfx_dos.c.

const GFXDRIVER __fb_gfxDriverNull

Definition at line 8 of file gfx_driver_null.c.

const PALETTE __fb_palette[FB_PALETTE_COUNT]

Definition at line 18 of file gfx_data.c.

char* __fb_window_title

Definition at line 11 of file gfx_vars.c.

void*(* fb_hMemCpy)(void *dest, const void *src, size_t size)

Definition at line 6 of file gfx_vars.c.

void*(* fb_hMemSet)(void *dest, int value, size_t size)

Definition at line 7 of file gfx_vars.c.

void*(* fb_hPixelCpy)(void *dest, const void *src, size_t size)

Definition at line 8 of file gfx_vars.c.

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

Definition at line 9 of file gfx_vars.c.

struct _PUT_HEADER FBPACKED