FreeBASIC  0.91.0
gfx_driver.c File Reference
#include "../fb_gfx.h"
#include <hal/xbox.h>
#include <hal/video.h>
#include <hal/input.h>
Include dependency graph for gfx_driver.c:

Go to the source code of this file.

Macros

#define SCREENLIST(w, h)   ((h) | (w) << 16)
 
#define JOYPOS(pos, min, max)   (((((float)(pos) - (float)(min)) * 2.0) / ((float)(max) - (float)(min) + 1.0)) - 1.0)
 

Functions

static void __stdcall driver_update (void *param1, void *param2)
 
static int driver_init (char *title, int w, int h, int depth_arg, int refresh_rate, int flags)
 
static void driver_exit (void)
 
static void driver_lock (void)
 
static void driver_unlock (void)
 
static void driver_set_palette (int index, int r, int g, int b)
 
static void driver_wait_vsync (void)
 
static int driver_get_mouse (int *x, int *y, int *z, int *buttons)
 
static void driver_set_mouse (int x, int y, int cursor)
 
static int * driver_fetch_modes (int depth, int *size)
 
static void driver_poll_events (void)
 
void fb_hScreenInfo (ssize_t *width, ssize_t *height, ssize_t *depth, ssize_t *refresh)
 
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)
 

Variables

static BLITTERblitter
 
static void * framebuffer
 
static volatile int quitting
 
static const GFXDRIVER fb_gfxDriverXbox
 
const GFXDRIVER__fb_gfx_drivers_list []
 

Macro Definition Documentation

#define JOYPOS (   pos,
  min,
  max 
)    (((((float)(pos) - (float)(min)) * 2.0) / ((float)(max) - (float)(min) + 1.0)) - 1.0)

Definition at line 9 of file gfx_driver.c.

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

Definition at line 8 of file gfx_driver.c.

Function Documentation

static void driver_exit ( void  )
static

Definition at line 62 of file gfx_driver.c.

static int* driver_fetch_modes ( int  depth,
int *  size 
)
static

Definition at line 108 of file gfx_driver.c.

static int driver_get_mouse ( int *  x,
int *  y,
int *  z,
int *  buttons 
)
static

Definition at line 96 of file gfx_driver.c.

static int driver_init ( char *  title,
int  w,
int  h,
int  depth_arg,
int  refresh_rate,
int  flags 
)
static

Definition at line 32 of file gfx_driver.c.

Here is the call graph for this function:

static void driver_lock ( void  )
static

Definition at line 72 of file gfx_driver.c.

static void driver_poll_events ( void  )
static

Definition at line 132 of file gfx_driver.c.

static void driver_set_mouse ( int  x,
int  y,
int  cursor 
)
static

Definition at line 102 of file gfx_driver.c.

static void driver_set_palette ( int  index,
int  r,
int  g,
int  b 
)
static

Definition at line 84 of file gfx_driver.c.

static void driver_unlock ( void  )
static

Definition at line 78 of file gfx_driver.c.

static void __stdcall driver_update ( void *  param1,
void *  param2 
)
static

Definition at line 16 of file gfx_driver.c.

Here is the caller graph for this function:

static void driver_wait_vsync ( void  )
static

Definition at line 90 of file gfx_driver.c.

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 176 of file gfx_driver.c.

Here is the call graph for this function:

void fb_hScreenInfo ( ssize_t *  width,
ssize_t *  height,
ssize_t *  depth,
ssize_t *  refresh 
)

Definition at line 162 of file gfx_driver.c.

Variable Documentation

const GFXDRIVER* __fb_gfx_drivers_list[]
Initial value:

Definition at line 156 of file gfx_driver.c.

BLITTER* blitter
static

Definition at line 11 of file gfx_driver.c.

void* framebuffer
static

Definition at line 12 of file gfx_driver.c.

volatile int quitting
static

Definition at line 13 of file gfx_driver.c.