1 /*---------------------------------------------------------------------------* 2 Project: Dolphin/Revolution gx demo 3 File: cmn-model.h 4 5 Copyright 1998-2006 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 *---------------------------------------------------------------------------*/ 13 14 #ifndef __CMN_MODEL_H__ 15 #define __CMN_MODEL_H__ 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 typedef struct { 22 void (*draw)(); 23 void (*anim)(); 24 u32 flag; 25 } Model; 26 27 typedef struct { 28 Point3d position; 29 Point3d target; 30 Vec up; 31 float fovy; 32 float znear; 33 float zfar; 34 // Defined internally 35 Mtx viewMtx; 36 Mtx44 projMtx; 37 } Camera; 38 39 typedef struct { 40 s16 xorg; 41 s16 yorg; 42 s16 width; 43 s16 height; 44 } ViewPort; 45 46 // For cmPadStatus 47 //#include "cmn-pad.h" // Removed 48 49 extern void cmModelAnime( DEMOPadStatus*, Camera* ); 50 extern Model cmModel[]; 51 52 #define MODEL_REFERRED (1<<0) 53 54 #ifdef __cplusplus 55 } 56 #endif 57 #endif //__CMN_MODEL_H__ 58 59 /*======== End of cmn-model.h ========*/ 60