RetroArch
Classes | Macros | Typedefs | Functions | Variables
gdi_ctx.c File Reference
#include <string.h>
#include <math.h>
#include <windows.h>
#include <commdlg.h>
#include <string/stdstring.h>
#include "../../configuration.h"
#include "../../dynamic.h"
#include "../../verbosity.h"
#include "../video_driver.h"
#include "../common/win32_common.h"
Include dependency graph for gdi_ctx.c:

Classes

struct  gfx_ctx_gdi_data
 

Macros

#define _WIN32_WINNT   0x0500 /*_WIN32_WINNT_WIN2K */
 

Typedefs

typedef struct gfx_ctx_gdi_data gfx_ctx_gdi_data_t
 

Functions

static void setup_gdi_pixel_format (HDC hdc)
 
static void gfx_ctx_gdi_check_window (void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
 
static bool gfx_ctx_gdi_set_resize (void *data, unsigned width, unsigned height)
 
static void gfx_ctx_gdi_update_window_title (void *data, void *data2)
 
static void gfx_ctx_gdi_get_video_size (void *data, unsigned *width, unsigned *height)
 
static voidgfx_ctx_gdi_init (video_frame_info_t *video_info, void *video_driver)
 
static void gfx_ctx_gdi_destroy (void *data)
 
static bool gfx_ctx_gdi_set_video_mode (void *data, video_frame_info_t *video_info, unsigned width, unsigned height, bool fullscreen)
 
static void gfx_ctx_gdi_input_driver (void *data, const char *joypad_name, const input_driver_t **input, void **input_data)
 
static bool gfx_ctx_gdi_has_focus (void *data)
 
static bool gfx_ctx_gdi_suppress_screensaver (void *data, bool enable)
 
static bool gfx_ctx_gdi_has_windowed (void *data)
 
static bool gfx_ctx_gdi_get_metrics (void *data, enum display_metric_types type, float *value)
 
static enum gfx_ctx_api gfx_ctx_gdi_get_api (void *data)
 
static bool gfx_ctx_gdi_bind_api (void *data, enum gfx_ctx_api api, unsigned major, unsigned minor)
 
static void gfx_ctx_gdi_show_mouse (void *data, bool state)
 
static void gfx_ctx_gdi_swap_interval (void *data, int interval)
 
static void gfx_ctx_gdi_set_flags (void *data, uint32_t flags)
 
static uint32_t gfx_ctx_gdi_get_flags (void *data)
 
static void gfx_ctx_gdi_swap_buffers (void *data, void *data2)
 
void create_gdi_context (HWND hwnd, bool *quit)
 

Variables

static HDC win32_gdi_hdc
 
static unsigned win32_gdi_major = 0
 
static unsigned win32_gdi_minor = 0
 
static int win32_gdi_interval = 0
 
static enum gfx_ctx_api win32_gdi_api = GFX_CTX_NONE
 
voiddinput_gdi
 
const gfx_ctx_driver_t gfx_ctx_gdi
 

Macro Definition Documentation

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x0500 /*_WIN32_WINNT_WIN2K */

Typedef Documentation

◆ gfx_ctx_gdi_data_t

Function Documentation

◆ create_gdi_context()

void create_gdi_context ( HWND  hwnd,
bool quit 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gfx_ctx_gdi_bind_api()

static bool gfx_ctx_gdi_bind_api ( void data,
enum gfx_ctx_api  api,
unsigned  major,
unsigned  minor 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_check_window()

static void gfx_ctx_gdi_check_window ( void data,
bool quit,
bool resize,
unsigned *  width,
unsigned *  height,
bool  is_shutdown 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_destroy()

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

◆ gfx_ctx_gdi_get_api()

static enum gfx_ctx_api gfx_ctx_gdi_get_api ( void data)
static

◆ gfx_ctx_gdi_get_flags()

static uint32_t gfx_ctx_gdi_get_flags ( void data)
static

◆ gfx_ctx_gdi_get_metrics()

static bool gfx_ctx_gdi_get_metrics ( void data,
enum display_metric_types  type,
float *  value 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_get_video_size()

static void gfx_ctx_gdi_get_video_size ( void data,
unsigned *  width,
unsigned *  height 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_has_focus()

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

◆ gfx_ctx_gdi_has_windowed()

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

◆ gfx_ctx_gdi_init()

static void* gfx_ctx_gdi_init ( video_frame_info_t video_info,
void video_driver 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_input_driver()

static void gfx_ctx_gdi_input_driver ( void data,
const char *  joypad_name,
const input_driver_t **  input,
void **  input_data 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_set_flags()

static void gfx_ctx_gdi_set_flags ( void data,
uint32_t  flags 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_set_resize()

static bool gfx_ctx_gdi_set_resize ( void data,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_set_video_mode()

static bool gfx_ctx_gdi_set_video_mode ( void data,
video_frame_info_t video_info,
unsigned  width,
unsigned  height,
bool  fullscreen 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_show_mouse()

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

◆ gfx_ctx_gdi_suppress_screensaver()

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

◆ gfx_ctx_gdi_swap_buffers()

static void gfx_ctx_gdi_swap_buffers ( void data,
void data2 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_swap_interval()

static void gfx_ctx_gdi_swap_interval ( void data,
int  interval 
)
static
Here is the call graph for this function:

◆ gfx_ctx_gdi_update_window_title()

static void gfx_ctx_gdi_update_window_title ( void data,
void data2 
)
static
Here is the call graph for this function:

◆ setup_gdi_pixel_format()

static void setup_gdi_pixel_format ( HDC  hdc)
static
Here is the caller graph for this function:

Variable Documentation

◆ dinput_gdi

void* dinput_gdi

◆ gfx_ctx_gdi

const gfx_ctx_driver_t gfx_ctx_gdi

◆ win32_gdi_api

enum gfx_ctx_api win32_gdi_api = GFX_CTX_NONE
static

◆ win32_gdi_hdc

HDC win32_gdi_hdc
static

◆ win32_gdi_interval

int win32_gdi_interval = 0
static

◆ win32_gdi_major

unsigned win32_gdi_major = 0
static

◆ win32_gdi_minor

unsigned win32_gdi_minor = 0
static