mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-08 12:16:17 -04:00
0936115483
This is a stop-gap until DL optimization is upstreamed to Aurora.
33 lines
689 B
C++
33 lines
689 B
C++
#ifndef J3DSHAPEDRAW_H
|
|
#define J3DSHAPEDRAW_H
|
|
|
|
#include <gx.h>
|
|
#include <types.h>
|
|
|
|
/**
|
|
* @ingroup jsystem-j3d
|
|
*
|
|
*/
|
|
class J3DShapeDraw {
|
|
public:
|
|
u32 countVertex(u32);
|
|
void addTexMtxIndexInDL(u32, u32, u32);
|
|
J3DShapeDraw(u8 const*, u32);
|
|
#if TARGET_PC
|
|
J3DShapeDraw(u8 const*, u32, const GXVtxDescList*);
|
|
#endif
|
|
void draw() const;
|
|
|
|
virtual ~J3DShapeDraw();
|
|
|
|
u8* getDisplayList() const { return (u8*)mDisplayList; }
|
|
u32 getDisplayListSize() const { return mDisplayListSize; }
|
|
void setDisplayListSize(u32 size) { mDisplayListSize = size; }
|
|
|
|
private:
|
|
/* 0x04 */ u32 mDisplayListSize;
|
|
/* 0x08 */ void* mDisplayList;
|
|
};
|
|
|
|
#endif /* J3DSHAPEDRAW_H */
|