306#define PVR_SHADE_FLAT 0
307#define PVR_SHADE_GOURAUD 1
320#define PVR_DEPTHWRITE_ENABLE 0
321#define PVR_DEPTHWRITE_DISABLE 1
335#define PVR_TEXTURE_DISABLE 0
336#define PVR_TEXTURE_ENABLE 1
350#define PVR_BLEND_DISABLE 0
351#define PVR_BLEND_ENABLE 1
368#define PVR_CLRCLAMP_DISABLE 0
369#define PVR_CLRCLAMP_ENABLE 1
387#define PVR_SPECULAR_DISABLE 0
388#define PVR_SPECULAR_ENABLE 1
400#define PVR_ALPHA_DISABLE 0
401#define PVR_ALPHA_ENABLE 1
413#define PVR_TXRALPHA_ENABLE 0
414#define PVR_TXRALPHA_DISABLE 1
434#define PVR_UVFLIP_NONE 0
435#define PVR_UVFLIP_V 1
436#define PVR_UVFLIP_U 2
437#define PVR_UVFLIP_UV 3
450#define PVR_UVCLAMP_NONE 0
451#define PVR_UVCLAMP_V 1
452#define PVR_UVCLAMP_U 2
453#define PVR_UVCLAMP_UV 3
462#define PVR_MIPBIAS_NORMAL PVR_MIPBIAS_1_00
463#define PVR_MIPBIAS_0_25 1
464#define PVR_MIPBIAS_0_50 2
465#define PVR_MIPBIAS_0_75 3
466#define PVR_MIPBIAS_1_00 4
467#define PVR_MIPBIAS_1_25 5
468#define PVR_MIPBIAS_1_50 6
469#define PVR_MIPBIAS_1_75 7
470#define PVR_MIPBIAS_2_00 8
471#define PVR_MIPBIAS_2_25 9
472#define PVR_MIPBIAS_2_50 10
473#define PVR_MIPBIAS_2_75 11
474#define PVR_MIPBIAS_3_00 12
475#define PVR_MIPBIAS_3_25 13
476#define PVR_MIPBIAS_3_50 14
477#define PVR_MIPBIAS_3_75 15
486#define PVR_MIPMAP_DISABLE 0
487#define PVR_MIPMAP_ENABLE 1
499#define PVR_TXRFMT_NONE 0
500#define PVR_TXRFMT_VQ_DISABLE (0 << 30)
501#define PVR_TXRFMT_VQ_ENABLE (1 << 30)
502#define PVR_TXRFMT_ARGB1555 (0 << 27)
503#define PVR_TXRFMT_RGB565 (1 << 27)
504#define PVR_TXRFMT_ARGB4444 (2 << 27)
505#define PVR_TXRFMT_YUV422 (3 << 27)
506#define PVR_TXRFMT_BUMP (4 << 27)
507#define PVR_TXRFMT_PAL4BPP (5 << 27)
508#define PVR_TXRFMT_PAL8BPP (6 << 27)
509#define PVR_TXRFMT_TWIDDLED (0 << 26)
510#define PVR_TXRFMT_NONTWIDDLED (1 << 26)
511#define PVR_TXRFMT_POW2_STRIDE (0 << 25)
512#define PVR_TXRFMT_X32_STRIDE (1 << 25)
525#define PVR_TXRFMT_8BPP_PAL(x) ((x) << 25)
530#define PVR_TXRFMT_4BPP_PAL(x) ((x) << 21)
541#define PVR_CLRFMT_ARGBPACKED 0
542#define PVR_CLRFMT_4FLOATS 1
543#define PVR_CLRFMT_INTENSITY 2
544#define PVR_CLRFMT_INTENSITY_PREV 3
552#define PVR_UVFMT_32BIT 0
553#define PVR_UVFMT_16BIT 1
566#define PVR_MODIFIER_DISABLE 0
567#define PVR_MODIFIER_ENABLE 1
575#define PVR_MODIFIER_CHEAP_SHADOW 0
576#define PVR_MODIFIER_NORMAL 1
589#define PVR_MODIFIER_OTHER_POLY 0
590#define PVR_MODIFIER_INCLUDE_LAST_POLY 1
591#define PVR_MODIFIER_EXCLUDE_LAST_POLY 2
607#define pvr_poly_ic_hdr pvr_poly_hdr
617#define pvr_poly_mod_hdr pvr_poly_hdr
627#define pvr_sprite_hdr pvr_poly_hdr
637#define pvr_mod_hdr pvr_poly_hdr
656typedef struct pvr_vertex {
684typedef struct pvr_vertex_pcm {
704typedef struct pvr_vertex_tpcm {
736typedef struct pvr_sprite_txr {
761typedef struct pvr_sprite_col {
786typedef struct pvr_modifier_vol {
817#define PVR_CMD_POLYHDR 0x80840000
819#define PVR_CMD_VERTEX 0xe0000000
820#define PVR_CMD_VERTEX_EOL 0xf0000000
821#define PVR_CMD_USERCLIP 0x20000000
822#define PVR_CMD_MODIFIER 0x80000000
823#define PVR_CMD_SPRITE 0xA0000000
829#define PVR_TA_CMD_TYPE_SHIFT 24
830#define PVR_TA_CMD_TYPE_MASK (7 << PVR_TA_CMD_TYPE_SHIFT)
832#define PVR_TA_CMD_USERCLIP_SHIFT 16
833#define PVR_TA_CMD_USERCLIP_MASK (3 << PVR_TA_CMD_USERCLIP_SHIFT)
835#define PVR_TA_CMD_CLRFMT_SHIFT 4
836#define PVR_TA_CMD_CLRFMT_MASK (7 << PVR_TA_CMD_CLRFMT_SHIFT)
838#define PVR_TA_CMD_SPECULAR_SHIFT 2
839#define PVR_TA_CMD_SPECULAR_MASK (1 << PVR_TA_CMD_SPECULAR_SHIFT)
841#define PVR_TA_CMD_SHADE_SHIFT 1
842#define PVR_TA_CMD_SHADE_MASK (1 << PVR_TA_CMD_SHADE_SHIFT)
844#define PVR_TA_CMD_UVFMT_SHIFT 0
845#define PVR_TA_CMD_UVFMT_MASK (1 << PVR_TA_CMD_UVFMT_SHIFT)
847#define PVR_TA_CMD_MODIFIER_SHIFT 7
848#define PVR_TA_CMD_MODIFIER_MASK (1 << PVR_TA_CMD_MODIFIER_SHIFT)
850#define PVR_TA_CMD_MODIFIERMODE_SHIFT 6
851#define PVR_TA_CMD_MODIFIERMODE_MASK (1 << PVR_TA_CMD_MODIFIERMODE_SHIFT)
853#define PVR_TA_PM1_DEPTHCMP_SHIFT 29
854#define PVR_TA_PM1_DEPTHCMP_MASK (7 << PVR_TA_PM1_DEPTHCMP_SHIFT)
856#define PVR_TA_PM1_CULLING_SHIFT 27
857#define PVR_TA_PM1_CULLING_MASK (3 << PVR_TA_PM1_CULLING_SHIFT)
859#define PVR_TA_PM1_DEPTHWRITE_SHIFT 26
860#define PVR_TA_PM1_DEPTHWRITE_MASK (1 << PVR_TA_PM1_DEPTHWRITE_SHIFT)
862#define PVR_TA_PM1_TXRENABLE_SHIFT 25
863#define PVR_TA_PM1_TXRENABLE_MASK (1 << PVR_TA_PM1_TXRENABLE_SHIFT)
865#define PVR_TA_PM1_MODIFIERINST_SHIFT 29
866#define PVR_TA_PM1_MODIFIERINST_MASK (3 << PVR_TA_PM1_MODIFIERINST_SHIFT)
868#define PVR_TA_PM2_SRCBLEND_SHIFT 29
869#define PVR_TA_PM2_SRCBLEND_MASK (7 << PVR_TA_PM2_SRCBLEND_SHIFT)
871#define PVR_TA_PM2_DSTBLEND_SHIFT 26
872#define PVR_TA_PM2_DSTBLEND_MASK (7 << PVR_TA_PM2_DSTBLEND_SHIFT)
874#define PVR_TA_PM2_SRCENABLE_SHIFT 25
875#define PVR_TA_PM2_SRCENABLE_MASK (1 << PVR_TA_PM2_SRCENABLE_SHIFT)
877#define PVR_TA_PM2_DSTENABLE_SHIFT 24
878#define PVR_TA_PM2_DSTENABLE_MASK (1 << PVR_TA_PM2_DSTENABLE_SHIFT)
880#define PVR_TA_PM2_FOG_SHIFT 22
881#define PVR_TA_PM2_FOG_MASK (3 << PVR_TA_PM2_FOG_SHIFT)
883#define PVR_TA_PM2_CLAMP_SHIFT 21
884#define PVR_TA_PM2_CLAMP_MASK (1 << PVR_TA_PM2_CLAMP_SHIFT)
886#define PVR_TA_PM2_ALPHA_SHIFT 20
887#define PVR_TA_PM2_ALPHA_MASK (1 << PVR_TA_PM2_ALPHA_SHIFT)
889#define PVR_TA_PM2_TXRALPHA_SHIFT 19
890#define PVR_TA_PM2_TXRALPHA_MASK (1 << PVR_TA_PM2_TXRALPHA_SHIFT)
892#define PVR_TA_PM2_UVFLIP_SHIFT 17
893#define PVR_TA_PM2_UVFLIP_MASK (3 << PVR_TA_PM2_UVFLIP_SHIFT)
895#define PVR_TA_PM2_UVCLAMP_SHIFT 15
896#define PVR_TA_PM2_UVCLAMP_MASK (3 << PVR_TA_PM2_UVCLAMP_SHIFT)
898#define PVR_TA_PM2_FILTER_SHIFT 12
899#define PVR_TA_PM2_FILTER_MASK (7 << PVR_TA_PM2_FILTER_SHIFT)
901#define PVR_TA_PM2_MIPBIAS_SHIFT 8
902#define PVR_TA_PM2_MIPBIAS_MASK (15 << PVR_TA_PM2_MIPBIAS_SHIFT)
904#define PVR_TA_PM2_TXRENV_SHIFT 6
905#define PVR_TA_PM2_TXRENV_MASK (3 << PVR_TA_PM2_TXRENV_SHIFT)
907#define PVR_TA_PM2_USIZE_SHIFT 3
908#define PVR_TA_PM2_USIZE_MASK (7 << PVR_TA_PM2_USIZE_SHIFT)
910#define PVR_TA_PM2_VSIZE_SHIFT 0
911#define PVR_TA_PM2_VSIZE_MASK (7 << PVR_TA_PM2_VSIZE_SHIFT)
913#define PVR_TA_PM3_MIPMAP_SHIFT 31
914#define PVR_TA_PM3_MIPMAP_MASK (1 << PVR_TA_PM3_MIPMAP_SHIFT)
916#define PVR_TA_PM3_TXRFMT_SHIFT 0
917#define PVR_TA_PM3_TXRFMT_MASK 0xffffffff
929#define PVR_TA_CMD_TYPE GENMASK(26, 24)
930#define PVR_TA_CMD_USERCLIP GENMASK(17, 16)
931#define PVR_TA_CMD_MODIFIER BIT(7)
932#define PVR_TA_CMD_MODIFIERMODE BIT(6)
933#define PVR_TA_CMD_CLRFMT GENMASK(5, 4)
934#define PVR_TA_CMD_TXRENABLE BIT(3)
935#define PVR_TA_CMD_SPECULAR BIT(2)
936#define PVR_TA_CMD_SHADE BIT(1)
937#define PVR_TA_CMD_UVFMT BIT(0)
938#define PVR_TA_PM1_DEPTHCMP GENMASK(31, 29)
939#define PVR_TA_PM1_CULLING GENMASK(28, 27)
940#define PVR_TA_PM1_DEPTHWRITE BIT(26)
941#define PVR_TA_PM1_TXRENABLE BIT(25)
942#define PVR_TA_PM1_MODIFIERINST GENMASK(30, 29)
943#define PVR_TA_PM2_SRCBLEND GENMASK(31, 29)
944#define PVR_TA_PM2_DSTBLEND GENMASK(28, 26)
945#define PVR_TA_PM2_SRCENABLE BIT(25)
946#define PVR_TA_PM2_DSTENABLE BIT(24)
947#define PVR_TA_PM2_FOG GENMASK(23, 22)
948#define PVR_TA_PM2_CLAMP BIT(21)
949#define PVR_TA_PM2_ALPHA BIT(20)
950#define PVR_TA_PM2_TXRALPHA BIT(19)
951#define PVR_TA_PM2_UVFLIP GENMASK(18, 17)
952#define PVR_TA_PM2_UVCLAMP GENMASK(16, 15)
953#define PVR_TA_PM2_FILTER GENMASK(14, 13)
954#define PVR_TA_PM2_MIPBIAS GENMASK(11, 8)
955#define PVR_TA_PM2_TXRENV GENMASK(7, 6)
956#define PVR_TA_PM2_USIZE GENMASK(5, 3)
957#define PVR_TA_PM2_VSIZE GENMASK(2, 0)
958#define PVR_TA_PM3_MIPMAP BIT(31)
959#define PVR_TA_PM3_TXRFMT GENMASK(30, 21)
976#define PVR_BINSIZE_0 0
977#define PVR_BINSIZE_8 8
978#define PVR_BINSIZE_16 16
979#define PVR_BINSIZE_32 32
1310#define pvr_dr_target(vtx_buf_ptr) \
1311 ({ (vtx_buf_ptr) ^= 32; \
1312 (pvr_vertex_t *)(MEM_AREA_SQ_BASE | (vtx_buf_ptr)); \
1320#define pvr_dr_commit(addr) sq_flush(addr)
1477 int textureformat,
int tw,
int th,
pvr_ptr_t textureaddr,
1521 int textureformat,
int tw,
int th,
pvr_ptr_t textureaddr,
1594 int textureformat,
int tw,
int th,
1596 int textureformat2,
int tw2,
int th2,
1597 pvr_ptr_t textureaddr2,
int filtering2);
Cache management functionality.
Various common macros used throughout the codebase.
static uint32_t("Please see purupuru_effect_t for modern equivalent.") PURUPURU_EFFECT2_UINTENSITY(uint8_t x)
Definition purupuru.h:96
void pvr_sprite_cxt_txr(pvr_sprite_cxt_t *dst, pvr_list_t list, int textureformat, int tw, int th, pvr_ptr_t textureaddr, int filtering)
Fill in a sprite context for a textured sprite.
void pvr_poly_cxt_col_mod(pvr_poly_cxt_t *dst, pvr_list_t list)
Fill in a polygon context for non-textured polygons affected by a modifier volume.
void pvr_poly_cxt_txr_mod(pvr_poly_cxt_t *dst, pvr_list_t list, int textureformat, int tw, int th, pvr_ptr_t textureaddr, int filtering, int textureformat2, int tw2, int th2, pvr_ptr_t textureaddr2, int filtering2)
Fill in a polygon context for a textured polygon affected by modifier volumes.
void pvr_poly_cxt_txr(pvr_poly_cxt_t *dst, pvr_list_t list, int textureformat, int tw, int th, pvr_ptr_t textureaddr, int filtering)
Fill in a polygon context for a textured polygon.
void pvr_poly_cxt_col(pvr_poly_cxt_t *dst, pvr_list_t list)
Fill in a polygon context for non-textured polygons.
void pvr_sprite_cxt_col(pvr_sprite_cxt_t *dst, pvr_list_t list)
Fill in a sprite context for non-textured sprites.
void pvr_send_to_ta(void *data)
Upload a 32-byte payload to the Tile Accelerator.
void pvr_dr_init(pvr_dr_state_t *vtx_buf_ptr)
Initialize a state variable for Direct Rendering.
uint32_t pvr_dr_state_t
Direct Rendering state variable type.
Definition pvr.h:1290
void pvr_dr_finish(void)
Finish work with Direct Rendering.
int pvr_shutdown(void)
Shut down the PVR chip from ready status.
int pvr_init_defaults(void)
Simple PVR initialization.
int pvr_init(const pvr_init_params_t *params)
Initialize the PVR chip to ready status.
void * pvr_set_vertbuf(pvr_list_t list, void *buffer, size_t len)
Setup a vertex buffer for one of the list types.
int pvr_list_flush(pvr_list_t list)
Flush the buffered data of the given list type to the TA.
int pvr_prim(const void *data, size_t size)
Submit a primitive of the current list type.
int pvr_list_finish(void)
End collecting data for the current list type.
int pvr_list_prim(pvr_list_t list, const void *data, size_t size)
Submit a primitive of the given list type.
int pvr_list_begin(pvr_list_t list)
Begin collecting data for the given list type.
uint32_t pvr_list_t
PVR list specification.
Definition pvr.h:78
void pvr_mod_compile(pvr_mod_hdr_t *dst, pvr_list_t list, uint32_t mode, uint32_t cull)
Create a modifier volume header.
void pvr_poly_compile(pvr_poly_hdr_t *dst, const pvr_poly_cxt_t *src)
Compile a polygon context into a polygon header.
void pvr_poly_mod_compile(pvr_poly_mod_hdr_t *dst, const pvr_poly_cxt_t *src)
Compile a polygon context into a polygon header that is affected by modifier volumes.
void pvr_sprite_compile(pvr_sprite_hdr_t *dst, const pvr_sprite_cxt_t *src)
Compile a sprite context into a sprite header.
int pvr_scene_finish(void)
Call this after you have finished submitting all data for a frame.
void pvr_scene_begin_txr(pvr_ptr_t txr, uint32_t *rx, uint32_t *ry)
Begin collecting data for a frame of 3D output to the specified texture.
void pvr_scene_begin(void)
Begin collecting data for a frame of 3D output to the off-screen frame buffer.
int pvr_check_ready(void)
Check if the PVR system is ready for another frame to be submitted.
int pvr_wait_ready(void)
Block the caller until the PVR system is ready for another frame to be submitted.
int pvr_wait_render_done(void)
Block the caller until the PVR has finished rendering the previous frame.
#define PVR_TXRFMT_POW2_STRIDE
Stride is a power-of-two.
Definition pvr.h:511
static const uint32_t PVR_TXRFMT_STRIDE("Please use PVR_TXRFMT_X32_STRIDE. Note this may cause breakage as PVR_TXRFMT_STRIDE was never working correctly.")
static const uint32_t PVR_TXRFMT_NOSTRIDE("Please use PVR_TXRFMT_POW2_STRIDE.")
#define PVR_TXRFMT_X32_STRIDE
Stride is multiple of 32.
Definition pvr.h:512
pvr_ptr_t pvr_get_back_buffer(void)
Get a pointer to the back buffer.
pvr_ptr_t pvr_get_front_buffer(void)
Get a pointer to the front buffer.
void pvr_vertbuf_written(pvr_list_t list, size_t amt)
Notify the PVR system that data have been written into the output buffer for the given list.
int pvr_vertex_dma_enabled(void)
Is vertex DMA enabled?
void * pvr_vertbuf_tail(pvr_list_t list)
Retrieve a pointer to the current output location in the DMA buffer for the requested list.
void * pvr_ptr_t
PVR texture memory pointer.
Definition pvr_mem.h:45
Platform-independent image type.
Constants for areas of the system memory map.
API for utilizing the DMA with the PVR for rendering.
Public API for the PVR's hardware fog.
VRAM Management and Access.
Miscellaneous utilities for the PVR API.
Palette API for the PowerVR.
Texture management with the PVR 3D API.
Macros to help dealing with register fields.
Functions to access the SH4 Store Queues.
PVR initialization structure.
Definition pvr.h:993
int fsaa_enabled
Enable horizontal scaling?
Definition pvr.h:1017
int vbuf_doublebuf_disabled
Disable vertex buffer double-buffering.
Definition pvr.h:1043
int dma_enabled
Enable vertex DMA?
Definition pvr.h:1010
int vertex_buf_size
Vertex buffer size (should be a nice round number)
Definition pvr.h:1002
int autosort_disabled
Disable translucent polygon autosort?
Definition pvr.h:1025
int opb_overflow_count
OPB Overflow Count.
Definition pvr.h:1036
PVR vertex type: Modifier volume.
Definition pvr.h:786
uint32_t d1
Dummy value.
Definition pvr.h:798
uint32_t d4
Dummy value.
Definition pvr.h:801
float by
Second Y coordinate.
Definition pvr.h:793
float ay
First Y coordinate.
Definition pvr.h:790
float ax
First X coordinate.
Definition pvr.h:789
uint32_t d3
Dummy value.
Definition pvr.h:800
float cz
Third Z coordinate.
Definition pvr.h:797
float bz
Second Z coordinate.
Definition pvr.h:794
float cy
Third Y coordinate.
Definition pvr.h:796
uint32_t d6
Dummy value.
Definition pvr.h:803
uint32_t d2
Dummy value.
Definition pvr.h:799
uint32_t d5
Dummy value.
Definition pvr.h:802
float bx
Second X coordinate.
Definition pvr.h:792
float az
First Z coordinate.
Definition pvr.h:791
float cx
Third X coordinate.
Definition pvr.h:795
PVR polygon context.
Definition pvr.h:112
int clip_mode
Clipping mode.
Definition pvr.h:126
int modifier_mode
Modifier mode.
Definition pvr.h:128
int mipmap_bias
Mipmap bias.
Definition pvr.h:177
int src2
Source blending mode inside modifier.
Definition pvr.h:147
int write
Enable or disable depth writes.
Definition pvr.h:167
int dst_enable
Dest blending enable outside modifier.
Definition pvr.h:145
int dst
Dest blending mode outside modifier.
Definition pvr.h:141
int fog_type2
Fog type inside modifier.
Definition pvr.h:133
int src
Source blending mode outside modifier.
Definition pvr.h:139
int color_clamp2
Color clamp enable/disable inside modifier.
Definition pvr.h:135
int alpha2
Enable/disable alpha inside modifier.
Definition pvr.h:131
int env
Texture color contribution.
Definition pvr.h:185
pvr_ptr_t base
Texture pointer.
Definition pvr.h:191
int culling
Culling mode.
Definition pvr.h:122
int width
Texture width (requires a power of 2)
Definition pvr.h:187
int color
Color format in vertex.
Definition pvr.h:157
int specular
Offset color enable/disable outside modifier.
Definition pvr.h:129
int height
Texture height (requires a power of 2)
Definition pvr.h:188
int comparison
Depth comparison mode.
Definition pvr.h:165
int src_enable
Source blending enable outside modifier.
Definition pvr.h:143
int dst2
Dest blending mode inside modifier.
Definition pvr.h:149
int fog_type
Fog type outside modifier.
Definition pvr.h:120
int shading
Shading type.
Definition pvr.h:118
int modifier
Enable or disable modifier effect.
Definition pvr.h:161
int uv_flip
Enable/disable U/V flipping.
Definition pvr.h:179
int list_type
Primitive list.
Definition pvr.h:113
int mipmap
Enable/disable mipmaps.
Definition pvr.h:175
int dst_enable2
Dest blending mode inside modifier.
Definition pvr.h:153
int filter
Filtering mode.
Definition pvr.h:173
int src_enable2
Source blending mode inside modifier.
Definition pvr.h:151
int color_clamp
Color clamp enable/disable outside modifier.
Definition pvr.h:124
int uv_clamp
Enable/disable U/V clamping.
Definition pvr.h:181
int alpha
Enable or disable alpha outside modifier.
Definition pvr.h:116
int format
Texture format.
Definition pvr.h:189
int enable
Enable/disable texturing.
Definition pvr.h:171
int uv
U/V data format in vertex.
Definition pvr.h:159
PVR polygon header.
Definition pvr_header.h:309
PVR vertex type: Untextured sprite.
Definition pvr.h:761
float bz
Second Z coordinate.
Definition pvr.h:769
float ay
First Y coordinate.
Definition pvr.h:765
uint32_t d3
Dummy value.
Definition pvr.h:777
float cz
Third Z coordinate.
Definition pvr.h:772
float bx
Second X coordinate.
Definition pvr.h:767
uint32_t d1
Dummy value.
Definition pvr.h:775
float cy
Third Y coordinate.
Definition pvr.h:771
float ax
First X coordinate.
Definition pvr.h:764
float by
Second Y coordinate.
Definition pvr.h:768
uint32_t d4
Dummy value.
Definition pvr.h:778
float dy
Fourth Y coordinate.
Definition pvr.h:774
uint32_t d2
Dummy value.
Definition pvr.h:776
float cx
Third X coordinate.
Definition pvr.h:770
float az
First Z coordinate.
Definition pvr.h:766
float dx
Fourth X coordinate.
Definition pvr.h:773
PVR sprite context.
Definition pvr.h:231
int color_clamp
Color clamp enable/disable.
Definition pvr.h:241
int write
Enable or disable depth writes.
Definition pvr.h:261
int env
Texture color contribution.
Definition pvr.h:279
int enable
Enable/disable texturing.
Definition pvr.h:265
int src_enable
Source blending enable.
Definition pvr.h:253
int dst
Dest blending mode.
Definition pvr.h:251
int clip_mode
Clipping mode.
Definition pvr.h:243
int list_type
Primitive list.
Definition pvr.h:232
int dst_enable
Dest blending enable.
Definition pvr.h:255
int specular
Offset color enable/disable.
Definition pvr.h:245
int src
Source blending mode.
Definition pvr.h:249
int alpha
Enable or disable alpha.
Definition pvr.h:235
int width
Texture width (requires a power of 2)
Definition pvr.h:281
int filter
Filtering mode.
Definition pvr.h:267
int comparison
Depth comparison mode.
Definition pvr.h:259
pvr_ptr_t base
Texture pointer.
Definition pvr.h:285
int mipmap
Enable/disable mipmaps.
Definition pvr.h:269
int mipmap_bias
Mipmap bias.
Definition pvr.h:271
int uv_flip
Enable/disable U/V flipping.
Definition pvr.h:273
int uv_clamp
Enable/disable U/V clamping.
Definition pvr.h:275
int fog_type
Fog type.
Definition pvr.h:237
int height
Texture height (requires a power of 2)
Definition pvr.h:282
int format
Texture format.
Definition pvr.h:283
int culling
Culling mode.
Definition pvr.h:239
PVR vertex type: Textured sprite.
Definition pvr.h:736
float bz
Second Z coordinate.
Definition pvr.h:744
float dx
Fourth X coordinate.
Definition pvr.h:748
float az
First Z coordinate.
Definition pvr.h:741
float ax
First X coordinate.
Definition pvr.h:739
uint32_t buv
Second U/V texture coordinates.
Definition pvr.h:752
float cz
Third Z coordinate.
Definition pvr.h:747
uint32_t dummy
Dummy value.
Definition pvr.h:750
float by
Second Y coordinate.
Definition pvr.h:743
uint32_t auv
First U/V texture coordinates.
Definition pvr.h:751
float dy
Fourth Y coordinate.
Definition pvr.h:749
float cx
Third X coordinate.
Definition pvr.h:745
uint32_t cuv
Third U/V texture coordinates.
Definition pvr.h:753
float bx
Second X coordinate.
Definition pvr.h:742
float cy
Third Y coordinate.
Definition pvr.h:746
float ay
First Y coordinate.
Definition pvr.h:740
PVR vertex type: Non-textured, packed color, affected by modifier volume.
Definition pvr.h:684
float z
Z coordinate.
Definition pvr.h:689
uint32_t d1
Dummy value.
Definition pvr.h:692
uint32_t argb0
Vertex color (outside volume)
Definition pvr.h:690
float x
X coordinate.
Definition pvr.h:687
float y
Y coordinate.
Definition pvr.h:688
uint32_t d2
Dummy value.
Definition pvr.h:693
uint32_t argb1
Vertex color (inside volume)
Definition pvr.h:691
Generic PVR vertex type.
Definition pvr.h:656
float z
Z coordinate.
Definition pvr.h:661
float y
Y coordinate.
Definition pvr.h:660
float u
Texture U coordinate.
Definition pvr.h:664
uint32_t oargb
Vertex offset color.
Definition pvr.h:673
uint32_t argb1
Vertex color when modified, inside area.
Definition pvr.h:669
float x
X coordinate.
Definition pvr.h:659
float v
Texture V coordinate.
Definition pvr.h:665
uint32_t argb
Vertex color.
Definition pvr.h:672
uint32_t argb0
Vertex color when modified, outside area.
Definition pvr.h:668
PVR vertex type: Textured, packed color, affected by modifier volume.
Definition pvr.h:704
float z
Z coordinate.
Definition pvr.h:709
uint32_t oargb1
Vertex offset color (inside)
Definition pvr.h:717
uint32_t oargb0
Vertex offset color (outside)
Definition pvr.h:713
float x
X coordinate.
Definition pvr.h:707
float u0
Texture U coordinate (outside)
Definition pvr.h:710
uint32_t d2
Dummy value.
Definition pvr.h:719
float v0
Texture V coordinate (outside)
Definition pvr.h:711
uint32_t d4
Dummy value.
Definition pvr.h:721
float u1
Texture U coordinate (inside)
Definition pvr.h:714
float y
Y coordinate.
Definition pvr.h:708
float v1
Texture V coordinate (inside)
Definition pvr.h:715
uint32_t argb0
Vertex color (outside)
Definition pvr.h:712
uint32_t argb1
Vertex color (inside)
Definition pvr.h:716
uint32_t d1
Dummy value.
Definition pvr.h:718
uint32_t d3
Dummy value.
Definition pvr.h:720