mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Reformat all the things. Have fun with merge conflicts.
This commit is contained in:
@ -12,37 +12,41 @@
|
||||
class IndexGenerator
|
||||
{
|
||||
public:
|
||||
// Init
|
||||
static void Init();
|
||||
static void Start(u16 *Indexptr);
|
||||
// Init
|
||||
static void Init();
|
||||
static void Start(u16* Indexptr);
|
||||
|
||||
static void AddIndices(int primitive, u32 numVertices);
|
||||
static void AddIndices(int primitive, u32 numVertices);
|
||||
|
||||
// returns numprimitives
|
||||
static u32 GetNumVerts() {return base_index;}
|
||||
|
||||
static u32 GetIndexLen() {return (u32)(index_buffer_current - BASEIptr);}
|
||||
|
||||
static u32 GetRemainingIndices();
|
||||
// returns numprimitives
|
||||
static u32 GetNumVerts() { return base_index; }
|
||||
static u32 GetIndexLen() { return (u32)(index_buffer_current - BASEIptr); }
|
||||
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);
|
||||
// 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);
|
||||
// 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);
|
||||
// Points
|
||||
static u16* AddPoints(u16* Iptr, u32 numVerts, u32 index);
|
||||
|
||||
template <bool pr> static u16* WriteTriangle(u16 *Iptr, u32 index1, u32 index2, u32 index3);
|
||||
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;
|
||||
static u16* index_buffer_current;
|
||||
static u16* BASEIptr;
|
||||
static u32 base_index;
|
||||
};
|
||||
|
Reference in New Issue
Block a user