FreeBASIC  0.91.0
fb_gfx_dos.h File Reference
#include <dpmi.h>
#include "vesa.h"
Include dependency graph for fb_gfx_dos.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fb_dos_pal_t
 
struct  fb_dos_t
 

Macros

#define MASK_LINEAR(addr)   ((addr) & 0x000FFFFF)
 
#define RM_TO_LINEAR(addr)   ((((addr) & 0xFFFF0000) >> 12) + ((addr) & 0xFFFF))
 
#define RM_OFFSET(addr)   ((addr) & 0xF)
 
#define RM_SEGMENT(addr)   (((addr) >> 4) & 0xFFFF)
 
#define SEGOFF_TO_RM(s, o)   (((s) << 4) + (o))
 
#define SCREENLIST(w, h)   ((h) | (w) << 16)
 

Typedefs

typedef struct fb_dos_pal_t fb_dos_pal_t
 
typedef struct fb_dos_t fb_dos_t
 

Functions

int fb_dos_get_mouse (int *x, int *y, int *z, int *buttons, int *clip)
 
void fb_dos_set_mouse (int x, int y, int cursor, int clip)
 
int fb_dos_update_mouse (void)
 
void fb_dos_vga_wait_vsync (void)
 
void fb_dos_vga_set_palette (void)
 
void fb_dos_vesa_detect (void)
 
int fb_dos_vesa_set_mode (int w, int h, int depth, int linear)
 
int * fb_dos_vesa_fetch_modes (int depth, int *size)
 
void vesa_get_pm_functions (void)
 
void fb_dos_vesa_set_palette (void)
 
void fb_dos_vesa_set_palette_end (void)
 
void fb_dos_set_palette (int idx, int r, int g, int b)
 
void fb_dos_detect (void)
 
int fb_dos_init (char *title, int w, int h, int depth, int refresh_rate, int flags)
 
void fb_dos_exit (void)
 
void fb_dos_set_window_title (char *title)
 
void fb_dos_lock (void)
 
void fb_dos_unlock (void)
 

Variables

fb_dos_t fb_dos
 
VesaPMInfofb_dos_vesa_pm_info
 
intptr_t fb_dos_vesa_pm_bank_switcher
 
intptr_t fb_dos_vesa_pm_set_palette
 

Macro Definition Documentation

#define MASK_LINEAR (   addr)    ((addr) & 0x000FFFFF)

Definition at line 8 of file fb_gfx_dos.h.

#define RM_OFFSET (   addr)    ((addr) & 0xF)

Definition at line 10 of file fb_gfx_dos.h.

#define RM_SEGMENT (   addr)    (((addr) >> 4) & 0xFFFF)

Definition at line 11 of file fb_gfx_dos.h.

#define RM_TO_LINEAR (   addr)    ((((addr) & 0xFFFF0000) >> 12) + ((addr) & 0xFFFF))

Definition at line 9 of file fb_gfx_dos.h.

#define SCREENLIST (   w,
 
)    ((h) | (w) << 16)

Definition at line 14 of file fb_gfx_dos.h.

#define SEGOFF_TO_RM (   s,
  o 
)    (((s) << 4) + (o))

Definition at line 12 of file fb_gfx_dos.h.

Typedef Documentation

typedef struct fb_dos_pal_t fb_dos_pal_t
typedef struct fb_dos_t fb_dos_t

Function Documentation

void fb_dos_detect ( void  )

Definition at line 470 of file gfx_dos.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_dos_exit ( void  )

Definition at line 570 of file gfx_dos.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 266 of file gfx_dos.c.

int fb_dos_init ( char *  title,
int  w,
int  h,
int  depth,
int  refresh_rate,
int  flags 
)

Definition at line 494 of file gfx_dos.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_dos_lock ( void  )

Definition at line 633 of file gfx_dos.c.

void fb_dos_set_mouse ( int  x,
int  y,
int  cursor,
int  clip 
)

Definition at line 279 of file gfx_dos.c.

Here is the caller graph for this function:

void fb_dos_set_palette ( int  idx,
int  r,
int  g,
int  b 
)

Definition at line 436 of file gfx_dos.c.

void fb_dos_set_window_title ( char *  title)

Definition at line 646 of file gfx_dos.c.

void fb_dos_unlock ( void  )

Definition at line 641 of file gfx_dos.c.

int fb_dos_update_mouse ( void  )
void fb_dos_vesa_detect ( void  )

Definition at line 95 of file gfx_vesa_core.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int* fb_dos_vesa_fetch_modes ( int  depth,
int *  size 
)

Definition at line 246 of file gfx_vesa_core.c.

Here is the call graph for this function:

int fb_dos_vesa_set_mode ( int  w,
int  h,
int  depth,
int  linear 
)

Definition at line 168 of file gfx_vesa_core.c.

Here is the caller graph for this function:

void fb_dos_vesa_set_palette ( void  )

Definition at line 345 of file gfx_vesa_core.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_dos_vesa_set_palette_end ( void  )

Definition at line 350 of file gfx_vesa_core.c.

Here is the caller graph for this function:

void fb_dos_vga_set_palette ( void  )

Definition at line 446 of file gfx_dos.c.

Here is the caller graph for this function:

void fb_dos_vga_wait_vsync ( void  )

Definition at line 464 of file gfx_dos.c.

void vesa_get_pm_functions ( void  )

Definition at line 16 of file gfx_vesa_core.c.

Here is the caller graph for this function:

Variable Documentation

fb_dos_t fb_dos

Definition at line 27 of file gfx_dos.c.

intptr_t fb_dos_vesa_pm_bank_switcher

Definition at line 11 of file gfx_vesa_core.c.

VesaPMInfo* fb_dos_vesa_pm_info

Definition at line 10 of file gfx_vesa_core.c.

intptr_t fb_dos_vesa_pm_set_palette

Definition at line 12 of file gfx_vesa_core.c.