1 /*---------------------------------------------------------------------------* 2 Project: Dolphin 3 File: gd-light.h 4 5 Copyright 1998-2001 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 $Log: gd-light.h,v $ 14 Revision 1.2 02/20/2006 04:13:09 mitu 15 changed include path from dolphin/ to revolution/. 16 17 Revision 1.1 02/08/2006 11:19:58 mitu 18 1st version. 19 20 21 1 9/21/01 4:08p Hirose 22 Initial check in. 23 24 $NoKeywords: $ 25 *---------------------------------------------------------------------------*/ 26 /*---------------------------------------------------------------------------* 27 gd-light 28 Displaylist demo with lighting commands 29 [Header file] 30 *---------------------------------------------------------------------------*/ 31 32 33 /*---------------------------------------------------------------------------* 34 Header files 35 *---------------------------------------------------------------------------*/ 36 #include <revolution/gd.h> 37 38 /*---------------------------------------------------------------------------* 39 Macro definitions 40 *---------------------------------------------------------------------------*/ 41 // Torus model geometric properties 42 #define MODEL_N0 24 43 #define MODEL_N1 64 44 #define MODEL_R 0.30F 45 #define QUANTIZE 14 46 #define SCALE_Q (1<<QUANTIZE) 47 48 // Display list properties 49 #define MODELDL_SIZE_MAX 16384 50 51 #define MODELDL_PATCH_LIGHT0POS 0 52 #define MODELDL_PATCH_LIGHT1DIR 1 53 #define MODELDL_NUM_PATCHES 2 54 55 /*---------------------------------------------------------------------------* 56 External function definitions 57 *---------------------------------------------------------------------------*/ 58 extern u32 CreateModelDL ( void* dlPtr, u32* plPtr ); 59 60 61 62 /*============================================================================*/ 63