RetroArch
Functions | Variables
vga_gfx.c File Reference
#include <retro_miscellaneous.h>
#include <dpmi.h>
#include <pc.h>
#include "../common/vga_common.h"
#include "../font_driver.h"
#include "../../driver.h"
#include "../../verbosity.h"
Include dependency graph for vga_gfx.c:

Functions

static void vga_set_mode_13h (void)
 
static void vga_return_to_text_mode (void)
 
static void vga_upload_palette (void)
 
static void vga_vsync (void)
 
static void vga_gfx_create (void)
 
static voidvga_gfx_init (const video_info_t *video, const input_driver_t **input, void **input_data)
 
static bool vga_gfx_frame (void *data, const void *frame, unsigned frame_width, unsigned frame_height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
 
static void vga_gfx_set_nonblock_state (void *data, bool toggle)
 
static bool vga_gfx_alive (void *data)
 
static bool vga_gfx_focus (void *data)
 
static bool vga_gfx_suppress_screensaver (void *data, bool enable)
 
static void vga_gfx_free (void *data)
 
static bool vga_gfx_set_shader (void *data, enum rarch_shader_type type, const char *path)
 
static void vga_gfx_set_rotation (void *data, unsigned rotation)
 
static void vga_gfx_viewport_info (void *data, struct video_viewport *vp)
 
static bool vga_gfx_read_viewport (void *data, uint8_t *buffer, bool is_idle)
 
static void vga_set_texture_frame (void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
 
static void vga_set_osd_msg (void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
 
static void vga_gfx_get_poke_interface (void *data, const video_poke_interface_t **iface)
 
void vga_gfx_set_viewport (void *data, unsigned viewport_width, unsigned viewport_height, bool force_full, bool allow_rotate)
 

Variables

static unsigned char * vga_menu_frame = NULL
 
static unsigned char * vga_frame = NULL
 
static unsigned vga_menu_width = 0
 
static unsigned vga_menu_height = 0
 
static unsigned vga_menu_pitch = 0
 
static unsigned vga_menu_bits = 0
 
static unsigned vga_video_width = 0
 
static unsigned vga_video_height = 0
 
static unsigned vga_video_pitch = 0
 
static unsigned vga_video_bits = 0
 
static bool vga_rgb32 = false
 
static const video_poke_interface_t vga_poke_interface
 
video_driver_t video_vga
 

Function Documentation

◆ vga_gfx_alive()

static bool vga_gfx_alive ( void data)
static
Here is the call graph for this function:

◆ vga_gfx_create()

static void vga_gfx_create ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vga_gfx_focus()

static bool vga_gfx_focus ( void data)
static
Here is the call graph for this function:

◆ vga_gfx_frame()

static bool vga_gfx_frame ( void data,
const void frame,
unsigned  frame_width,
unsigned  frame_height,
uint64_t  frame_count,
unsigned  pitch,
const char *  msg,
video_frame_info_t video_info 
)
static
Here is the call graph for this function:

◆ vga_gfx_free()

static void vga_gfx_free ( void data)
static
Here is the call graph for this function:

◆ vga_gfx_get_poke_interface()

static void vga_gfx_get_poke_interface ( void data,
const video_poke_interface_t **  iface 
)
static
Here is the call graph for this function:

◆ vga_gfx_init()

static void* vga_gfx_init ( const video_info_t video,
const input_driver_t **  input,
void **  input_data 
)
static
Here is the call graph for this function:

◆ vga_gfx_read_viewport()

static bool vga_gfx_read_viewport ( void data,
uint8_t buffer,
bool  is_idle 
)
static
Here is the call graph for this function:

◆ vga_gfx_set_nonblock_state()

static void vga_gfx_set_nonblock_state ( void data,
bool  toggle 
)
static
Here is the call graph for this function:

◆ vga_gfx_set_rotation()

static void vga_gfx_set_rotation ( void data,
unsigned  rotation 
)
static
Here is the call graph for this function:

◆ vga_gfx_set_shader()

static bool vga_gfx_set_shader ( void data,
enum rarch_shader_type  type,
const char *  path 
)
static
Here is the call graph for this function:

◆ vga_gfx_set_viewport()

void vga_gfx_set_viewport ( void data,
unsigned  viewport_width,
unsigned  viewport_height,
bool  force_full,
bool  allow_rotate 
)

◆ vga_gfx_suppress_screensaver()

static bool vga_gfx_suppress_screensaver ( void data,
bool  enable 
)
static
Here is the call graph for this function:

◆ vga_gfx_viewport_info()

static void vga_gfx_viewport_info ( void data,
struct video_viewport vp 
)
static
Here is the call graph for this function:

◆ vga_return_to_text_mode()

static void vga_return_to_text_mode ( void  )
static
Here is the caller graph for this function:

◆ vga_set_mode_13h()

static void vga_set_mode_13h ( void  )
static
Here is the caller graph for this function:

◆ vga_set_osd_msg()

static void vga_set_osd_msg ( void data,
video_frame_info_t video_info,
const char *  msg,
const void params,
void font 
)
static
Here is the call graph for this function:

◆ vga_set_texture_frame()

static void vga_set_texture_frame ( void data,
const void frame,
bool  rgb32,
unsigned  width,
unsigned  height,
float  alpha 
)
static
Here is the call graph for this function:

◆ vga_upload_palette()

static void vga_upload_palette ( void  )
static
Here is the caller graph for this function:

◆ vga_vsync()

static void vga_vsync ( void  )
static
Here is the caller graph for this function:

Variable Documentation

◆ vga_frame

unsigned char* vga_frame = NULL
static

◆ vga_menu_bits

unsigned vga_menu_bits = 0
static

◆ vga_menu_frame

unsigned char* vga_menu_frame = NULL
static

◆ vga_menu_height

unsigned vga_menu_height = 0
static

◆ vga_menu_pitch

unsigned vga_menu_pitch = 0
static

◆ vga_menu_width

unsigned vga_menu_width = 0
static

◆ vga_poke_interface

const video_poke_interface_t vga_poke_interface
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static void vga_set_texture_frame(void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
Definition: vga_gfx.c:328
static void vga_set_osd_msg(void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
Definition: vga_gfx.c:384
#define NULL
Pointer to 0.
Definition: gctypes.h:65

◆ vga_rgb32

bool vga_rgb32 = false
static

◆ vga_video_bits

unsigned vga_video_bits = 0
static

◆ vga_video_height

unsigned vga_video_height = 0
static

◆ vga_video_pitch

unsigned vga_video_pitch = 0
static

◆ vga_video_width

unsigned vga_video_width = 0
static

◆ video_vga

video_driver_t video_vga
Initial value:
= {
NULL,
"vga",
NULL,
}
static bool vga_gfx_suppress_screensaver(void *data, bool enable)
Definition: vga_gfx.c:270
void vga_gfx_set_viewport(void *data, unsigned viewport_width, unsigned viewport_height, bool force_full, bool allow_rotate)
Definition: vga_gfx.c:425
static bool vga_gfx_set_shader(void *data, enum rarch_shader_type type, const char *path)
Definition: vga_gfx.c:296
static void vga_gfx_get_poke_interface(void *data, const video_poke_interface_t **iface)
Definition: vga_gfx.c:418
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void * vga_gfx_init(const video_info_t *video, const input_driver_t **input, void **input_data)
Definition: vga_gfx.c:112
static bool vga_gfx_focus(void *data)
Definition: vga_gfx.c:264
static void vga_gfx_free(void *data)
Definition: vga_gfx.c:277
static bool vga_gfx_frame(void *data, const void *frame, unsigned frame_width, unsigned frame_height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
Definition: vga_gfx.c:146
static void vga_gfx_set_nonblock_state(void *data, bool toggle)
Definition: vga_gfx.c:251
static void vga_gfx_viewport_info(void *data, struct video_viewport *vp)
Definition: vga_gfx.c:313
static void vga_gfx_set_rotation(void *data, unsigned rotation)
Definition: vga_gfx.c:306
static bool vga_gfx_alive(void *data)
Definition: vga_gfx.c:257
static bool vga_gfx_read_viewport(void *data, uint8_t *buffer, bool is_idle)
Definition: vga_gfx.c:320