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)
515#define PVR_TXRFMT_NOSTRIDE PVR_TXRFMT_POW2_STRIDE
516#define PVR_TXRFMT_STRIDE PVR_TXRFMT_X32_STRIDE
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 {
676typedef struct pvr_vertex_pcm {
696typedef struct pvr_vertex_tpcm {
728typedef struct pvr_sprite_txr {
753typedef struct pvr_sprite_col {
778typedef struct pvr_modifier_vol {
809#define PVR_CMD_POLYHDR 0x80840000
811#define PVR_CMD_VERTEX 0xe0000000
812#define PVR_CMD_VERTEX_EOL 0xf0000000
813#define PVR_CMD_USERCLIP 0x20000000
814#define PVR_CMD_MODIFIER 0x80000000
815#define PVR_CMD_SPRITE 0xA0000000
821#define PVR_TA_CMD_TYPE_SHIFT 24
822#define PVR_TA_CMD_TYPE_MASK (7 << PVR_TA_CMD_TYPE_SHIFT)
824#define PVR_TA_CMD_USERCLIP_SHIFT 16
825#define PVR_TA_CMD_USERCLIP_MASK (3 << PVR_TA_CMD_USERCLIP_SHIFT)
827#define PVR_TA_CMD_CLRFMT_SHIFT 4
828#define PVR_TA_CMD_CLRFMT_MASK (7 << PVR_TA_CMD_CLRFMT_SHIFT)
830#define PVR_TA_CMD_SPECULAR_SHIFT 2
831#define PVR_TA_CMD_SPECULAR_MASK (1 << PVR_TA_CMD_SPECULAR_SHIFT)
833#define PVR_TA_CMD_SHADE_SHIFT 1
834#define PVR_TA_CMD_SHADE_MASK (1 << PVR_TA_CMD_SHADE_SHIFT)
836#define PVR_TA_CMD_UVFMT_SHIFT 0
837#define PVR_TA_CMD_UVFMT_MASK (1 << PVR_TA_CMD_UVFMT_SHIFT)
839#define PVR_TA_CMD_MODIFIER_SHIFT 7
840#define PVR_TA_CMD_MODIFIER_MASK (1 << PVR_TA_CMD_MODIFIER_SHIFT)
842#define PVR_TA_CMD_MODIFIERMODE_SHIFT 6
843#define PVR_TA_CMD_MODIFIERMODE_MASK (1 << PVR_TA_CMD_MODIFIERMODE_SHIFT)
845#define PVR_TA_PM1_DEPTHCMP_SHIFT 29
846#define PVR_TA_PM1_DEPTHCMP_MASK (7 << PVR_TA_PM1_DEPTHCMP_SHIFT)
848#define PVR_TA_PM1_CULLING_SHIFT 27
849#define PVR_TA_PM1_CULLING_MASK (3 << PVR_TA_PM1_CULLING_SHIFT)
851#define PVR_TA_PM1_DEPTHWRITE_SHIFT 26
852#define PVR_TA_PM1_DEPTHWRITE_MASK (1 << PVR_TA_PM1_DEPTHWRITE_SHIFT)
854#define PVR_TA_PM1_TXRENABLE_SHIFT 25
855#define PVR_TA_PM1_TXRENABLE_MASK (1 << PVR_TA_PM1_TXRENABLE_SHIFT)
857#define PVR_TA_PM1_MODIFIERINST_SHIFT 29
858#define PVR_TA_PM1_MODIFIERINST_MASK (3 << PVR_TA_PM1_MODIFIERINST_SHIFT)
860#define PVR_TA_PM2_SRCBLEND_SHIFT 29
861#define PVR_TA_PM2_SRCBLEND_MASK (7 << PVR_TA_PM2_SRCBLEND_SHIFT)
863#define PVR_TA_PM2_DSTBLEND_SHIFT 26
864#define PVR_TA_PM2_DSTBLEND_MASK (7 << PVR_TA_PM2_DSTBLEND_SHIFT)
866#define PVR_TA_PM2_SRCENABLE_SHIFT 25
867#define PVR_TA_PM2_SRCENABLE_MASK (1 << PVR_TA_PM2_SRCENABLE_SHIFT)
869#define PVR_TA_PM2_DSTENABLE_SHIFT 24
870#define PVR_TA_PM2_DSTENABLE_MASK (1 << PVR_TA_PM2_DSTENABLE_SHIFT)
872#define PVR_TA_PM2_FOG_SHIFT 22
873#define PVR_TA_PM2_FOG_MASK (3 << PVR_TA_PM2_FOG_SHIFT)
875#define PVR_TA_PM2_CLAMP_SHIFT 21
876#define PVR_TA_PM2_CLAMP_MASK (1 << PVR_TA_PM2_CLAMP_SHIFT)
878#define PVR_TA_PM2_ALPHA_SHIFT 20
879#define PVR_TA_PM2_ALPHA_MASK (1 << PVR_TA_PM2_ALPHA_SHIFT)
881#define PVR_TA_PM2_TXRALPHA_SHIFT 19
882#define PVR_TA_PM2_TXRALPHA_MASK (1 << PVR_TA_PM2_TXRALPHA_SHIFT)
884#define PVR_TA_PM2_UVFLIP_SHIFT 17
885#define PVR_TA_PM2_UVFLIP_MASK (3 << PVR_TA_PM2_UVFLIP_SHIFT)
887#define PVR_TA_PM2_UVCLAMP_SHIFT 15
888#define PVR_TA_PM2_UVCLAMP_MASK (3 << PVR_TA_PM2_UVCLAMP_SHIFT)
890#define PVR_TA_PM2_FILTER_SHIFT 12
891#define PVR_TA_PM2_FILTER_MASK (7 << PVR_TA_PM2_FILTER_SHIFT)
893#define PVR_TA_PM2_MIPBIAS_SHIFT 8
894#define PVR_TA_PM2_MIPBIAS_MASK (15 << PVR_TA_PM2_MIPBIAS_SHIFT)
896#define PVR_TA_PM2_TXRENV_SHIFT 6
897#define PVR_TA_PM2_TXRENV_MASK (3 << PVR_TA_PM2_TXRENV_SHIFT)
899#define PVR_TA_PM2_USIZE_SHIFT 3
900#define PVR_TA_PM2_USIZE_MASK (7 << PVR_TA_PM2_USIZE_SHIFT)
902#define PVR_TA_PM2_VSIZE_SHIFT 0
903#define PVR_TA_PM2_VSIZE_MASK (7 << PVR_TA_PM2_VSIZE_SHIFT)
905#define PVR_TA_PM3_MIPMAP_SHIFT 31
906#define PVR_TA_PM3_MIPMAP_MASK (1 << PVR_TA_PM3_MIPMAP_SHIFT)
908#define PVR_TA_PM3_TXRFMT_SHIFT 0
909#define PVR_TA_PM3_TXRFMT_MASK 0xffffffff
921#define PVR_TA_CMD_TYPE GENMASK(26, 24)
922#define PVR_TA_CMD_USERCLIP GENMASK(17, 16)
923#define PVR_TA_CMD_MODIFIER BIT(7)
924#define PVR_TA_CMD_MODIFIERMODE BIT(6)
925#define PVR_TA_CMD_CLRFMT GENMASK(5, 4)
926#define PVR_TA_CMD_TXRENABLE BIT(3)
927#define PVR_TA_CMD_SPECULAR BIT(2)
928#define PVR_TA_CMD_SHADE BIT(1)
929#define PVR_TA_CMD_UVFMT BIT(0)
930#define PVR_TA_PM1_DEPTHCMP GENMASK(31, 29)
931#define PVR_TA_PM1_CULLING GENMASK(28, 27)
932#define PVR_TA_PM1_DEPTHWRITE BIT(26)
933#define PVR_TA_PM1_TXRENABLE BIT(25)
934#define PVR_TA_PM1_MODIFIERINST GENMASK(30, 29)
935#define PVR_TA_PM2_SRCBLEND GENMASK(31, 29)
936#define PVR_TA_PM2_DSTBLEND GENMASK(28, 26)
937#define PVR_TA_PM2_SRCENABLE BIT(25)
938#define PVR_TA_PM2_DSTENABLE BIT(24)
939#define PVR_TA_PM2_FOG GENMASK(23, 22)
940#define PVR_TA_PM2_CLAMP BIT(21)
941#define PVR_TA_PM2_ALPHA BIT(20)
942#define PVR_TA_PM2_TXRALPHA BIT(19)
943#define PVR_TA_PM2_UVFLIP GENMASK(18, 17)
944#define PVR_TA_PM2_UVCLAMP GENMASK(16, 15)
945#define PVR_TA_PM2_FILTER GENMASK(14, 13)
946#define PVR_TA_PM2_MIPBIAS GENMASK(11, 8)
947#define PVR_TA_PM2_TXRENV GENMASK(7, 6)
948#define PVR_TA_PM2_USIZE GENMASK(5, 3)
949#define PVR_TA_PM2_VSIZE GENMASK(2, 0)
950#define PVR_TA_PM3_MIPMAP BIT(31)
951#define PVR_TA_PM3_TXRFMT GENMASK(30, 21)
968#define PVR_BINSIZE_0 0
969#define PVR_BINSIZE_8 8
970#define PVR_BINSIZE_16 16
971#define PVR_BINSIZE_32 32
1302#define pvr_dr_target(vtx_buf_ptr) \
1303 ({ (vtx_buf_ptr) ^= 32; \
1304 (pvr_vertex_t *)(MEM_AREA_SQ_BASE | (vtx_buf_ptr)); \
1312#define pvr_dr_commit(addr) sq_flush(addr)
1469 int textureformat,
int tw,
int th,
pvr_ptr_t textureaddr,
1513 int textureformat,
int tw,
int th,
pvr_ptr_t textureaddr,
1586 int textureformat,
int tw,
int th,
1588 int textureformat2,
int tw2,
int th2,
1589 pvr_ptr_t textureaddr2,
int filtering2);
Cache management functionality.
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:1282
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.
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:985
int fsaa_enabled
Enable horizontal scaling?
Definition pvr.h:1009
int vbuf_doublebuf_disabled
Disable vertex buffer double-buffering.
Definition pvr.h:1035
int dma_enabled
Enable vertex DMA?
Definition pvr.h:1002
int vertex_buf_size
Vertex buffer size (should be a nice round number)
Definition pvr.h:994
int autosort_disabled
Disable translucent polygon autosort?
Definition pvr.h:1017
int opb_overflow_count
OPB Overflow Count.
Definition pvr.h:1028
PVR vertex type: Modifier volume.
Definition pvr.h:778
uint32_t d1
Dummy value.
Definition pvr.h:790
uint32_t d4
Dummy value.
Definition pvr.h:793
float by
Second Y coordinate.
Definition pvr.h:785
float ay
First Y coordinate.
Definition pvr.h:782
float ax
First X coordinate.
Definition pvr.h:781
uint32_t d3
Dummy value.
Definition pvr.h:792
float cz
Third Z coordinate.
Definition pvr.h:789
float bz
Second Z coordinate.
Definition pvr.h:786
float cy
Third Y coordinate.
Definition pvr.h:788
uint32_t d6
Dummy value.
Definition pvr.h:795
uint32_t d2
Dummy value.
Definition pvr.h:791
uint32_t d5
Dummy value.
Definition pvr.h:794
float bx
Second X coordinate.
Definition pvr.h:784
float az
First Z coordinate.
Definition pvr.h:783
float cx
Third X coordinate.
Definition pvr.h:787
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:302
PVR vertex type: Untextured sprite.
Definition pvr.h:753
float bz
Second Z coordinate.
Definition pvr.h:761
float ay
First Y coordinate.
Definition pvr.h:757
uint32_t d3
Dummy value.
Definition pvr.h:769
float cz
Third Z coordinate.
Definition pvr.h:764
float bx
Second X coordinate.
Definition pvr.h:759
uint32_t d1
Dummy value.
Definition pvr.h:767
float cy
Third Y coordinate.
Definition pvr.h:763
float ax
First X coordinate.
Definition pvr.h:756
float by
Second Y coordinate.
Definition pvr.h:760
uint32_t d4
Dummy value.
Definition pvr.h:770
float dy
Fourth Y coordinate.
Definition pvr.h:766
uint32_t d2
Dummy value.
Definition pvr.h:768
float cx
Third X coordinate.
Definition pvr.h:762
float az
First Z coordinate.
Definition pvr.h:758
float dx
Fourth X coordinate.
Definition pvr.h:765
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:728
float bz
Second Z coordinate.
Definition pvr.h:736
float dx
Fourth X coordinate.
Definition pvr.h:740
float az
First Z coordinate.
Definition pvr.h:733
float ax
First X coordinate.
Definition pvr.h:731
uint32_t buv
Second U/V texture coordinates.
Definition pvr.h:744
float cz
Third Z coordinate.
Definition pvr.h:739
uint32_t dummy
Dummy value.
Definition pvr.h:742
float by
Second Y coordinate.
Definition pvr.h:735
uint32_t auv
First U/V texture coordinates.
Definition pvr.h:743
float dy
Fourth Y coordinate.
Definition pvr.h:741
float cx
Third X coordinate.
Definition pvr.h:737
uint32_t cuv
Third U/V texture coordinates.
Definition pvr.h:745
float bx
Second X coordinate.
Definition pvr.h:734
float cy
Third Y coordinate.
Definition pvr.h:738
float ay
First Y coordinate.
Definition pvr.h:732
PVR vertex type: Non-textured, packed color, affected by modifier volume.
Definition pvr.h:676
float z
Z coordinate.
Definition pvr.h:681
uint32_t d1
Dummy value.
Definition pvr.h:684
uint32_t argb0
Vertex color (outside volume)
Definition pvr.h:682
float x
X coordinate.
Definition pvr.h:679
float y
Y coordinate.
Definition pvr.h:680
uint32_t d2
Dummy value.
Definition pvr.h:685
uint32_t argb1
Vertex color (inside volume)
Definition pvr.h:683
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:662
uint32_t oargb
Vertex offset color.
Definition pvr.h:665
float x
X coordinate.
Definition pvr.h:659
float v
Texture V coordinate.
Definition pvr.h:663
uint32_t argb
Vertex color.
Definition pvr.h:664
PVR vertex type: Textured, packed color, affected by modifier volume.
Definition pvr.h:696
float z
Z coordinate.
Definition pvr.h:701
uint32_t oargb1
Vertex offset color (inside)
Definition pvr.h:709
uint32_t oargb0
Vertex offset color (outside)
Definition pvr.h:705
float x
X coordinate.
Definition pvr.h:699
float u0
Texture U coordinate (outside)
Definition pvr.h:702
uint32_t d2
Dummy value.
Definition pvr.h:711
float v0
Texture V coordinate (outside)
Definition pvr.h:703
uint32_t d4
Dummy value.
Definition pvr.h:713
float u1
Texture U coordinate (inside)
Definition pvr.h:706
float y
Y coordinate.
Definition pvr.h:700
float v1
Texture V coordinate (inside)
Definition pvr.h:707
uint32_t argb0
Vertex color (outside)
Definition pvr.h:704
uint32_t argb1
Vertex color (inside)
Definition pvr.h:708
uint32_t d1
Dummy value.
Definition pvr.h:710
uint32_t d3
Dummy value.
Definition pvr.h:712