185 unsigned short *mIndices = {};
187 int mIndexCount = {};
189 std::vector<unsigned short> mVertIndices;
197 if (mIndices !=
nullptr) {
216 void ReserveIndices(
int nIndexCount);
222 std::list<DrawRun> mFaceRuns;
223 std::list<DrawRun> mEdgeRuns;
228 static void AppendRun(std::list<DrawRun> &runs,
229 const std::vector<unsigned short> &vertIndices,
230 const std::vector<unsigned short> &primIndices);
248 void DrawFacesVU1(
const float *pXfm,
int nClip);
264 void DrawEdgesVU1(
const float *pXfm);
272 void DrawFacesSoftware(
int nClip);
280 void DrawEdgesSoftware(
int nClip);
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Indexed triangle mesh with one material.
Definition mesh.h:46
Mesh(const HxStr &name)
Construct an empty mesh that owns its own geometry.
static void SelectDepthRegsForPass(const Mesh &mesh, int nPass)
Write the GS depth mask and depth test a mesh needs for one material pass.
PsMesh(const HxStr &name)
Construct an empty PlayStation 2 mesh.
virtual int DrawShowing()
Draw the mesh.
virtual void AddRefObjects()
Restore the references, resynchronise, and clamp every vertex colour to the unit range.
virtual void Sync()
Rebuild the draw runs from the face and the edge vectors.
int EmitMultiMeshFaceRun()
Upload the first face run of mFacesOwner to VU1 once, for Rnd::PsMultiMesh to draw per instance.
The rendering engine.
Definition animhelper.h:3
Mesh * NewPsMesh(const HxStr &name)
Allocate and construct a PlayStation 2 mesh.