RetroArch
Functions | Variables
ctr_gfx.c File Reference
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <3ds.h>
#include <retro_inline.h>
#include <retro_math.h>
#include <formats/image.h>
#include "../font_driver.h"
#include "../../ctr/gpu_old.h"
#include "ctr_gu.h"
#include "../../configuration.h"
#include "../../command.h"
#include "../../driver.h"
#include "../../retroarch.h"
#include "../../verbosity.h"
#include "../common/ctr_common.h"
#include "../../tasks/tasks_internal.h"
Include dependency graph for ctr_gfx.c:

Functions

static INLINE void ctr_check_3D_slider (ctr_video_t *ctr)
 
static INLINE void ctr_set_screen_coords (ctr_video_t *ctr)
 
static void ctr_update_viewport (ctr_video_t *ctr, video_frame_info_t *video_info)
 
static void ctr_lcd_aptHook (APT_HookType hook, void *param)
 
static void ctr_vsync_hook (ctr_video_t *ctr)
 
static bool ctr_tasks_finder (retro_task_t *task, void *userdata)
 
static void ctr_set_bottom_screen_enable (void *data, bool enabled)
 
static voidctr_init (const video_info_t *video, const input_driver_t **input, void **input_data)
 
static bool ctr_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 ctr_set_nonblock_state (void *data, bool toggle)
 
static bool ctr_alive (void *data)
 
static bool ctr_focus (void *data)
 
static bool ctr_suppress_screensaver (void *data, bool enable)
 
static void ctr_free (void *data)
 
static void ctr_set_texture_frame (void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
 
static void ctr_set_texture_enable (void *data, bool state, bool full_screen)
 
static void ctr_set_rotation (void *data, unsigned rotation)
 
static void ctr_set_filtering (void *data, unsigned index, bool smooth)
 
static void ctr_set_aspect_ratio (void *data, unsigned aspect_ratio_idx)
 
static void ctr_apply_state_changes (void *data)
 
static void ctr_viewport_info (void *data, struct video_viewport *vp)
 
static uintptr_t ctr_load_texture (void *video_data, void *data, bool threaded, enum texture_filter_type filter_type)
 
static void ctr_unload_texture (void *data, uintptr_t handle)
 
static void ctr_set_osd_msg (void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
 
static void ctr_get_poke_interface (void *data, const video_poke_interface_t **iface)
 
static bool ctr_read_viewport (void *data, uint8_t *buffer, bool is_idle)
 
static bool ctr_set_shader (void *data, enum rarch_shader_type type, const char *path)
 

Variables

static bool ctr_bottom_screen_enabled = true
 
task_finder_data_t ctr_tasks_finder_data = {ctr_tasks_finder, NULL}
 
static const video_poke_interface_t ctr_poke_interface
 
video_driver_t video_ctr
 

Function Documentation

◆ ctr_alive()

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

◆ ctr_apply_state_changes()

static void ctr_apply_state_changes ( void data)
static

◆ ctr_check_3D_slider()

static INLINE void ctr_check_3D_slider ( ctr_video_t ctr)
static
Here is the caller graph for this function:

◆ ctr_focus()

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

◆ ctr_frame()

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

◆ ctr_free()

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

◆ ctr_get_poke_interface()

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

◆ ctr_init()

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

◆ ctr_lcd_aptHook()

static void ctr_lcd_aptHook ( APT_HookType  hook,
void param 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ctr_load_texture()

static uintptr_t ctr_load_texture ( void video_data,
void data,
bool  threaded,
enum texture_filter_type  filter_type 
)
static
Here is the call graph for this function:

◆ ctr_read_viewport()

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

◆ ctr_set_aspect_ratio()

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

◆ ctr_set_bottom_screen_enable()

static void ctr_set_bottom_screen_enable ( void data,
bool  enabled 
)
static
Here is the caller graph for this function:

◆ ctr_set_filtering()

static void ctr_set_filtering ( void data,
unsigned  index,
bool  smooth 
)
static

◆ ctr_set_nonblock_state()

static void ctr_set_nonblock_state ( void data,
bool  toggle 
)
static

◆ ctr_set_osd_msg()

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

◆ ctr_set_rotation()

static void ctr_set_rotation ( void data,
unsigned  rotation 
)
static

◆ ctr_set_screen_coords()

static INLINE void ctr_set_screen_coords ( ctr_video_t ctr)
static
Here is the caller graph for this function:

◆ ctr_set_shader()

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

◆ ctr_set_texture_enable()

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

◆ ctr_set_texture_frame()

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

◆ ctr_suppress_screensaver()

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

◆ ctr_tasks_finder()

static bool ctr_tasks_finder ( retro_task_t task,
void userdata 
)
static

◆ ctr_unload_texture()

static void ctr_unload_texture ( void data,
uintptr_t  handle 
)
static
Here is the call graph for this function:

◆ ctr_update_viewport()

static void ctr_update_viewport ( ctr_video_t ctr,
video_frame_info_t video_info 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ctr_viewport_info()

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

◆ ctr_vsync_hook()

static void ctr_vsync_hook ( ctr_video_t ctr)
static
Here is the caller graph for this function:

Variable Documentation

◆ ctr_bottom_screen_enabled

bool ctr_bottom_screen_enabled = true
static

◆ ctr_poke_interface

const video_poke_interface_t ctr_poke_interface
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static void ctr_apply_state_changes(void *data)
Definition: ctr_gfx.c:1032
static void ctr_set_filtering(void *data, unsigned index, bool smooth)
Definition: ctr_gfx.c:993
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void ctr_set_osd_msg(void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
Definition: ctr_gfx.c:1144
static void ctr_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
Definition: ctr_gfx.c:1001
static uintptr_t ctr_load_texture(void *video_data, void *data, bool threaded, enum texture_filter_type filter_type)
Definition: ctr_gfx.c:1049
static void ctr_set_texture_frame(void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
Definition: ctr_gfx.c:928
static void ctr_set_texture_enable(void *data, bool state, bool full_screen)
Definition: ctr_gfx.c:972
static void ctr_unload_texture(void *data, uintptr_t handle)
Definition: ctr_gfx.c:1127

◆ ctr_tasks_finder_data

task_finder_data_t ctr_tasks_finder_data = {ctr_tasks_finder, NULL}

◆ video_ctr

video_driver_t video_ctr
Initial value:
=
{
NULL,
"ctr",
NULL,
NULL,
}
static bool ctr_alive(void *data)
Definition: ctr_gfx.c:883
static bool ctr_set_shader(void *data, enum rarch_shader_type type, const char *path)
Definition: ctr_gfx.c:1195
static void ctr_get_poke_interface(void *data, const video_poke_interface_t **iface)
Definition: ctr_gfx.c:1181
static bool ctr_read_viewport(void *data, uint8_t *buffer, bool is_idle)
Definition: ctr_gfx.c:1188
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void * ctr_init(const video_info_t *video, const input_driver_t **input, void **input_data)
Definition: ctr_gfx.c:318
static bool ctr_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: ctr_gfx.c:493
static bool ctr_suppress_screensaver(void *data, bool enable)
Definition: ctr_gfx.c:895
static void ctr_free(void *data)
Definition: ctr_gfx.c:902
static void ctr_set_nonblock_state(void *data, bool toggle)
Definition: ctr_gfx.c:875
static bool ctr_focus(void *data)
Definition: ctr_gfx.c:889
static void ctr_set_rotation(void *data, unsigned rotation)
Definition: ctr_gfx.c:983
static void ctr_viewport_info(void *data, struct video_viewport *vp)
Definition: ctr_gfx.c:1041