KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
pvr_header.h File Reference

Polygon/Sprite header definitions. More...

#include <stdalign.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/cdefs.h>

Go to the source code of this file.

Data Structures

struct  pvr_poly_hdr_cmd
 PVR header command. More...
 
struct  pvr_poly_hdr_mode1
 PVR header mode1. More...
 
struct  pvr_poly_hdr_mode2
 PVR header mode2. More...
 
struct  pvr_poly_hdr_mode3
 PVR header mode3. More...
 
struct  pvr_poly_hdr_t
 PVR polygon header. More...
 

Typedefs

typedef uint32_t pvr_txr_ptr_t
 Texture address.
 

Enumerations

enum  pvr_color_fmts { PVR_CLRFMT_ARGBPACKED , PVR_CLRFMT_4FLOATS , PVR_CLRFMT_INTENSITY , PVR_CLRFMT_INTENSITY_PREV }
 Vertex color formats. More...
 
enum  pvr_clip_mode { PVR_USERCLIP_DISABLE = 0 , PVR_USERCLIP_INSIDE = 2 , PVR_USERCLIP_OUTSIDE = 3 }
 Primitive clipping modes. More...
 
enum  pvr_list_type {
  PVR_LIST_OP_POLY , PVR_LIST_OP_MOD , PVR_LIST_TR_POLY , PVR_LIST_TR_MOD ,
  PVR_LIST_PT_POLY
}
 PVR rendering lists. More...
 
enum  pvr_cull_mode { PVR_CULLING_NONE , PVR_CULLING_SMALL , PVR_CULLING_CCW , PVR_CULLING_CW }
 Primitive culling modes. More...
 
enum  pvr_depthcmp_mode {
  PVR_DEPTHCMP_NEVER , PVR_DEPTHCMP_LESS , PVR_DEPTHCMP_EQUAL , PVR_DEPTHCMP_LEQUAL ,
  PVR_DEPTHCMP_GREATER , PVR_DEPTHCMP_NOTEQUAL , PVR_DEPTHCMP_GEQUAL , PVR_DEPTHCMP_ALWAYS
}
 Depth comparison modes. More...
 
enum  pvr_uv_size {
  PVR_UV_SIZE_8 , PVR_UV_SIZE_16 , PVR_UV_SIZE_32 , PVR_UV_SIZE_64 ,
  PVR_UV_SIZE_128 , PVR_UV_SIZE_256 , PVR_UV_SIZE_512 , PVR_UV_SIZE_1024
}
 Texture U/V size. More...
 
enum  pvr_txr_shading_mode { PVR_TXRENV_REPLACE , PVR_TXRENV_MODULATE , PVR_TXRENV_DECAL , PVR_TXRENV_MODULATEALPHA }
 Texture color calculation modes. More...
 
enum  pvr_filter_mode {
  PVR_FILTER_NEAREST , PVR_FILTER_BILINEAR , PVR_FILTER_TRILINEAR1 , PVR_FILTER_TRILINEAR2 ,
  PVR_FILTER_NONE = PVR_FILTER_NEAREST
}
 Texture sampling modes. More...
 
enum  pvr_fog_type { PVR_FOG_TABLE , PVR_FOG_VERTEX , PVR_FOG_DISABLE , PVR_FOG_TABLE2 }
 Fog modes. More...
 
enum  pvr_blend_mode {
  PVR_BLEND_ZERO , PVR_BLEND_ONE , PVR_BLEND_DESTCOLOR , PVR_BLEND_INVDESTCOLOR ,
  PVR_BLEND_SRCALPHA , PVR_BLEND_INVSRCALPHA , PVR_BLEND_DESTALPHA , PVR_BLEND_INVDESTALPHA
}
 Blending modes. More...
 
enum  pvr_pixel_mode {
  PVR_PIXEL_MODE_ARGB1555 , PVR_PIXEL_MODE_RGB565 , PVR_PIXEL_MODE_ARGB4444 , PVR_PIXEL_MODE_YUV422 ,
  PVR_PIXEL_MODE_BUMP , PVR_PIXEL_MODE_PAL_4BPP , PVR_PIXEL_MODE_PAL_8BPP
}
 Texture formats. More...
 
enum  pvr_strip_len { PVR_STRIP_LEN_1 , PVR_STRIP_LEN_2 , PVR_STRIP_LEN_4 , PVR_STRIP_LEN_6 }
 Triangle strip length. More...
 
enum  pvr_hdr_type {
  PVR_HDR_EOL = 0 , PVR_HDR_USERCLIP = 1 , PVR_HDR_OBJECT_LIST_SET = 2 , PVR_HDR_POLY = 4 ,
  PVR_HDR_SPRITE = 5
}
 Polygon header type. More...
 

Functions

static pvr_txr_ptr_t to_pvr_txr_ptr (pvr_ptr_t addr)
 Get texture address from VRAM address.
 

Detailed Description

Polygon/Sprite header definitions.

Author
Paul Cercueil