KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Vertices

PowerVR vertex types. More...

Data Structures

struct  pvr_vertex_t
 Generic PVR vertex type. More...
 
struct  pvr_vertex_pcm_t
 PVR vertex type: Non-textured, packed color, affected by modifier volume. More...
 
struct  pvr_vertex_tpcm_t
 PVR vertex type: Textured, packed color, affected by modifier volume. More...
 
struct  pvr_sprite_txr_t
 PVR vertex type: Textured sprite. More...
 
struct  pvr_sprite_col_t
 PVR vertex type: Untextured sprite. More...
 
struct  pvr_modifier_vol_t
 PVR vertex type: Modifier volume. More...
 

Macros

#define PVR_PACK_COLOR(a, r, g, b)
 Pack four floating point color values into a 32-bit integer form.
 

Functions

static uint32_t PVR_PACK_16BIT_UV (float u, float v)
 Pack two floating point coordinates into one 32-bit value, truncating them to 16-bits each.
 

Detailed Description

PowerVR vertex types.

Macro Definition Documentation

◆ PVR_PACK_COLOR

#define PVR_PACK_COLOR (   a,
  r,
  g,
 
)
Value:
( \
( ((uint8)( a * 255 ) ) << 24 ) | \
( ((uint8)( r * 255 ) ) << 16 ) | \
( ((uint8)( g * 255 ) ) << 8 ) | \
( ((uint8)( b * 255 ) ) << 0 ) )
unsigned char uint8
8-bit unsigned integer
Definition types.h:35

Pack four floating point color values into a 32-bit integer form.

All of the color values should be between 0 and 1.

Parameters
aAlpha value
rRed value
gGreen value
bBlue value
Returns
The packed color value

Function Documentation

◆ PVR_PACK_16BIT_UV()

static uint32_t PVR_PACK_16BIT_UV ( float  u,
float  v 
)
inlinestatic

Pack two floating point coordinates into one 32-bit value, truncating them to 16-bits each.

Parameters
uFirst coordinate to pack
vSecond coordinate to pack
Returns
The packed coordinates