2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 18:57:03 +00:00

Cleanup and more migration to Stream

This commit is contained in:
2022-03-05 13:46:53 -08:00
parent 33d0d14fda
commit 24a602c10f
12 changed files with 422 additions and 101 deletions

View File

@@ -576,4 +576,15 @@ void CGraphics::StreamVertex(const zeus::CVector3f& pos) {
}
void CGraphics::StreamEnd() { aurora::gfx::stream_end(); }
void CGraphics::DrawPrimitive(GX::Primitive primitive, const zeus::CVector3f* pos, const zeus::CVector3f& normal,
const zeus::CColor& col, s32 numVerts) {
StreamBegin(primitive);
StreamColor(col);
StreamNormal(normal);
for (u32 i = 0; i < numVerts; ++i) {
StreamVertex(pos[i]);
}
StreamEnd();
}
} // namespace metaforce