resonance 1.0.1
Loading...
Searching...
No Matches
Rnd::DrawVert Struct Reference

Vertex as the software draw paths leave it, ready for the GS. More...

#include <drawverts.h>

Public Attributes

float mS
float mT
float mQ
 Q, which the PACKED ST write passes on.
int mClipFlags
 Which frustum planes and scissor edges this vertex falls outside.
int mColor [4]
 RGBAQ as four integers, already scaled to the range the GS takes.
int mPos [4]
 XYZF2 as four integers, indexed by DrawVertPosLane.

Detailed Description

Vertex as the software draw paths leave it, ready for the GS.

The stride is measured rather than inferred: the clipper multiplies its vertex index by 0x30. The three quadwords are pinned by the GIFtags that consume them rather than by the stride alone. A textured triangle declares NREG 9 with REGS 0x412412412, which is ST, RGBAQ, and XYZF2 per vertex, and copies three quadwords from +0x00. An untextured one declares NREG 6 with REGS 0x414141 and copies two from +0x10. A line declares NREG 3 with REGS 0x441, supplies its own colour, and copies one quadword from +0x20 per endpoint. Register order and copy offset agree in all three cases.

Only the first two words of the ST quadword reach the GS, and the path stores the clip flags in the fourth.

Member Data Documentation

◆ mS

float Rnd::DrawVert::mS

◆ mT

float Rnd::DrawVert::mT

◆ mQ

float Rnd::DrawVert::mQ

Q, which the PACKED ST write passes on.

TransformMeshVertsNoLight() multiplies S and T by it. +0x08

◆ mClipFlags

int Rnd::DrawVert::mClipFlags

Which frustum planes and scissor edges this vertex falls outside.

+0x0c

◆ mColor

int Rnd::DrawVert::mColor[4]

RGBAQ as four integers, already scaled to the range the GS takes.

+0x10

◆ mPos

int Rnd::DrawVert::mPos[4]

XYZF2 as four integers, indexed by DrawVertPosLane.

+0x20


The documentation for this struct was generated from the following file: