RetroArch
Classes | Macros | Typedefs | Functions | Variables
xenon360_gfx.c File Reference
#include <stdlib.h>
#include <string.h>
#include <xenos/xe.h>
#include <xenos/xenos.h>
#include <xenos/edram.h>
#include "../font_driver.h"
#include "../../driver.h"
Include dependency graph for xenon360_gfx.c:

Classes

struct  DrawVerticeFormats
 
struct  gl
 

Macros

#define XE_W   512
 
#define XE_H   512
 
#define UV_BOTTOM   0
 
#define UV_TOP   1
 
#define UV_LEFT   2
 
#define UV_RIGHT   3
 

Typedefs

typedef struct DrawVerticeFormats DrawVerticeFormats
 
typedef struct xenon360_video xenon360_video_t
 
typedef struct gl gl_t
 

Functions

static void xenon360_gfx_free (void *data)
 
static voidxenon360_gfx_init (const video_info_t *video, const input_driver_t **input, void **input_data)
 
static bool xenon360_gfx_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 xenon360_gfx_set_nonblock_state (void *data, bool state)
 
static bool xenon360_gfx_alive (void *data)
 
static bool xenon360_gfx_focus (void *data)
 
static bool xenon360_gfx_suppress_screensaver (void *data, bool enable)
 
static void xenon360_gfx_set_rotation (void *data, unsigned rotation)
 
static bool xenon360_gfx_set_shader (void *data, enum rarch_shader_type type, const char *path)
 
static void xenon360_gfx_viewport_info (void *data, struct video_viewport *vp)
 
static bool xenon360_gfx_read_viewport (void *data, uint8_t *buffer, bool is_idle)
 
static void xenon360_gfx_get_poke_interface (void *data, const video_poke_interface_t **iface)
 

Variables

const unsigned int g_xps_PS []
 
const unsigned int g_xvs_VS []
 
static bool g_quitting
 
static float ScreenUv [4] = {0.f, 1.0f, 1.0f, 0.f}
 
video_driver_t video_xenon360
 

Macro Definition Documentation

◆ UV_BOTTOM

#define UV_BOTTOM   0

◆ UV_LEFT

#define UV_LEFT   2

◆ UV_RIGHT

#define UV_RIGHT   3

◆ UV_TOP

#define UV_TOP   1

◆ XE_H

#define XE_H   512

◆ XE_W

#define XE_W   512

Typedef Documentation

◆ DrawVerticeFormats

◆ gl_t

typedef struct gl gl_t

◆ xenon360_video_t

typedef struct xenon360_video xenon360_video_t

Function Documentation

◆ xenon360_gfx_alive()

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

◆ xenon360_gfx_focus()

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

◆ xenon360_gfx_frame()

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

◆ xenon360_gfx_free()

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

◆ xenon360_gfx_get_poke_interface()

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

◆ xenon360_gfx_init()

static void* xenon360_gfx_init ( const video_info_t video,
const input_driver_t **  input,
void **  input_data 
)
static

◆ xenon360_gfx_read_viewport()

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

◆ xenon360_gfx_set_nonblock_state()

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

◆ xenon360_gfx_set_rotation()

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

◆ xenon360_gfx_set_shader()

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

◆ xenon360_gfx_suppress_screensaver()

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

◆ xenon360_gfx_viewport_info()

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

Variable Documentation

◆ g_quitting

bool g_quitting
static

◆ g_xps_PS

const unsigned int g_xps_PS[]
Initial value:
=
{
0x102a1100, 0x000000b4, 0x0000003c, 0x00000000, 0x00000024, 0x00000000,
0x0000008c, 0x00000000, 0x00000000, 0x00000064, 0x0000001c, 0x00000057,
0xffff0300, 0x00000001, 0x0000001c, 0x00000000, 0x00000050, 0x00000030,
0x00030000, 0x00010000, 0x00000040, 0x00000000, 0x54657874, 0x75726553,
0x616d706c, 0x657200ab, 0x0004000c, 0x00010001, 0x00010000, 0x00000000,
0x70735f33, 0x5f300032, 0x2e302e32, 0x30333533, 0x2e3000ab, 0x00000000,
0x0000003c, 0x10000100, 0x00000008, 0x00000000, 0x00001842, 0x00010003,
0x00000001, 0x00003050, 0x0000f1a0, 0x00011002, 0x00001200, 0xc4000000,
0x00001003, 0x00002200, 0x00000000, 0x10081001, 0x1f1ff688, 0x00004000,
0xc80f8000, 0x00000000, 0xe2010100, 0x00000000, 0x00000000, 0x00000000
}

◆ g_xvs_VS

const unsigned int g_xvs_VS[]
Initial value:
=
{
0x102a1101, 0x0000009c, 0x00000078, 0x00000000, 0x00000024, 0x00000000,
0x00000058, 0x00000000, 0x00000000, 0x00000030, 0x0000001c, 0x00000023,
0xfffe0300, 0x00000000, 0x00000000, 0x00000000, 0x0000001c, 0x76735f33,
0x5f300032, 0x2e302e32, 0x30333533, 0x2e3000ab, 0x00000000, 0x00000078,
0x00110002, 0x00000000, 0x00000000, 0x00001842, 0x00000001, 0x00000003,
0x00000002, 0x00000290, 0x00100003, 0x0000a004, 0x00305005, 0x00003050,
0x0001f1a0, 0x00001007, 0x00001008, 0x70153003, 0x00001200, 0xc2000000,
0x00001006, 0x00001200, 0xc4000000, 0x00002007, 0x00002200, 0x00000000,
0x05f82000, 0x00000688, 0x00000000, 0x05f81000, 0x00000688, 0x00000000,
0x05f80000, 0x00000fc8, 0x00000000, 0xc80f803e, 0x00000000, 0xe2020200,
0xc8038000, 0x00b0b000, 0xe2000000, 0xc80f8001, 0x00000000, 0xe2010100,
0x00000000, 0x00000000, 0x00000000
}

◆ ScreenUv

float ScreenUv[4] = {0.f, 1.0f, 1.0f, 0.f}
static

◆ video_xenon360

video_driver_t video_xenon360
Initial value:
= {
NULL,
"xenon360",
NULL,
NULL,
}
static void xenon360_gfx_viewport_info(void *data, struct video_viewport *vp)
Definition: xenon360_gfx.c:290
static void xenon360_gfx_set_nonblock_state(void *data, bool state)
Definition: xenon360_gfx.c:249
static void xenon360_gfx_set_rotation(void *data, unsigned rotation)
Definition: xenon360_gfx.c:274
static bool xenon360_gfx_read_viewport(void *data, uint8_t *buffer, bool is_idle)
Definition: xenon360_gfx.c:296
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool xenon360_gfx_set_shader(void *data, enum rarch_shader_type type, const char *path)
Definition: xenon360_gfx.c:280
static bool xenon360_gfx_alive(void *data)
Definition: xenon360_gfx.c:255
static void xenon360_gfx_free(void *data)
Definition: xenon360_gfx.c:97
static bool xenon360_gfx_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: xenon360_gfx.c:195
static void * xenon360_gfx_init(const video_info_t *video, const input_driver_t **input, void **input_data)
Definition: xenon360_gfx.c:106
static bool xenon360_gfx_focus(void *data)
Definition: xenon360_gfx.c:261
static void xenon360_gfx_get_poke_interface(void *data, const video_poke_interface_t **iface)
Definition: xenon360_gfx.c:304
static bool xenon360_gfx_suppress_screensaver(void *data, bool enable)
Definition: xenon360_gfx.c:267