307#define PVR_SHADE_FLAT 0
308#define PVR_SHADE_GOURAUD 1
321#define PVR_DEPTHWRITE_ENABLE 0
322#define PVR_DEPTHWRITE_DISABLE 1
336#define PVR_TEXTURE_DISABLE 0
337#define PVR_TEXTURE_ENABLE 1
351#define PVR_BLEND_DISABLE 0
352#define PVR_BLEND_ENABLE 1
369#define PVR_CLRCLAMP_DISABLE 0
370#define PVR_CLRCLAMP_ENABLE 1
388#define PVR_SPECULAR_DISABLE 0
389#define PVR_SPECULAR_ENABLE 1
401#define PVR_ALPHA_DISABLE 0
402#define PVR_ALPHA_ENABLE 1
414#define PVR_TXRALPHA_ENABLE 0
415#define PVR_TXRALPHA_DISABLE 1
435#define PVR_UVFLIP_NONE 0
436#define PVR_UVFLIP_V 1
437#define PVR_UVFLIP_U 2
438#define PVR_UVFLIP_UV 3
451#define PVR_UVCLAMP_NONE 0
452#define PVR_UVCLAMP_V 1
453#define PVR_UVCLAMP_U 2
454#define PVR_UVCLAMP_UV 3
463#define PVR_MIPBIAS_NORMAL PVR_MIPBIAS_1_00
464#define PVR_MIPBIAS_0_25 1
465#define PVR_MIPBIAS_0_50 2
466#define PVR_MIPBIAS_0_75 3
467#define PVR_MIPBIAS_1_00 4
468#define PVR_MIPBIAS_1_25 5
469#define PVR_MIPBIAS_1_50 6
470#define PVR_MIPBIAS_1_75 7
471#define PVR_MIPBIAS_2_00 8
472#define PVR_MIPBIAS_2_25 9
473#define PVR_MIPBIAS_2_50 10
474#define PVR_MIPBIAS_2_75 11
475#define PVR_MIPBIAS_3_00 12
476#define PVR_MIPBIAS_3_25 13
477#define PVR_MIPBIAS_3_50 14
478#define PVR_MIPBIAS_3_75 15
487#define PVR_MIPMAP_DISABLE 0
488#define PVR_MIPMAP_ENABLE 1
500#define PVR_TXRFMT_NONE 0
501#define PVR_TXRFMT_VQ_DISABLE (0 << 30)
502#define PVR_TXRFMT_VQ_ENABLE (1 << 30)
503#define PVR_TXRFMT_ARGB1555 (0 << 27)
504#define PVR_TXRFMT_RGB565 (1 << 27)
505#define PVR_TXRFMT_ARGB4444 (2 << 27)
506#define PVR_TXRFMT_YUV422 (3 << 27)
507#define PVR_TXRFMT_BUMP (4 << 27)
508#define PVR_TXRFMT_PAL4BPP (5 << 27)
509#define PVR_TXRFMT_PAL8BPP (6 << 27)
510#define PVR_TXRFMT_TWIDDLED (0 << 26)
511#define PVR_TXRFMT_NONTWIDDLED (1 << 26)
512#define PVR_TXRFMT_POW2_STRIDE (0 << 25)
513#define PVR_TXRFMT_X32_STRIDE (1 << 25)
526#define PVR_TXRFMT_8BPP_PAL(x) ((x) << 25)
531#define PVR_TXRFMT_4BPP_PAL(x) ((x) << 21)
542#define PVR_CLRFMT_ARGBPACKED 0
543#define PVR_CLRFMT_4FLOATS 1
544#define PVR_CLRFMT_INTENSITY 2
545#define PVR_CLRFMT_INTENSITY_PREV 3
553#define PVR_UVFMT_32BIT 0
554#define PVR_UVFMT_16BIT 1
567#define PVR_MODIFIER_DISABLE 0
568#define PVR_MODIFIER_ENABLE 1
576#define PVR_MODIFIER_CHEAP_SHADOW 0
577#define PVR_MODIFIER_NORMAL 1
590#define PVR_MODIFIER_OTHER_POLY 0
591#define PVR_MODIFIER_INCLUDE_LAST_POLY 1
592#define PVR_MODIFIER_EXCLUDE_LAST_POLY 2
608#define pvr_poly_ic_hdr pvr_poly_hdr
618#define pvr_poly_mod_hdr pvr_poly_hdr
628#define pvr_sprite_hdr pvr_poly_hdr
638#define pvr_mod_hdr pvr_poly_hdr
657typedef struct pvr_vertex {
685typedef struct pvr_vertex_pcm {
705typedef struct pvr_vertex_tpcm {
737typedef struct pvr_sprite_txr {
762typedef struct pvr_sprite_col {
787typedef struct pvr_modifier_vol {
818#define PVR_CMD_POLYHDR 0x80840000
820#define PVR_CMD_VERTEX 0xe0000000
821#define PVR_CMD_VERTEX_EOL 0xf0000000
822#define PVR_CMD_USERCLIP 0x20000000
823#define PVR_CMD_MODIFIER 0x80000000
824#define PVR_CMD_SPRITE 0xA0000000
830#define PVR_TA_CMD_TYPE_SHIFT 24
831#define PVR_TA_CMD_TYPE_MASK (7 << PVR_TA_CMD_TYPE_SHIFT)
833#define PVR_TA_CMD_USERCLIP_SHIFT 16
834#define PVR_TA_CMD_USERCLIP_MASK (3 << PVR_TA_CMD_USERCLIP_SHIFT)
836#define PVR_TA_CMD_CLRFMT_SHIFT 4
837#define PVR_TA_CMD_CLRFMT_MASK (7 << PVR_TA_CMD_CLRFMT_SHIFT)
839#define PVR_TA_CMD_SPECULAR_SHIFT 2
840#define PVR_TA_CMD_SPECULAR_MASK (1 << PVR_TA_CMD_SPECULAR_SHIFT)
842#define PVR_TA_CMD_SHADE_SHIFT 1
843#define PVR_TA_CMD_SHADE_MASK (1 << PVR_TA_CMD_SHADE_SHIFT)
845#define PVR_TA_CMD_UVFMT_SHIFT 0
846#define PVR_TA_CMD_UVFMT_MASK (1 << PVR_TA_CMD_UVFMT_SHIFT)
848#define PVR_TA_CMD_MODIFIER_SHIFT 7
849#define PVR_TA_CMD_MODIFIER_MASK (1 << PVR_TA_CMD_MODIFIER_SHIFT)
851#define PVR_TA_CMD_MODIFIERMODE_SHIFT 6
852#define PVR_TA_CMD_MODIFIERMODE_MASK (1 << PVR_TA_CMD_MODIFIERMODE_SHIFT)
854#define PVR_TA_PM1_DEPTHCMP_SHIFT 29
855#define PVR_TA_PM1_DEPTHCMP_MASK (7 << PVR_TA_PM1_DEPTHCMP_SHIFT)
857#define PVR_TA_PM1_CULLING_SHIFT 27
858#define PVR_TA_PM1_CULLING_MASK (3 << PVR_TA_PM1_CULLING_SHIFT)
860#define PVR_TA_PM1_DEPTHWRITE_SHIFT 26
861#define PVR_TA_PM1_DEPTHWRITE_MASK (1 << PVR_TA_PM1_DEPTHWRITE_SHIFT)
863#define PVR_TA_PM1_TXRENABLE_SHIFT 25
864#define PVR_TA_PM1_TXRENABLE_MASK (1 << PVR_TA_PM1_TXRENABLE_SHIFT)
866#define PVR_TA_PM1_MODIFIERINST_SHIFT 29
867#define PVR_TA_PM1_MODIFIERINST_MASK (3 << PVR_TA_PM1_MODIFIERINST_SHIFT)
869#define PVR_TA_PM2_SRCBLEND_SHIFT 29
870#define PVR_TA_PM2_SRCBLEND_MASK (7 << PVR_TA_PM2_SRCBLEND_SHIFT)
872#define PVR_TA_PM2_DSTBLEND_SHIFT 26
873#define PVR_TA_PM2_DSTBLEND_MASK (7 << PVR_TA_PM2_DSTBLEND_SHIFT)
875#define PVR_TA_PM2_SRCENABLE_SHIFT 25
876#define PVR_TA_PM2_SRCENABLE_MASK (1 << PVR_TA_PM2_SRCENABLE_SHIFT)
878#define PVR_TA_PM2_DSTENABLE_SHIFT 24
879#define PVR_TA_PM2_DSTENABLE_MASK (1 << PVR_TA_PM2_DSTENABLE_SHIFT)
881#define PVR_TA_PM2_FOG_SHIFT 22
882#define PVR_TA_PM2_FOG_MASK (3 << PVR_TA_PM2_FOG_SHIFT)
884#define PVR_TA_PM2_CLAMP_SHIFT 21
885#define PVR_TA_PM2_CLAMP_MASK (1 << PVR_TA_PM2_CLAMP_SHIFT)
887#define PVR_TA_PM2_ALPHA_SHIFT 20
888#define PVR_TA_PM2_ALPHA_MASK (1 << PVR_TA_PM2_ALPHA_SHIFT)
890#define PVR_TA_PM2_TXRALPHA_SHIFT 19
891#define PVR_TA_PM2_TXRALPHA_MASK (1 << PVR_TA_PM2_TXRALPHA_SHIFT)
893#define PVR_TA_PM2_UVFLIP_SHIFT 17
894#define PVR_TA_PM2_UVFLIP_MASK (3 << PVR_TA_PM2_UVFLIP_SHIFT)
896#define PVR_TA_PM2_UVCLAMP_SHIFT 15
897#define PVR_TA_PM2_UVCLAMP_MASK (3 << PVR_TA_PM2_UVCLAMP_SHIFT)
899#define PVR_TA_PM2_FILTER_SHIFT 12
900#define PVR_TA_PM2_FILTER_MASK (7 << PVR_TA_PM2_FILTER_SHIFT)
902#define PVR_TA_PM2_MIPBIAS_SHIFT 8
903#define PVR_TA_PM2_MIPBIAS_MASK (15 << PVR_TA_PM2_MIPBIAS_SHIFT)
905#define PVR_TA_PM2_TXRENV_SHIFT 6
906#define PVR_TA_PM2_TXRENV_MASK (3 << PVR_TA_PM2_TXRENV_SHIFT)
908#define PVR_TA_PM2_USIZE_SHIFT 3
909#define PVR_TA_PM2_USIZE_MASK (7 << PVR_TA_PM2_USIZE_SHIFT)
911#define PVR_TA_PM2_VSIZE_SHIFT 0
912#define PVR_TA_PM2_VSIZE_MASK (7 << PVR_TA_PM2_VSIZE_SHIFT)
914#define PVR_TA_PM3_MIPMAP_SHIFT 31
915#define PVR_TA_PM3_MIPMAP_MASK (1 << PVR_TA_PM3_MIPMAP_SHIFT)
917#define PVR_TA_PM3_TXRFMT_SHIFT 0
918#define PVR_TA_PM3_TXRFMT_MASK 0xffffffff
930#define PVR_TA_CMD_TYPE GENMASK(26, 24)
931#define PVR_TA_CMD_USERCLIP GENMASK(17, 16)
932#define PVR_TA_CMD_MODIFIER BIT(7)
933#define PVR_TA_CMD_MODIFIERMODE BIT(6)
934#define PVR_TA_CMD_CLRFMT GENMASK(5, 4)
935#define PVR_TA_CMD_TXRENABLE BIT(3)
936#define PVR_TA_CMD_SPECULAR BIT(2)
937#define PVR_TA_CMD_SHADE BIT(1)
938#define PVR_TA_CMD_UVFMT BIT(0)
939#define PVR_TA_PM1_DEPTHCMP GENMASK(31, 29)
940#define PVR_TA_PM1_CULLING GENMASK(28, 27)
941#define PVR_TA_PM1_DEPTHWRITE BIT(26)
942#define PVR_TA_PM1_TXRENABLE BIT(25)
943#define PVR_TA_PM1_MODIFIERINST GENMASK(30, 29)
944#define PVR_TA_PM2_SRCBLEND GENMASK(31, 29)
945#define PVR_TA_PM2_DSTBLEND GENMASK(28, 26)
946#define PVR_TA_PM2_SRCENABLE BIT(25)
947#define PVR_TA_PM2_DSTENABLE BIT(24)
948#define PVR_TA_PM2_FOG GENMASK(23, 22)
949#define PVR_TA_PM2_CLAMP BIT(21)
950#define PVR_TA_PM2_ALPHA BIT(20)
951#define PVR_TA_PM2_TXRALPHA BIT(19)
952#define PVR_TA_PM2_UVFLIP GENMASK(18, 17)
953#define PVR_TA_PM2_UVCLAMP GENMASK(16, 15)
954#define PVR_TA_PM2_FILTER GENMASK(14, 13)
955#define PVR_TA_PM2_MIPBIAS GENMASK(11, 8)
956#define PVR_TA_PM2_TXRENV GENMASK(7, 6)
957#define PVR_TA_PM2_USIZE GENMASK(5, 3)
958#define PVR_TA_PM2_VSIZE GENMASK(2, 0)
959#define PVR_TA_PM3_MIPMAP BIT(31)
960#define PVR_TA_PM3_TXRFMT GENMASK(30, 21)
977#define PVR_BINSIZE_0 0
978#define PVR_BINSIZE_8 8
979#define PVR_BINSIZE_16 16
980#define PVR_BINSIZE_32 32
1311#define pvr_dr_target(vtx_buf_ptr) \
1312 ({ (vtx_buf_ptr) ^= 32; \
1313 (pvr_vertex_t *)(MEM_AREA_SQ_BASE | (vtx_buf_ptr)); \
1321#define pvr_dr_commit(addr) sq_flush(addr)
1478 int textureformat,
int tw,
int th,
pvr_ptr_t textureaddr,
1522 int textureformat,
int tw,
int th,
pvr_ptr_t textureaddr,
1595 int textureformat,
int tw,
int th,
1597 int textureformat2,
int tw2,
int th2,
1598 pvr_ptr_t textureaddr2,
int filtering2);
int mode
Definition 2ndmix.c:539
pvr_init_params_t params
Definition 2ndmix.c:821
static struct @69 data[BARRIER_COUNT]
static pvr_ptr_t txr
Definition bump.c:28
Cache management functionality.
Various common macros used throughout the codebase.
Constants for areas of the system memory map.
static float rx
Definition gl-elements.c:45
static GLuint filter
Definition nehe08.c:32
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:1291
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:79
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:512
static const uint32_t PVR_TXRFMT_NOSTRIDE
Definition pvr.h:516
static const uint32_t PVR_TXRFMT_STRIDE
Definition pvr.h:517
#define PVR_TXRFMT_X32_STRIDE
Stride is multiple of 32.
Definition pvr.h:513
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.
static pvr_ptr_t txr2
Definition modifier.c:30
static char buffer[256]
Definition porthelper.c:11
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.
static pvr_list_t list
Definition shadow.c:25
Functions to access the SH4 Store Queues.
PVR initialization structure.
Definition pvr.h:994
int fsaa_enabled
Enable horizontal scaling?
Definition pvr.h:1018
int vbuf_doublebuf_disabled
Disable vertex buffer double-buffering.
Definition pvr.h:1044
int dma_enabled
Enable vertex DMA?
Definition pvr.h:1011
int vertex_buf_size
Vertex buffer size (should be a nice round number)
Definition pvr.h:1003
int autosort_disabled
Disable translucent polygon autosort?
Definition pvr.h:1026
int opb_overflow_count
OPB Overflow Count.
Definition pvr.h:1037
PVR vertex type: Modifier volume.
Definition pvr.h:787
uint32_t d1
Dummy value.
Definition pvr.h:799
uint32_t d4
Dummy value.
Definition pvr.h:802
float by
Second Y coordinate.
Definition pvr.h:794
float ay
First Y coordinate.
Definition pvr.h:791
float ax
First X coordinate.
Definition pvr.h:790
uint32_t d3
Dummy value.
Definition pvr.h:801
float cz
Third Z coordinate.
Definition pvr.h:798
float bz
Second Z coordinate.
Definition pvr.h:795
float cy
Third Y coordinate.
Definition pvr.h:797
uint32_t d6
Dummy value.
Definition pvr.h:804
uint32_t d2
Dummy value.
Definition pvr.h:800
uint32_t d5
Dummy value.
Definition pvr.h:803
float bx
Second X coordinate.
Definition pvr.h:793
float az
First Z coordinate.
Definition pvr.h:792
float cx
Third X coordinate.
Definition pvr.h:796
PVR polygon context.
Definition pvr.h:113
int clip_mode
Clipping mode.
Definition pvr.h:127
int modifier_mode
Modifier mode.
Definition pvr.h:129
int mipmap_bias
Mipmap bias.
Definition pvr.h:178
int src2
Source blending mode inside modifier.
Definition pvr.h:148
int write
Enable or disable depth writes.
Definition pvr.h:168
int dst_enable
Dest blending enable outside modifier.
Definition pvr.h:146
int dst
Dest blending mode outside modifier.
Definition pvr.h:142
int fog_type2
Fog type inside modifier.
Definition pvr.h:134
int src
Source blending mode outside modifier.
Definition pvr.h:140
int color_clamp2
Color clamp enable/disable inside modifier.
Definition pvr.h:136
int alpha2
Enable/disable alpha inside modifier.
Definition pvr.h:132
int env
Texture color contribution.
Definition pvr.h:186
pvr_ptr_t base
Texture pointer.
Definition pvr.h:192
int culling
Culling mode.
Definition pvr.h:123
int width
Texture width (requires a power of 2)
Definition pvr.h:188
int color
Color format in vertex.
Definition pvr.h:158
int specular
Offset color enable/disable outside modifier.
Definition pvr.h:130
int height
Texture height (requires a power of 2)
Definition pvr.h:189
int comparison
Depth comparison mode.
Definition pvr.h:166
int src_enable
Source blending enable outside modifier.
Definition pvr.h:144
int dst2
Dest blending mode inside modifier.
Definition pvr.h:150
int fog_type
Fog type outside modifier.
Definition pvr.h:121
int shading
Shading type.
Definition pvr.h:119
int modifier
Enable or disable modifier effect.
Definition pvr.h:162
int uv_flip
Enable/disable U/V flipping.
Definition pvr.h:180
int list_type
Primitive list.
Definition pvr.h:114
int mipmap
Enable/disable mipmaps.
Definition pvr.h:176
int dst_enable2
Dest blending mode inside modifier.
Definition pvr.h:154
int filter
Filtering mode.
Definition pvr.h:174
int src_enable2
Source blending mode inside modifier.
Definition pvr.h:152
int color_clamp
Color clamp enable/disable outside modifier.
Definition pvr.h:125
int uv_clamp
Enable/disable U/V clamping.
Definition pvr.h:182
int alpha
Enable or disable alpha outside modifier.
Definition pvr.h:117
int format
Texture format.
Definition pvr.h:190
int enable
Enable/disable texturing.
Definition pvr.h:172
int uv
U/V data format in vertex.
Definition pvr.h:160
PVR polygon header.
Definition pvr_header.h:309
PVR vertex type: Untextured sprite.
Definition pvr.h:762
float bz
Second Z coordinate.
Definition pvr.h:770
float ay
First Y coordinate.
Definition pvr.h:766
uint32_t d3
Dummy value.
Definition pvr.h:778
float cz
Third Z coordinate.
Definition pvr.h:773
float bx
Second X coordinate.
Definition pvr.h:768
uint32_t d1
Dummy value.
Definition pvr.h:776
float cy
Third Y coordinate.
Definition pvr.h:772
float ax
First X coordinate.
Definition pvr.h:765
float by
Second Y coordinate.
Definition pvr.h:769
uint32_t d4
Dummy value.
Definition pvr.h:779
float dy
Fourth Y coordinate.
Definition pvr.h:775
uint32_t d2
Dummy value.
Definition pvr.h:777
float cx
Third X coordinate.
Definition pvr.h:771
float az
First Z coordinate.
Definition pvr.h:767
float dx
Fourth X coordinate.
Definition pvr.h:774
PVR sprite context.
Definition pvr.h:232
int color_clamp
Color clamp enable/disable.
Definition pvr.h:242
int write
Enable or disable depth writes.
Definition pvr.h:262
int env
Texture color contribution.
Definition pvr.h:280
int enable
Enable/disable texturing.
Definition pvr.h:266
int src_enable
Source blending enable.
Definition pvr.h:254
int dst
Dest blending mode.
Definition pvr.h:252
int clip_mode
Clipping mode.
Definition pvr.h:244
int list_type
Primitive list.
Definition pvr.h:233
int dst_enable
Dest blending enable.
Definition pvr.h:256
int specular
Offset color enable/disable.
Definition pvr.h:246
int src
Source blending mode.
Definition pvr.h:250
int alpha
Enable or disable alpha.
Definition pvr.h:236
int width
Texture width (requires a power of 2)
Definition pvr.h:282
int filter
Filtering mode.
Definition pvr.h:268
int comparison
Depth comparison mode.
Definition pvr.h:260
pvr_ptr_t base
Texture pointer.
Definition pvr.h:286
int mipmap
Enable/disable mipmaps.
Definition pvr.h:270
int mipmap_bias
Mipmap bias.
Definition pvr.h:272
int uv_flip
Enable/disable U/V flipping.
Definition pvr.h:274
int uv_clamp
Enable/disable U/V clamping.
Definition pvr.h:276
int fog_type
Fog type.
Definition pvr.h:238
int height
Texture height (requires a power of 2)
Definition pvr.h:283
int format
Texture format.
Definition pvr.h:284
int culling
Culling mode.
Definition pvr.h:240
PVR vertex type: Textured sprite.
Definition pvr.h:737
float bz
Second Z coordinate.
Definition pvr.h:745
float dx
Fourth X coordinate.
Definition pvr.h:749
float az
First Z coordinate.
Definition pvr.h:742
float ax
First X coordinate.
Definition pvr.h:740
uint32_t buv
Second U/V texture coordinates.
Definition pvr.h:753
float cz
Third Z coordinate.
Definition pvr.h:748
uint32_t dummy
Dummy value.
Definition pvr.h:751
float by
Second Y coordinate.
Definition pvr.h:744
uint32_t auv
First U/V texture coordinates.
Definition pvr.h:752
float dy
Fourth Y coordinate.
Definition pvr.h:750
float cx
Third X coordinate.
Definition pvr.h:746
uint32_t cuv
Third U/V texture coordinates.
Definition pvr.h:754
float bx
Second X coordinate.
Definition pvr.h:743
float cy
Third Y coordinate.
Definition pvr.h:747
float ay
First Y coordinate.
Definition pvr.h:741
PVR vertex type: Non-textured, packed color, affected by modifier volume.
Definition pvr.h:685
float z
Z coordinate.
Definition pvr.h:690
uint32_t d1
Dummy value.
Definition pvr.h:693
uint32_t argb0
Vertex color (outside volume)
Definition pvr.h:691
float x
X coordinate.
Definition pvr.h:688
float y
Y coordinate.
Definition pvr.h:689
uint32_t d2
Dummy value.
Definition pvr.h:694
uint32_t argb1
Vertex color (inside volume)
Definition pvr.h:692
Generic PVR vertex type.
Definition pvr.h:657
float z
Z coordinate.
Definition pvr.h:662
float y
Y coordinate.
Definition pvr.h:661
float u
Texture U coordinate.
Definition pvr.h:665
uint32_t oargb
Vertex offset color.
Definition pvr.h:674
uint32_t argb1
Vertex color when modified, inside area.
Definition pvr.h:670
float x
X coordinate.
Definition pvr.h:660
float v
Texture V coordinate.
Definition pvr.h:666
uint32_t argb
Vertex color.
Definition pvr.h:673
uint32_t argb0
Vertex color when modified, outside area.
Definition pvr.h:669
PVR vertex type: Textured, packed color, affected by modifier volume.
Definition pvr.h:705
float z
Z coordinate.
Definition pvr.h:710
uint32_t oargb1
Vertex offset color (inside)
Definition pvr.h:718
uint32_t oargb0
Vertex offset color (outside)
Definition pvr.h:714
float x
X coordinate.
Definition pvr.h:708
float u0
Texture U coordinate (outside)
Definition pvr.h:711
uint32_t d2
Dummy value.
Definition pvr.h:720
float v0
Texture V coordinate (outside)
Definition pvr.h:712
uint32_t d4
Dummy value.
Definition pvr.h:722
float u1
Texture U coordinate (inside)
Definition pvr.h:715
float y
Y coordinate.
Definition pvr.h:709
float v1
Texture V coordinate (inside)
Definition pvr.h:716
uint32_t argb0
Vertex color (outside)
Definition pvr.h:713
uint32_t argb1
Vertex color (inside)
Definition pvr.h:717
uint32_t d1
Dummy value.
Definition pvr.h:719
uint32_t d3
Dummy value.
Definition pvr.h:721