Skip to content

Commit de597f6

Browse files
pcercueiQuzarDC
authored andcommitted
pvr: Update pvr_vertex_t to support modified non-textured polys
Modified non-textured polys don't use the argb/oargb fields, they instead use the fields that are normally occupied by U/V coordinates to store the argb color for the outside and inside areas. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
1 parent cfb6579 commit de597f6

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

  • kernel/arch/dreamcast/include/dc

kernel/arch/dreamcast/include/dc/pvr.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,16 @@ typedef struct pvr_vertex {
659659
float x; /**< \brief X coordinate */
660660
float y; /**< \brief Y coordinate */
661661
float z; /**< \brief Z coordinate */
662-
float u; /**< \brief Texture U coordinate */
663-
float v; /**< \brief Texture V coordinate */
662+
union {
663+
struct {
664+
float u; /**< \brief Texture U coordinate */
665+
float v; /**< \brief Texture V coordinate */
666+
};
667+
struct {
668+
uint32_t argb0; /**< \brief Vertex color when modified, outside area */
669+
uint32_t argb1; /**< \brief Vertex color when modified, inside area */
670+
};
671+
};
664672
uint32_t argb; /**< \brief Vertex color */
665673
uint32_t oargb; /**< \brief Vertex offset color */
666674
} pvr_vertex_t;

0 commit comments

Comments
 (0)