16 #ifndef CTR_COMMON_H__ 17 #define CTR_COMMON_H__ 21 #define COLOR_ABGR(r, g, b, a) (((unsigned)(a) << 24) | ((b) << 16) | ((g) << 8) | ((r) << 0)) 23 #define CTR_TOP_FRAMEBUFFER_WIDTH 400 24 #define CTR_TOP_FRAMEBUFFER_HEIGHT 240 132 int viewport_width,
int viewport_height,
133 int texture_width,
int texture_height)
135 vec->x = -2.0 / viewport_width;
136 vec->y = -2.0 / viewport_height;
137 vec->u = 1.0 / texture_width;
138 vec->v = -1.0 / texture_height;
142 #endif // CTR_COMMON_H__ int texture_height
Definition: ctr_common.h:70
Definition: ctr_common.h:120
bool ppf_event_pending
Definition: ctr_common.h:108
const u8 ctr_sprite_shbin[]
shaderProgram_s shader
Definition: ctr_common.h:86
Definition: ctr_common.h:37
struct ctr_video::@171 menu
struct ctr_texture ctr_texture_t
#define INLINE
Definition: retro_inline.h:35
struct ctr_video::@170::@173 top
int active_height
Definition: ctr_common.h:125
void * texture_swizzled
Definition: ctr_common.h:68
video_viewport_t vp
Definition: ctr_common.h:88
bool should_resize
Definition: ctr_common.h:97
ctr_vertex_t * buffer
Definition: ctr_common.h:113
int active_width
Definition: ctr_common.h:124
void * left
Definition: ctr_common.h:57
bool lcd_buttom_on
Definition: ctr_common.h:98
Definition: civetweb.c:1019
int height
Definition: ctr_common.h:123
uint32_t * display_list
Definition: ctr_common.h:65
bool vsync
Definition: ctr_common.h:91
unsigned rotation
Definition: ctr_common.h:95
enum texture_filter_type type
Definition: ctr_common.h:127
Definition: ctr_common.h:48
float x
Definition: ctr_common.h:34
struct ctr_video::@172 vertex_cache
ctr_video_mode_enum
Definition: ctr_common.h:43
DVLB_s * dvlb
Definition: ctr_common.h:85
Definition: ctr_common.h:46
int display_list_size
Definition: ctr_common.h:66
ctr_scale_vector_t scale_vector
Definition: ctr_common.h:71
GLdouble u1
Definition: glext.h:9211
void * texture_linear
Definition: ctr_common.h:67
GLfloat v0
Definition: glext.h:6701
s16 y1
Definition: ctr_common.h:39
bool smooth
Definition: ctr_common.h:92
texture_filter_type
Definition: video_defines.h:24
struct ctr_video ctr_video_t
void * empty_framebuffer
Definition: ctr_common.h:101
ctr_vertex_t * current
Definition: ctr_common.h:114
static INLINE void ctr_set_scale_vector(ctr_scale_vector_t *vec, int viewport_width, int viewport_height, int texture_width, int texture_height)
Definition: ctr_common.h:131
bool rgb32
Definition: ctr_common.h:90
int texture_width
Definition: ctr_common.h:69
Definition: ctr_common.h:29
int16_t s16
16bit signed integer
Definition: gctypes.h:23
struct ctr_video::@170 drawbuffers
int width
Definition: ctr_common.h:122
aptHookCookie lcd_aptHook
Definition: ctr_common.h:103
void * depthbuffer
Definition: ctr_common.h:61
Definition: video_driver.h:686
bool keep_aspect
Definition: ctr_common.h:96
ctr_video_mode_enum video_mode
Definition: ctr_common.h:104
float u
Definition: ctr_common.h:32
const u32 ctr_sprite_shbin_size
void * data
Definition: ctr_common.h:128
Definition: ctr_common.h:45
void * right
Definition: ctr_common.h:58
float v
Definition: ctr_common.h:31
int size
Definition: ctr_common.h:115
Definition: ctr_common.h:47
bool menu_texture_frame_enable
Definition: ctr_common.h:94
bool p3d_event_pending
Definition: ctr_common.h:107
Definition: ctr_common.h:51
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
int current_buffer_top
Definition: ctr_common.h:105
bool menu_texture_enable
Definition: ctr_common.h:93
float y
Definition: ctr_common.h:33
unsigned int uint32_t
Definition: stdint.h:126
s16 v1
Definition: ctr_common.h:40
ctr_vertex_t * frame_coords
Definition: ctr_common.h:72
volatile bool vsync_event_pending
Definition: ctr_common.h:109
bool msg_rendering_enabled
Definition: ctr_common.h:99