RetroArch
Classes | Macros | Typedefs | Functions
vita2d.h File Reference
#include <psp2/gxm.h>
#include <psp2/types.h>
#include <psp2/kernel/sysmem.h>
Include dependency graph for vita2d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vita2d_clear_vertex
 
struct  vita2d_color_vertex
 
struct  vita2d_texture_vertex
 
struct  vita2d_texture
 

Macros

#define RGBA8(r, g, b, a)   ((((a)&0xFF)<<24) | (((b)&0xFF)<<16) | (((g)&0xFF)<<8) | (((r)&0xFF)<<0))
 

Typedefs

typedef struct vita2d_clear_vertex vita2d_clear_vertex
 
typedef struct vita2d_color_vertex vita2d_color_vertex
 
typedef struct vita2d_texture_vertex vita2d_texture_vertex
 
typedef struct vita2d_texture vita2d_texture
 
typedef struct vita2d_font vita2d_font
 
typedef struct vita2d_pgf vita2d_pgf
 

Functions

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)
 
voidvita2d_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)
 
voidvita2d_pool_malloc (unsigned int size)
 
voidvita2d_pool_memalign (unsigned int size, unsigned int alignment)
 
unsigned int vita2d_pool_free_space ()
 
void vita2d_pool_reset ()
 
void vita2d_draw_pixel (float x, float y, unsigned int color)
 
void vita2d_draw_line (float x0, float y0, float x1, float y1, unsigned int color)
 
void vita2d_draw_rectangle (float x, float y, float w, float h, unsigned int color)
 
void vita2d_draw_fill_circle (float x, float y, float radius, unsigned int color)
 
vita2d_texturevita2d_create_empty_texture (unsigned int w, unsigned int h)
 
vita2d_texturevita2d_create_empty_texture_format (unsigned int w, unsigned int h, SceGxmTextureFormat format)
 
void vita2d_free_texture (vita2d_texture *texture)
 
unsigned int vita2d_texture_get_width (const vita2d_texture *texture)
 
unsigned int vita2d_texture_get_height (const vita2d_texture *texture)
 
unsigned int vita2d_texture_get_stride (const vita2d_texture *texture)
 
SceGxmTextureFormat vita2d_texture_get_format (const vita2d_texture *texture)
 
voidvita2d_texture_get_datap (const vita2d_texture *texture)
 
voidvita2d_texture_get_palette (const vita2d_texture *texture)
 
SceGxmTextureFilter vita2d_texture_get_min_filter (const vita2d_texture *texture)
 
SceGxmTextureFilter vita2d_texture_get_mag_filter (const vita2d_texture *texture)
 
void vita2d_texture_set_filters (vita2d_texture *texture, SceGxmTextureFilter min_filter, SceGxmTextureFilter mag_filter)
 
void vita2d_draw_texture (const vita2d_texture *texture, float x, float y)
 
void vita2d_draw_texture_rotate (const vita2d_texture *texture, float x, float y, float rad)
 
void vita2d_draw_texture_rotate_hotspot (const vita2d_texture *texture, float x, float y, float rad, float center_x, float center_y)
 
void vita2d_draw_texture_scale (const vita2d_texture *texture, float x, float y, float x_scale, float y_scale)
 
void vita2d_draw_texture_part (const vita2d_texture *texture, float x, float y, float tex_x, float tex_y, float tex_w, float tex_h)
 
void vita2d_draw_texture_part_scale (const vita2d_texture *texture, float x, float y, float tex_x, float tex_y, float tex_w, float tex_h, float x_scale, float y_scale)
 
void vita2d_draw_texture_scale_rotate_hotspot (const vita2d_texture *texture, float x, float y, float x_scale, float y_scale, float rad, float center_x, float center_y)
 
void vita2d_draw_texture_scale_rotate (const vita2d_texture *texture, float x, float y, float x_scale, float y_scale, float rad)
 
void vita2d_draw_texture_tint (const vita2d_texture *texture, float x, float y, unsigned int color)
 
void vita2d_draw_texture_tint_rotate (const vita2d_texture *texture, float x, float y, float rad, unsigned int color)
 
void vita2d_draw_texture_tint_rotate_hotspot (const vita2d_texture *texture, float x, float y, float rad, float center_x, float center_y, unsigned int color)
 
void vita2d_draw_texture_tint_scale (const vita2d_texture *texture, float x, float y, float x_scale, float y_scale, unsigned int color)
 
void vita2d_draw_texture_tint_part (const vita2d_texture *texture, float x, float y, float tex_x, float tex_y, float tex_w, float tex_h, unsigned int color)
 
void vita2d_draw_texture_tint_part_scale (const vita2d_texture *texture, float x, float y, float tex_x, float tex_y, float tex_w, float tex_h, float x_scale, float y_scale, unsigned int color)
 
void vita2d_draw_texture_tint_scale_rotate_hotspot (const vita2d_texture *texture, float x, float y, float x_scale, float y_scale, float rad, float center_x, float center_y, unsigned int color)
 
void vita2d_draw_texture_tint_scale_rotate (const vita2d_texture *texture, float x, float y, float x_scale, float y_scale, float rad, unsigned int color)
 
void vita2d_texture_set_wvp (float x, float y, float width, float height)
 
void vita2d_texture_set_program ()
 
void vita2d_texture_set_tint_program ()
 
void vita2d_texture_set_tint_color_uniform (unsigned int color)
 
void vita2d_draw_texture_part_generic (const vita2d_texture *texture, SceGxmPrimitiveType type, vita2d_texture_vertex *vertices, unsigned int num_vertices)
 

Macro Definition Documentation

◆ RGBA8

#define RGBA8 (   r,
  g,
  b,
  a 
)    ((((a)&0xFF)<<24) | (((b)&0xFF)<<16) | (((g)&0xFF)<<8) | (((r)&0xFF)<<0))

Typedef Documentation

◆ vita2d_clear_vertex

◆ vita2d_color_vertex

◆ vita2d_font

typedef struct vita2d_font vita2d_font

◆ vita2d_pgf

typedef struct vita2d_pgf vita2d_pgf

◆ vita2d_texture

◆ vita2d_texture_vertex

Function Documentation

◆ vita2d_clear_screen()

void vita2d_clear_screen ( )

◆ vita2d_common_dialog_update()

int vita2d_common_dialog_update ( )
Here is the call graph for this function:

◆ vita2d_create_empty_texture()

vita2d_texture* vita2d_create_empty_texture ( unsigned int  w,
unsigned int  h 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_create_empty_texture_format()

vita2d_texture* vita2d_create_empty_texture_format ( unsigned int  w,
unsigned int  h,
SceGxmTextureFormat  format 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_fill_circle()

void vita2d_draw_fill_circle ( float  x,
float  y,
float  radius,
unsigned int  color 
)
Here is the call graph for this function:

◆ vita2d_draw_line()

void vita2d_draw_line ( float  x0,
float  y0,
float  x1,
float  y1,
unsigned int  color 
)
Here is the call graph for this function:

◆ vita2d_draw_pixel()

void vita2d_draw_pixel ( float  x,
float  y,
unsigned int  color 
)
Here is the call graph for this function:

◆ vita2d_draw_rectangle()

void vita2d_draw_rectangle ( float  x,
float  y,
float  w,
float  h,
unsigned int  color 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture()

void vita2d_draw_texture ( const vita2d_texture texture,
float  x,
float  y 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture_part()

void vita2d_draw_texture_part ( const vita2d_texture texture,
float  x,
float  y,
float  tex_x,
float  tex_y,
float  tex_w,
float  tex_h 
)
Here is the call graph for this function:

◆ vita2d_draw_texture_part_generic()

void vita2d_draw_texture_part_generic ( const vita2d_texture texture,
SceGxmPrimitiveType  type,
vita2d_texture_vertex vertices,
unsigned int  num_vertices 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture_part_scale()

void vita2d_draw_texture_part_scale ( const vita2d_texture texture,
float  x,
float  y,
float  tex_x,
float  tex_y,
float  tex_w,
float  tex_h,
float  x_scale,
float  y_scale 
)
Here is the call graph for this function:

◆ vita2d_draw_texture_rotate()

void vita2d_draw_texture_rotate ( const vita2d_texture texture,
float  x,
float  y,
float  rad 
)
Here is the call graph for this function:

◆ vita2d_draw_texture_rotate_hotspot()

void vita2d_draw_texture_rotate_hotspot ( const vita2d_texture texture,
float  x,
float  y,
float  rad,
float  center_x,
float  center_y 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture_scale()

void vita2d_draw_texture_scale ( const vita2d_texture texture,
float  x,
float  y,
float  x_scale,
float  y_scale 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture_scale_rotate()

void vita2d_draw_texture_scale_rotate ( const vita2d_texture texture,
float  x,
float  y,
float  x_scale,
float  y_scale,
float  rad 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture_scale_rotate_hotspot()

void vita2d_draw_texture_scale_rotate_hotspot ( const vita2d_texture texture,
float  x,
float  y,
float  x_scale,
float  y_scale,
float  rad,
float  center_x,
float  center_y 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture_tint()

void vita2d_draw_texture_tint ( const vita2d_texture texture,
float  x,
float  y,
unsigned int  color 
)
Here is the call graph for this function:

◆ vita2d_draw_texture_tint_part()

void vita2d_draw_texture_tint_part ( const vita2d_texture texture,
float  x,
float  y,
float  tex_x,
float  tex_y,
float  tex_w,
float  tex_h,
unsigned int  color 
)
Here is the call graph for this function:

◆ vita2d_draw_texture_tint_part_scale()

void vita2d_draw_texture_tint_part_scale ( const vita2d_texture texture,
float  x,
float  y,
float  tex_x,
float  tex_y,
float  tex_w,
float  tex_h,
float  x_scale,
float  y_scale,
unsigned int  color 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture_tint_rotate()

void vita2d_draw_texture_tint_rotate ( const vita2d_texture texture,
float  x,
float  y,
float  rad,
unsigned int  color 
)
Here is the call graph for this function:

◆ vita2d_draw_texture_tint_rotate_hotspot()

void vita2d_draw_texture_tint_rotate_hotspot ( const vita2d_texture texture,
float  x,
float  y,
float  rad,
float  center_x,
float  center_y,
unsigned int  color 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture_tint_scale()

void vita2d_draw_texture_tint_scale ( const vita2d_texture texture,
float  x,
float  y,
float  x_scale,
float  y_scale,
unsigned int  color 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_draw_texture_tint_scale_rotate()

void vita2d_draw_texture_tint_scale_rotate ( const vita2d_texture texture,
float  x,
float  y,
float  x_scale,
float  y_scale,
float  rad,
unsigned int  color 
)
Here is the call graph for this function:

◆ vita2d_draw_texture_tint_scale_rotate_hotspot()

void vita2d_draw_texture_tint_scale_rotate_hotspot ( const vita2d_texture texture,
float  x,
float  y,
float  x_scale,
float  y_scale,
float  rad,
float  center_x,
float  center_y,
unsigned int  color 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_end_drawing()

void vita2d_end_drawing ( )
Here is the caller graph for this function:

◆ vita2d_fini()

int vita2d_fini ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_free_texture()

void vita2d_free_texture ( vita2d_texture texture)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_get_clear_color()

unsigned int vita2d_get_clear_color ( )
Here is the caller graph for this function:

◆ vita2d_get_current_fb()

void* vita2d_get_current_fb ( )

◆ vita2d_init()

int vita2d_init ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_init_advanced()

int vita2d_init_advanced ( unsigned int  temp_pool_size)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_pool_free_space()

unsigned int vita2d_pool_free_space ( )

◆ vita2d_pool_malloc()

void* vita2d_pool_malloc ( unsigned int  size)

◆ vita2d_pool_memalign()

void* vita2d_pool_memalign ( unsigned int  size,
unsigned int  alignment 
)
Here is the caller graph for this function:

◆ vita2d_pool_reset()

void vita2d_pool_reset ( )
Here is the caller graph for this function:

◆ vita2d_set_clear_color()

void vita2d_set_clear_color ( unsigned int  color)
Here is the caller graph for this function:

◆ vita2d_set_region_clip()

void vita2d_set_region_clip ( SceGxmRegionClipMode  mode,
unsigned int  x_min,
unsigned int  y_min,
unsigned int  x_max,
unsigned int  y_max 
)

◆ vita2d_set_vblank_wait()

void vita2d_set_vblank_wait ( int  enable)
Here is the caller graph for this function:

◆ vita2d_start_drawing()

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

◆ vita2d_swap_buffers()

void vita2d_swap_buffers ( )
Here is the caller graph for this function:

◆ vita2d_texture_get_datap()

void* vita2d_texture_get_datap ( const vita2d_texture texture)
Here is the caller graph for this function:

◆ vita2d_texture_get_format()

SceGxmTextureFormat vita2d_texture_get_format ( const vita2d_texture texture)
Here is the caller graph for this function:

◆ vita2d_texture_get_height()

unsigned int vita2d_texture_get_height ( const vita2d_texture texture)
Here is the caller graph for this function:

◆ vita2d_texture_get_mag_filter()

SceGxmTextureFilter vita2d_texture_get_mag_filter ( const vita2d_texture texture)

◆ vita2d_texture_get_min_filter()

SceGxmTextureFilter vita2d_texture_get_min_filter ( const vita2d_texture texture)

◆ vita2d_texture_get_palette()

void* vita2d_texture_get_palette ( const vita2d_texture texture)

◆ vita2d_texture_get_stride()

unsigned int vita2d_texture_get_stride ( const vita2d_texture texture)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_texture_get_width()

unsigned int vita2d_texture_get_width ( const vita2d_texture texture)
Here is the caller graph for this function:

◆ vita2d_texture_set_filters()

void vita2d_texture_set_filters ( vita2d_texture texture,
SceGxmTextureFilter  min_filter,
SceGxmTextureFilter  mag_filter 
)
Here is the caller graph for this function:

◆ vita2d_texture_set_program()

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

◆ vita2d_texture_set_tint_color_uniform()

void vita2d_texture_set_tint_color_uniform ( unsigned int  color)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_texture_set_tint_program()

void vita2d_texture_set_tint_program ( )
Here is the call graph for this function:

◆ vita2d_texture_set_wvp()

void vita2d_texture_set_wvp ( float  x,
float  y,
float  width,
float  height 
)

ADVANCED

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vita2d_wait_rendering_done()

void vita2d_wait_rendering_done ( )
Here is the caller graph for this function: