/*---------------------------------------------------------------------------* Project: Dolphin/Revolution gx demo File: cmn-model.h Copyright 1998-2006 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ #ifndef __CMN_MODEL_H__ #define __CMN_MODEL_H__ #ifdef __cplusplus extern "C" { #endif typedef struct { void (*draw)(); void (*anim)(); u32 flag; } Model; typedef struct { Point3d position; Point3d target; Vec up; float fovy; float znear; float zfar; // Defined internally Mtx viewMtx; Mtx44 projMtx; } Camera; typedef struct { s16 xorg; s16 yorg; s16 width; s16 height; } ViewPort; // For cmPadStatus //#include "cmn-pad.h" // Removed extern void cmModelAnime( DEMOPadStatus*, Camera* ); extern Model cmModel[]; #define MODEL_REFERRED (1<<0) #ifdef __cplusplus } #endif #endif //__CMN_MODEL_H__ /*======== End of cmn-model.h ========*/