RetroArch
|
#include <psp2/display.h>
#include <psp2/gxm.h>
#include <psp2/types.h>
#include <psp2/kernel/sysmem.h>
#include <psp2/message_dialog.h>
#include <psp2/sysmodule.h>
#include <string.h>
#include <stdlib.h>
#include "vita2d.h"
#include "utils.h"
Classes | |
struct | vita2d_display_data |
Macros | |
#define | VITA2D_DEBUG(...) |
#define | DISPLAY_WIDTH 960 |
#define | DISPLAY_HEIGHT 544 |
#define | DISPLAY_STRIDE_IN_PIXELS 1024 |
#define | DISPLAY_COLOR_FORMAT SCE_GXM_COLOR_FORMAT_A8B8G8R8 |
#define | DISPLAY_PIXEL_FORMAT SCE_DISPLAY_PIXELFORMAT_A8B8G8R8 |
#define | DISPLAY_BUFFER_COUNT 3 |
#define | DISPLAY_MAX_PENDING_SWAPS 2 |
#define | MSAA_MODE SCE_GXM_MULTISAMPLE_NONE |
#define | DEFAULT_TEMP_POOL_SIZE (1 * 1024 * 1024) |
Typedefs | |
typedef struct vita2d_display_data | vita2d_display_data |
Functions | |
static void * | patcher_host_alloc (void *user_data, unsigned int size) |
static void | patcher_host_free (void *user_data, void *mem) |
static void | display_callback (const void *callback_data) |
int | vita2d_init () |
int | vita2d_init_advanced (unsigned int temp_pool_size) |
void | vita2d_wait_rendering_done () |
int | vita2d_fini () |
void | vita2d_clear_screen () |
void | vita2d_swap_buffers () |
void | vita2d_start_drawing () |
void | vita2d_end_drawing () |
int | vita2d_common_dialog_update () |
void | vita2d_set_clear_color (unsigned int color) |
unsigned int | vita2d_get_clear_color () |
void | vita2d_set_vblank_wait (int enable) |
void * | vita2d_get_current_fb () |
void | vita2d_set_region_clip (SceGxmRegionClipMode mode, unsigned int x_min, unsigned int y_min, unsigned int x_max, unsigned int y_max) |
void * | vita2d_pool_malloc (unsigned int size) |
void * | vita2d_pool_memalign (unsigned int size, unsigned int alignment) |
unsigned int | vita2d_pool_free_space () |
void | vita2d_pool_reset () |
#define DEFAULT_TEMP_POOL_SIZE (1 * 1024 * 1024) |
#define DISPLAY_BUFFER_COUNT 3 |
#define DISPLAY_COLOR_FORMAT SCE_GXM_COLOR_FORMAT_A8B8G8R8 |
#define DISPLAY_HEIGHT 544 |
#define DISPLAY_MAX_PENDING_SWAPS 2 |
#define DISPLAY_PIXEL_FORMAT SCE_DISPLAY_PIXELFORMAT_A8B8G8R8 |
#define DISPLAY_STRIDE_IN_PIXELS 1024 |
#define DISPLAY_WIDTH 960 |
#define MSAA_MODE SCE_GXM_MULTISAMPLE_NONE |
#define VITA2D_DEBUG | ( | ... | ) |
typedef struct vita2d_display_data vita2d_display_data |
void vita2d_clear_screen | ( | ) |
int vita2d_common_dialog_update | ( | ) |
void vita2d_end_drawing | ( | ) |
int vita2d_fini | ( | ) |
unsigned int vita2d_get_clear_color | ( | ) |
void* vita2d_get_current_fb | ( | ) |
int vita2d_init | ( | ) |
int vita2d_init_advanced | ( | unsigned int | temp_pool_size | ) |
unsigned int vita2d_pool_free_space | ( | ) |
void* vita2d_pool_malloc | ( | unsigned int | size | ) |
void* vita2d_pool_memalign | ( | unsigned int | size, |
unsigned int | alignment | ||
) |
void vita2d_pool_reset | ( | ) |
void vita2d_set_clear_color | ( | unsigned int | color | ) |
void vita2d_set_region_clip | ( | SceGxmRegionClipMode | mode, |
unsigned int | x_min, | ||
unsigned int | y_min, | ||
unsigned int | x_max, | ||
unsigned int | y_max | ||
) |
void vita2d_set_vblank_wait | ( | int | enable | ) |
void vita2d_start_drawing | ( | ) |
void vita2d_swap_buffers | ( | ) |
void vita2d_wait_rendering_done | ( | ) |
SceGxmFragmentProgram* _vita2d_colorFragmentProgram = NULL |
SceGxmVertexProgram* _vita2d_colorVertexProgram = NULL |
SceGxmContext* _vita2d_context = NULL |
float _vita2d_ortho_matrix[4 *4] |
SceGxmFragmentProgram* _vita2d_textureFragmentProgram = NULL |
SceGxmFragmentProgram* _vita2d_textureTintFragmentProgram = NULL |
SceGxmVertexProgram* _vita2d_textureVertexProgram = NULL |
|
static |
|
static |
|
static |
const SceGxmProgram clear_f_gxp |
const SceGxmProgram clear_v_gxp |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const SceGxmProgram color_f_gxp |
const SceGxmProgram color_v_gxp |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const SceGxmProgram texture_f_gxp |
const SceGxmProgram texture_tint_f_gxp |
const SceGxmProgram texture_v_gxp |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |