206 unsigned nIdx0,
unsigned nIdx1,
unsigned nIdx2,
DrawVert *pVerts,
int *pnNextIndex);
Six-plane view volume.
Definition frustum.h:19
Bounding sphere.
Definition sphere.h:15
The rendering engine.
Definition animhelper.h:3
void TransformAndLightMeshVerts(DrawVert *pOutVerts, const float *pXfm, MeshVert *pVerts, int nCount, int bWriteClipFlags, const Sphere &sphere)
Transform and light a run of vertices into the shared draw buffer.
DrawVertPosLane
Lanes of DrawVert::mPos.
Definition drawverts.h:49
@ kDrawVertPosFog
Definition drawverts.h:53
@ kDrawVertPosY
Definition drawverts.h:51
@ kDrawVertPosZ
Definition drawverts.h:52
@ kDrawVertPosX
Definition drawverts.h:50
int IsSphereInsideFrustum(const Sphere &sphere, const Frustum &frustum)
Report whether a sphere lies wholly inside a frustum.
void EmitParticleVu1Setup()
Emit the VU1 parameter quadwords for a particle pass.
int g_nFogEnabled
Non-zero while fog is enabled.
constexpr int kDrawVertCapacity
Vertices a single draw may submit, from the overflow guard in Rnd::PsMesh::DrawShowing().
Definition drawverts.h:16
Frustum g_drawFrustum
World-space frustum IsSphereInsideFrustum() tests against.
int EmitFaceVu1Setup(const float *pXfm, const Sphere &sphere)
Emit the VU1 parameter block for a face pass and return the microprogram entry to run.
void TransformMeshVertsNoLight(DrawVert *pOutVerts, MeshVert *pVerts, int nCount, const float *pXfm)
Transform a run of vertices without lighting them.
constexpr int kDrawVertLanes
Integer lanes in DrawVert::mColor and DrawVert::mPos.
Definition drawverts.h:57
constexpr int kDrawVertClipOtherPlanes
The five planes a triangle is rejected against only when all its vertices fail one.
Definition drawverts.h:71
void ClipTriangleToFrustum(unsigned nIdx0, unsigned nIdx1, unsigned nIdx2, DrawVert *pVerts, int *pnNextIndex)
Clip one triangle against the near plane and the scissor rectangle and append the polygon to the vert...
int PackParticleQuads(DrawVert *pOutVerts, int nMode, const Particle *pFirst, int nLineLength)
Pack a run of live particles into the shared draw buffer.
DrawVert g_aDrawVerts[]
Buffer every software draw path transforms its vertices into.
void EmitEdgeVu1Setup(const float *pXfm, const Color &color)
Emit the VU1 parameter quadwords for an edge pass.
int IsSphereInDrawFrustum(const Sphere &sphere)
Report whether a sphere lies wholly inside the draw frustum, g_drawFrustum.
Definition drawverts.h:125
constexpr int kDrawVertClipFarPlane
Far plane, the vclipw judgement z > w, which drops a triangle outright rather than clipping it.
Definition drawverts.h:68
constexpr int kDrawVertClipAnyPlane
Every plane of the six-plane frustum.
Definition drawverts.h:60
Linear colour with four float components.
Definition color.h:10
Vertex as the software draw paths leave it, ready for the GS.
Definition drawverts.h:32
int mClipFlags
Which frustum planes and scissor edges this vertex falls outside.
Definition drawverts.h:41
float mS
Definition drawverts.h:33
float mQ
Q, which the PACKED ST write passes on.
Definition drawverts.h:39
int mPos[4]
XYZF2 as four integers, indexed by DrawVertPosLane.
Definition drawverts.h:45
int mColor[4]
RGBAQ as four integers, already scaled to the range the GS takes.
Definition drawverts.h:43
float mT
Definition drawverts.h:34
One vertex of a Rnd::Mesh.
Definition meshvert.h:22
One live particle of a Rnd::ParticleSys.
Definition particle.h:33