RetroArch
Functions | Variables
switch_ctx.c File Reference
#include <stdlib.h>
#include <switch.h>
#include "../common/switch_common.h"
#include "../../frontend/frontend_driver.h"
Include dependency graph for switch_ctx.c:

Functions

void switch_ctx_destroy (void *data)
 
static void switch_ctx_get_video_size (void *data, unsigned *width, unsigned *height)
 
static voidswitch_ctx_init (video_frame_info_t *video_info, void *video_driver)
 
static void switch_ctx_check_window (void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
 
static bool switch_ctx_set_video_mode (void *data, video_frame_info_t *video_info, unsigned width, unsigned height, bool fullscreen)
 
static void switch_ctx_input_driver (void *data, const char *name, const input_driver_t **input, void **input_data)
 
static enum gfx_ctx_api switch_ctx_get_api (void *data)
 
static bool switch_ctx_bind_api (void *data, enum gfx_ctx_api api, unsigned major, unsigned minor)
 
static bool switch_ctx_has_focus (void *data)
 
static bool switch_ctx_suppress_screensaver (void *data, bool enable)
 
static void switch_ctx_set_swap_interval (void *data, int swap_interval)
 
static void switch_ctx_swap_buffers (void *data, void *data2)
 
static gfx_ctx_proc_t switch_ctx_get_proc_address (const char *symbol)
 
static void switch_ctx_bind_hw_render (void *data, bool enable)
 
static uint32_t switch_ctx_get_flags (void *data)
 
static void switch_ctx_set_flags (void *data, uint32_t flags)
 
static float switch_ctx_get_refresh_rate (void *data)
 
bool switch_ctx_get_metrics (void *data, enum display_metric_types type, float *value)
 

Variables

static enum gfx_ctx_api ctx_nx_api = GFX_CTX_OPENGL_API
 
switch_ctx_data_tnx_ctx_ptr = NULL
 
bool platform_switch_has_focus
 
const gfx_ctx_driver_t switch_ctx
 

Function Documentation

◆ switch_ctx_bind_api()

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

◆ switch_ctx_bind_hw_render()

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

◆ switch_ctx_check_window()

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

◆ switch_ctx_destroy()

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

◆ switch_ctx_get_api()

static enum gfx_ctx_api switch_ctx_get_api ( void data)
static

◆ switch_ctx_get_flags()

static uint32_t switch_ctx_get_flags ( void data)
static

◆ switch_ctx_get_metrics()

bool switch_ctx_get_metrics ( void data,
enum display_metric_types  type,
float *  value 
)

◆ switch_ctx_get_proc_address()

static gfx_ctx_proc_t switch_ctx_get_proc_address ( const char *  symbol)
static
Here is the call graph for this function:

◆ switch_ctx_get_refresh_rate()

static float switch_ctx_get_refresh_rate ( void data)
static

◆ switch_ctx_get_video_size()

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

◆ switch_ctx_has_focus()

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

◆ switch_ctx_init()

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

◆ switch_ctx_input_driver()

static void switch_ctx_input_driver ( void data,
const char *  name,
const input_driver_t **  input,
void **  input_data 
)
static

◆ switch_ctx_set_flags()

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

◆ switch_ctx_set_swap_interval()

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

◆ switch_ctx_set_video_mode()

static bool switch_ctx_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:

◆ switch_ctx_suppress_screensaver()

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

◆ switch_ctx_swap_buffers()

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

Variable Documentation

◆ ctx_nx_api

enum gfx_ctx_api ctx_nx_api = GFX_CTX_OPENGL_API
static

◆ nx_ctx_ptr

switch_ctx_data_t* nx_ctx_ptr = NULL

◆ platform_switch_has_focus

bool platform_switch_has_focus

◆ switch_ctx

const gfx_ctx_driver_t switch_ctx