5 #include <psp2/types.h> 6 #include <psp2/kernel/sysmem.h> 9 #define ALIGN(x, a) (((x) + ((a) - 1)) & ~((a) - 1)) 10 #define UNUSED(a) (void)(a) 11 #define SCREEN_DPI 220 23 #define _PI_OVER_180 0.0174532925199432957692369076849f 24 #define _180_OVER_PI 57.2957795130823208767981548141f 26 #define DEG_TO_RAD(x) (x * _PI_OVER_180) 27 #define RAD_TO_DEG(x) (x * _180_OVER_PI) void vertex_usse_free(SceUID uid)
Definition: utils.c:52
void matrix_init_orthographic(float *m, float left, float right, float bottom, float top, float near, float far)
Definition: utils.c:85
GLsizeiptr size
Definition: glext.h:6559
void gpu_free(SceUID uid)
Definition: utils.c:28
GLint GLint bottom
Definition: glext.h:8393
GLdouble GLdouble GLdouble GLdouble top
Definition: glext.h:11766
GLdouble GLdouble right
Definition: glext.h:11766
GLenum type
Definition: glext.h:6233
void * vertex_usse_alloc(unsigned int size, SceUID *uid, unsigned int *usse_offset)
Definition: utils.c:37
void * gpu_alloc(SceKernelMemBlockType type, unsigned int size, unsigned int alignment, unsigned int attribs, SceUID *uid)
Definition: utils.c:5
int SceUID
Definition: pte_types.h:24
void fragment_usse_free(SceUID uid)
Definition: utils.c:76
GLint left
Definition: glext.h:8393
const GLint * attribs
Definition: glext.h:11445
const GLfloat * m
Definition: glext.h:11755
void * fragment_usse_alloc(unsigned int size, SceUID *uid, unsigned int *usse_offset)
Definition: utils.c:61