mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-10 18:18:49 +00:00
VideoCommon/IndexGenerator: Move stateless functions into anonymous namespace
These don't rely on any of the static members within the IndexGenerator class, so we can make all of these functions fully internal to the translation unit.
This commit is contained in:
parent
69f2ca2230
commit
fb3fda775f
2 changed files with 186 additions and 213 deletions
|
@ -26,28 +26,6 @@ public:
|
|||
static u32 GetRemainingIndices();
|
||||
|
||||
private:
|
||||
// Triangles
|
||||
template <bool pr>
|
||||
static u16* AddList(u16* Iptr, u32 numVerts, u32 index);
|
||||
template <bool pr>
|
||||
static u16* AddStrip(u16* Iptr, u32 numVerts, u32 index);
|
||||
template <bool pr>
|
||||
static u16* AddFan(u16* Iptr, u32 numVerts, u32 index);
|
||||
template <bool pr>
|
||||
static u16* AddQuads(u16* Iptr, u32 numVerts, u32 index);
|
||||
template <bool pr>
|
||||
static u16* AddQuads_nonstandard(u16* Iptr, u32 numVerts, u32 index);
|
||||
|
||||
// Lines
|
||||
static u16* AddLineList(u16* Iptr, u32 numVerts, u32 index);
|
||||
static u16* AddLineStrip(u16* Iptr, u32 numVerts, u32 index);
|
||||
|
||||
// Points
|
||||
static u16* AddPoints(u16* Iptr, u32 numVerts, u32 index);
|
||||
|
||||
template <bool pr>
|
||||
static u16* WriteTriangle(u16* Iptr, u32 index1, u32 index2, u32 index3);
|
||||
|
||||
static u16* index_buffer_current;
|
||||
static u16* BASEIptr;
|
||||
static u32 base_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue