diff options
author | Treeki <treeki@gmail.com> | 2012-01-15 21:27:19 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-01-15 21:27:19 +0100 |
commit | 0dabea30d98d175e5d7e0655c10757db99ac8295 (patch) | |
tree | a41f5826440f19770348015b2a546ed4dcc7f0bc /include/g3dhax.h | |
parent | 1cac64b9ff7384af650fed2bef25fa27069fd589 (diff) | |
download | kamek-0dabea30d98d175e5d7e0655c10757db99ac8295.tar.gz kamek-0dabea30d98d175e5d7e0655c10757db99ac8295.zip |
Cleanups in the include files and other stuff
Diffstat (limited to '')
-rw-r--r-- | include/g3dhax.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/include/g3dhax.h b/include/g3dhax.h index b016e55..d358436 100644 --- a/include/g3dhax.h +++ b/include/g3dhax.h @@ -161,6 +161,8 @@ class mAllocator_c : public EGG::Allocator { mAllocator_c(); ~mAllocator_c(); + bool setup(/*EGG::Heap*/void *heap, s32 align); + void *alloc(u32 size); void free(void *block); }; @@ -182,19 +184,15 @@ namespace m3d { void DisableIndirectTexturing(); void InitTexObjWithResTex(GXTexObj *obj, /* ResTex */ void *resTex, GXTexWrapMode wrapS, GXTexWrapMode wrapT, GXTexFilter minFilt, GXTexFilter magFilt); - // I need to do scnLeaf_c some time... - class proc_c { + class scnLeaf_c { public: - proc_c(); - virtual ~proc_c(); + scnLeaf_c(); + virtual ~scnLeaf_c(); - void setup(void *allocator = 0, u32 *size = 0); virtual int returnUnknown(); virtual void free(); virtual bool scheduleForDrawing(); - virtual void drawOpa(); - virtual void drawXlu(); void setScnObjOption(ulong, ulong); bool getScnObjOption(ulong, ulong*); @@ -214,8 +212,20 @@ namespace m3d { void *scnObj; }; - class banm_c; + class proc_c : public scnLeaf_c { + public: + bool setup(void *allocator = 0, u32 *size = 0); + + int returnUnknown() { return 2; } + virtual void drawOpa() = 0; + virtual void drawXlu() = 0; + }; + + + + // TODO: bmdl_c/smdl_c + class banm_c; class mdl_c { public: mdl_c(); |