RetroArch
Classes | Macros | Typedefs | Enumerations | Functions | Variables
ctr_common.h File Reference
#include <retro_inline.h>
Include dependency graph for ctr_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ctr_scale_vector_t
 
struct  ctr_vertex_t
 
struct  ctr_video
 
struct  ctr_texture
 

Macros

#define COLOR_ABGR(r, g, b, a)   (((unsigned)(a) << 24) | ((b) << 16) | ((g) << 8) | ((r) << 0))
 
#define CTR_TOP_FRAMEBUFFER_WIDTH   400
 
#define CTR_TOP_FRAMEBUFFER_HEIGHT   240
 

Typedefs

typedef struct ctr_video ctr_video_t
 
typedef struct ctr_texture ctr_texture_t
 

Enumerations

enum  ctr_video_mode_enum { CTR_VIDEO_MODE_NORMAL, CTR_VIDEO_MODE_800x240, CTR_VIDEO_MODE_400x240, CTR_VIDEO_MODE_3D }
 

Functions

static INLINE void ctr_set_scale_vector (ctr_scale_vector_t *vec, int viewport_width, int viewport_height, int texture_width, int texture_height)
 

Variables

const u8 ctr_sprite_shbin []
 
const u32 ctr_sprite_shbin_size
 

Macro Definition Documentation

◆ COLOR_ABGR

#define COLOR_ABGR (   r,
  g,
  b,
  a 
)    (((unsigned)(a) << 24) | ((b) << 16) | ((g) << 8) | ((r) << 0))

◆ CTR_TOP_FRAMEBUFFER_HEIGHT

#define CTR_TOP_FRAMEBUFFER_HEIGHT   240

◆ CTR_TOP_FRAMEBUFFER_WIDTH

#define CTR_TOP_FRAMEBUFFER_WIDTH   400

Typedef Documentation

◆ ctr_texture_t

typedef struct ctr_texture ctr_texture_t

◆ ctr_video_t

typedef struct ctr_video ctr_video_t

Enumeration Type Documentation

◆ ctr_video_mode_enum

Enumerator
CTR_VIDEO_MODE_NORMAL 
CTR_VIDEO_MODE_800x240 
CTR_VIDEO_MODE_400x240 
CTR_VIDEO_MODE_3D 

Function Documentation

◆ ctr_set_scale_vector()

static INLINE void ctr_set_scale_vector ( ctr_scale_vector_t vec,
int  viewport_width,
int  viewport_height,
int  texture_width,
int  texture_height 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ ctr_sprite_shbin

const u8 ctr_sprite_shbin[]

◆ ctr_sprite_shbin_size

const u32 ctr_sprite_shbin_size