RetroArch
Classes | Functions | Variables
switch_gfx.c File Reference
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <retro_inline.h>
#include <retro_math.h>
#include <formats/image.h>
#include <gfx/scaler/scaler.h>
#include <gfx/scaler/pixconv.h>
#include <libtransistor/nx.h>
#include "../font_driver.h"
#include "../../configuration.h"
#include "../../command.h"
#include "../../driver.h"
#include "../../retroarch.h"
#include "../../verbosity.h"
#include "../../tasks/tasks_internal.h"
Include dependency graph for switch_gfx.c:

Classes

struct  switch_video_t
 

Functions

static voidswitch_init (const video_info_t *video, const input_driver_t **input, void **input_data)
 
static void switch_wait_vsync (switch_video_t *sw)
 
static bool switch_frame (void *data, const void *frame, unsigned width, unsigned height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
 
static void switch_set_nonblock_state (void *data, bool toggle)
 
static bool switch_alive (void *data)
 
static bool switch_focus (void *data)
 
static bool switch_suppress_screensaver (void *data, bool enable)
 
static bool switch_has_windowed (void *data)
 
static void switch_free (void *data)
 
static bool switch_set_shader (void *data, enum rarch_shader_type type, const char *path)
 
static void switch_set_rotation (void *data, unsigned rotation)
 
static void switch_viewport_info (void *data, struct video_viewport *vp)
 
static bool switch_read_viewport (void *data, uint8_t *buffer, bool is_idle)
 
static void switch_set_texture_frame (void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
 
static void switch_set_texture_enable (void *data, bool enable, bool full_screen)
 
static void switch_get_poke_interface (void *data, const video_poke_interface_t **iface)
 

Variables

static const video_poke_interface_t switch_poke_interface
 
video_driver_t video_switch
 

Function Documentation

◆ switch_alive()

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

◆ switch_focus()

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

◆ switch_frame()

static bool switch_frame ( void data,
const void frame,
unsigned  width,
unsigned  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:

◆ switch_free()

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

◆ switch_get_poke_interface()

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

◆ switch_has_windowed()

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

◆ switch_init()

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

◆ switch_read_viewport()

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

◆ switch_set_nonblock_state()

static void switch_set_nonblock_state ( void data,
bool  toggle 
)
static

◆ switch_set_rotation()

static void switch_set_rotation ( void data,
unsigned  rotation 
)
static

◆ switch_set_shader()

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

◆ switch_set_texture_enable()

static void switch_set_texture_enable ( void data,
bool  enable,
bool  full_screen 
)
static

◆ switch_set_texture_frame()

static void switch_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:

◆ switch_suppress_screensaver()

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

◆ switch_viewport_info()

static void switch_viewport_info ( void data,
struct video_viewport vp 
)
static

◆ switch_wait_vsync()

static void switch_wait_vsync ( switch_video_t sw)
static

Variable Documentation

◆ switch_poke_interface

const video_poke_interface_t switch_poke_interface
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static void switch_set_texture_frame(void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
Definition: switch_gfx.c:338
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void switch_set_texture_enable(void *data, bool enable, bool full_screen)
Definition: switch_gfx.c:397

◆ video_switch

video_driver_t video_switch
Initial value:
= {
"switch",
NULL,
NULL,
}
static bool switch_has_windowed(void *data)
Definition: switch_gfx.c:291
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool switch_set_shader(void *data, enum rarch_shader_type type, const char *path)
Definition: switch_gfx.c:306
static void * switch_init(const video_info_t *video, const input_driver_t **input, void **input_data)
Definition: switch_gfx.c:83
static void switch_viewport_info(void *data, struct video_viewport *vp)
Definition: switch_gfx.c:324
static void switch_set_nonblock_state(void *data, bool toggle)
Definition: switch_gfx.c:266
static void switch_free(void *data)
Definition: switch_gfx.c:297
static bool switch_suppress_screensaver(void *data, bool enable)
Definition: switch_gfx.c:284
static void switch_set_rotation(void *data, unsigned rotation)
Definition: switch_gfx.c:316
static void switch_get_poke_interface(void *data, const video_poke_interface_t **iface)
Definition: switch_gfx.c:433
static bool switch_alive(void *data)
Definition: switch_gfx.c:272
static bool switch_frame(void *data, const void *frame, unsigned width, unsigned height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
Definition: switch_gfx.c:141
static bool switch_read_viewport(void *data, uint8_t *buffer, bool is_idle)
Definition: switch_gfx.c:330
static bool switch_focus(void *data)
Definition: switch_gfx.c:278