diff options
author | Treeki <treeki@gmail.com> | 2011-03-13 01:31:59 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-03-13 01:31:59 +0100 |
commit | 91d99046b83b905cca79406cd219bb500da8613b (patch) | |
tree | 4b9bac81615a1522bd08d1a9b6811ed80d263e09 /oldStuff/3dlib/treeki3d.h | |
parent | e6255e712993a096fc9938e2fb4be1d181e1afc7 (diff) | |
download | kamek-91d99046b83b905cca79406cd219bb500da8613b.tar.gz kamek-91d99046b83b905cca79406cd219bb500da8613b.zip |
a bit more cleaning up
Diffstat (limited to 'oldStuff/3dlib/treeki3d.h')
-rw-r--r-- | oldStuff/3dlib/treeki3d.h | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/oldStuff/3dlib/treeki3d.h b/oldStuff/3dlib/treeki3d.h deleted file mode 100644 index c88f91c..0000000 --- a/oldStuff/3dlib/treeki3d.h +++ /dev/null @@ -1,124 +0,0 @@ -/* Treeki's 3D Library for Wii */
-
-#ifndef TREEKI3D_H
-#define TREEKI3D_H
-
-/*******************************************************************************
-* IMPORTS/ENGINE HOOKS
-*******************************************************************************/
-
-#define GEKKO
-
-#include <common.h>
-#include "rvl/mtx.h"
-#include "rvl/GXEnum.h"
-#include "rvl/GXStruct.h"
-#include "rvl/GXTransform.h"
-#include "rvl/GXGeometry.h"
-#include "rvl/GXDispList.h"
-#include "rvl/GXLighting.h"
-#include "rvl/GXTev.h"
-#include "rvl/GXTexture.h"
-#include "rvl/GXCull.h"
-#include "rvl/GXPixel.h"
-#include "rvl/GXBump.h"
-#include "rvl/OSCache.h"
-#include "rvl/tpl.h"
-#include "rvl/vifuncs.h"
-#include "rvl/arc.h"
-
-GXRenderModeObj *Hook_GetGXRenderModeObj();
-
-
-
-namespace T3D {
-
-/*******************************************************************************
-* RESOURCE STRUCTS
-*******************************************************************************/
-
-
-struct tmdl_header {
- u32 magic; // always TMDL
- u32 version; // currently 2
- u32 shape_count;
-};
-// [[Followed by an array of u32s for each shape offset]]
-
-struct tmdl_shape {
- u32 dl_offset; // must be aligned to 0x20
- u32 dl_size; // must be aligned to 0x20
- u32 mat_offset;
- u32 pos_arr_offset; // must be aligned to 0x20
- u32 pos_arr_size; // must be aligned to 0x20
- u32 nrm_arr_offset; // must be aligned to 0x20
- u32 nrm_arr_size; // must be aligned to 0x20
- u32 uv_arr_offset; // must be aligned to 0x20
- u32 uv_arr_size; // must be aligned to 0x20
-};
-
-struct tmdl_material {
- u32 texture_id; // once the model is bound, points to tpl
- GXColor mat_colour;
-};
-
-/*******************************************************************************
-* INTERNAL STRUCTS
-*******************************************************************************/
-
-class Model; // don't you just love circular references
-
-struct RenderInfo {
- Model *model;
- Mtx matrix;
-};
-
-struct CameraInfo {
- GXProjectionType projection;
- Mtx44 projection_matrix;
- Mtx view_matrix;
-};
-
-/*******************************************************************************
-* PUBLIC CLASSES
-*******************************************************************************/
-
-class Model {
-private:
- tmdl_header *model_res;
- TPLPalette *texture_res;
-
- void setupMaterialGX(tmdl_material *material);
- void drawShape(RenderInfo *info, int shape_id);
-
-public:
- bool bind(void *data, const char *mdlname);
- void addToDrawList(Mtx matrix);
- void draw(RenderInfo *info);
-
-};
-
-/*******************************************************************************
-* CONVENIENT STUFF
-*******************************************************************************/
-
-extern const GXColor Black, White;
-
-/*******************************************************************************
-* GLOBAL T3D VARIABLES/FUNCTIONS
-*******************************************************************************/
-
-#define OBJ_COUNT 10
-
-extern u32 HasBeenInited;
-extern RenderInfo *RenderQueue;
-extern int RenderQueuePos;
-
-extern CameraInfo Camera;
-
-bool Init(bool test);
-void DrawQueue();
-
-};
-
-#endif
|