Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Functions | Variables
osd.c File Reference
#include "xemu/osd_font_16x16.c"
Include dependency graph for osd.c:

Go to the source code of this file.

Functions

void osd_clear_with_colour (const int index)
 
void osd_clear (void)
 
void osd_texture_update (const SDL_Rect *rect)
 
int osd_init (int xsize, int ysize, const Uint8 *palette, int palette_entries, int fade_dec, int fade_end)
 
int osd_init_with_defaults (void)
 
void osd_on (int value)
 
void osd_off (void)
 
void osd_global_enable (int status)
 
void osd_set_colours (int fg_index, int bg_index)
 
void osd_write_char (int x, int y, char ch)
 
void osd_write_string (int x, int y, const char *s)
 
void osd_hijack (void(*updater)(void), int *xsize_ptr, int *ysize_ptr, Uint32 **pixel_ptr)
 

Variables

int osd_status = 0
 
int osd_notifications_enabled = 1
 
void(* osd_update_callback )(void) = NULL
 

Function Documentation

◆ osd_clear()

void osd_clear ( void  )

Definition at line 78 of file osd.c.

Here is the caller graph for this function:

◆ osd_clear_with_colour()

void osd_clear_with_colour ( const int  index)

Definition at line 68 of file osd.c.

◆ osd_global_enable()

void osd_global_enable ( int  status)

Definition at line 166 of file osd.c.

◆ osd_hijack()

void osd_hijack ( void(*)(void)  updater,
int *  xsize_ptr,
int *  ysize_ptr,
Uint32 **  pixel_ptr 
)

Definition at line 234 of file osd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ osd_init()

int osd_init ( int  xsize,
int  ysize,
const Uint8 palette,
int  palette_entries,
int  fade_dec,
int  fade_end 
)

Definition at line 96 of file osd.c.

◆ osd_init_with_defaults()

int osd_init_with_defaults ( void  )

Definition at line 131 of file osd.c.

◆ osd_off()

void osd_off ( void  )

Definition at line 159 of file osd.c.

◆ osd_on()

void osd_on ( int  value)

Definition at line 149 of file osd.c.

Here is the caller graph for this function:

◆ osd_set_colours()

void osd_set_colours ( int  fg_index,
int  bg_index 
)

Definition at line 175 of file osd.c.

◆ osd_texture_update()

void osd_texture_update ( const SDL_Rect *  rect)

Definition at line 87 of file osd.c.

◆ osd_write_char()

void osd_write_char ( int  x,
int  y,
char  ch 
)

Definition at line 183 of file osd.c.

◆ osd_write_string()

void osd_write_string ( int  x,
int  y,
const char *  s 
)

Definition at line 211 of file osd.c.

Here is the call graph for this function:

Variable Documentation

◆ alpha_last

int alpha_last

Definition at line 31 of file osd.c.

◆ available

int available

Definition at line 29 of file osd.c.

◆ colour_bg

Uint32 colour_bg

Definition at line 35 of file osd.c.

◆ colour_fg

Uint32 colour_fg

Definition at line 34 of file osd.c.

◆ colours

Uint32 colours[16]

Definition at line 32 of file osd.c.

◆ enabled

int enabled

Definition at line 29 of file osd.c.

◆ fade_dec

int fade_dec

Definition at line 31 of file osd.c.

◆ fade_end

int fade_end

Definition at line 31 of file osd.c.

◆ osd_notifications_enabled

int osd_notifications_enabled = 1

Definition at line 24 of file osd.c.

◆ osd_status

int osd_status = 0

Definition at line 23 of file osd.c.

◆ osd_update_callback

void(* osd_update_callback) (void) = NULL

Definition at line 25 of file osd.c.

◆ pixels

Uint32* pixels

Definition at line 33 of file osd.c.

◆ tex

SDL_Texture* tex

Definition at line 36 of file osd.c.

◆ xsize

int xsize

Definition at line 30 of file osd.c.

◆ ysize

int ysize

Definition at line 30 of file osd.c.