RetroArch
Macros | Functions
utils.h File Reference
#include <psp2/gxm.h>
#include <psp2/types.h>
#include <psp2/kernel/sysmem.h>
Include dependency graph for utils.h:

Go to the source code of this file.

Macros

#define ALIGN(x, a)   (((x) + ((a) - 1)) & ~((a) - 1))
 
#define UNUSED(a)   (void)(a)
 
#define SCREEN_DPI   220
 
#define _PI_OVER_180   0.0174532925199432957692369076849f
 
#define _180_OVER_PI   57.2957795130823208767981548141f
 
#define DEG_TO_RAD(x)   (x * _PI_OVER_180)
 
#define RAD_TO_DEG(x)   (x * _180_OVER_PI)
 

Functions

voidgpu_alloc (SceKernelMemBlockType type, unsigned int size, unsigned int alignment, unsigned int attribs, SceUID *uid)
 
void gpu_free (SceUID uid)
 
voidvertex_usse_alloc (unsigned int size, SceUID *uid, unsigned int *usse_offset)
 
void vertex_usse_free (SceUID uid)
 
voidfragment_usse_alloc (unsigned int size, SceUID *uid, unsigned int *usse_offset)
 
void fragment_usse_free (SceUID uid)
 
void matrix_init_orthographic (float *m, float left, float right, float bottom, float top, float near, float far)
 

Macro Definition Documentation

◆ _180_OVER_PI

#define _180_OVER_PI   57.2957795130823208767981548141f

◆ _PI_OVER_180

#define _PI_OVER_180   0.0174532925199432957692369076849f

◆ ALIGN

#define ALIGN (   x,
  a 
)    (((x) + ((a) - 1)) & ~((a) - 1))

◆ DEG_TO_RAD

#define DEG_TO_RAD (   x)    (x * _PI_OVER_180)

◆ RAD_TO_DEG

#define RAD_TO_DEG (   x)    (x * _180_OVER_PI)

◆ SCREEN_DPI

#define SCREEN_DPI   220

◆ UNUSED

#define UNUSED (   a)    (void)(a)

Function Documentation

◆ fragment_usse_alloc()

void* fragment_usse_alloc ( unsigned int  size,
SceUID uid,
unsigned int *  usse_offset 
)
Here is the caller graph for this function:

◆ fragment_usse_free()

void fragment_usse_free ( SceUID  uid)
Here is the caller graph for this function:

◆ gpu_alloc()

void* gpu_alloc ( SceKernelMemBlockType  type,
unsigned int  size,
unsigned int  alignment,
unsigned int  attribs,
SceUID uid 
)
Here is the caller graph for this function:

◆ gpu_free()

void gpu_free ( SceUID  uid)
Here is the caller graph for this function:

◆ matrix_init_orthographic()

void matrix_init_orthographic ( float *  m,
float  left,
float  right,
float  bottom,
float  top,
float  near,
float  far 
)
Here is the caller graph for this function:

◆ vertex_usse_alloc()

void* vertex_usse_alloc ( unsigned int  size,
SceUID uid,
unsigned int *  usse_offset 
)
Here is the caller graph for this function:

◆ vertex_usse_free()

void vertex_usse_free ( SceUID  uid)
Here is the caller graph for this function: