1 /*---------------------------------------------------------------------------*
2   Project:  Dolphin
3   File:     gd-indtex.h
4 
5   Copyright 2003 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-indtex.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     3     2003/03/05 14:29 Hirose
22     More updates.
23 
24     2     2003/02/28 17:42 Hirose
25     Updates.
26 
27     1     2003/02/21 12:13:00 Hirose
28     Initial ver.
29 
30   $NoKeywords: $
31  *---------------------------------------------------------------------------*/
32 /*---------------------------------------------------------------------------*
33    gd-indtex
34      Displaylist demo with lighting commands
35      [Header file]
36  *---------------------------------------------------------------------------*/
37 
38 
39 /*---------------------------------------------------------------------------*
40    Header files
41  *---------------------------------------------------------------------------*/
42 #include <revolution/gd.h>
43 
44 /*---------------------------------------------------------------------------*
45    Macro definitions
46  *---------------------------------------------------------------------------*/
47 
48 #define SCREEN_WD       640
49 #define SCREEN_HT       480
50 
51 
52 #define NUM_EFFECTS     4
53 
54 // Effect 0
55 #define COPYTEX0_WD     (SCREEN_WD/16)
56 #define COPYTEX0_HT     (SCREEN_HT/16)
57 #define BASEVIEW0_WD    (COPYTEX0_WD*2)
58 #define BASEVIEW0_HT    (COPYTEX0_HT*2)
59 #define FXTEX0_WD       16
60 #define FXTEX0_HT       32
61 #define FXTEX0_FMT      GX_TF_C4
62 #define FXTEX0_TL_N     8
63 #define FXTEX0_TL_FMT   GX_TL_IA8
64 
65 // Effect 1
66 #define COPYTEX1_WD     (SCREEN_WD/16)
67 #define COPYTEX1_HT     (SCREEN_HT/16)
68 #define BASEVIEW1_WD    COPYTEX1_WD
69 #define BASEVIEW1_HT    COPYTEX1_HT
70 #define FXTEX1_WD       16
71 #define FXTEX1_HT       128
72 #define FXTEX1_FMT      GX_TF_I4
73 
74 // Effect 2
75 #define COPYTEX2_WD     (SCREEN_WD/2)
76 #define COPYTEX2_HT     (SCREEN_HT/2)
77 #define BASEVIEW2_WD    COPYTEX2_WD
78 #define BASEVIEW2_HT    COPYTEX2_HT
79 #define FXTEX2A_WD      8
80 #define FXTEX2A_HT      16
81 #define FXTEX2A_FMT     GX_TF_I4
82 #define FXTEX2B_WD      16
83 #define FXTEX2B_HT      64
84 #define FXTEX2B_FMT     GX_TF_I4
85 
86 // Effect 3
87 #define COPYTEX3_WD     (SCREEN_WD/2)
88 #define COPYTEX3_HT     (SCREEN_HT/2)
89 #define BASEVIEW3_WD    (COPYTEX3_WD*2)
90 #define BASEVIEW3_HT    (COPYTEX3_HT*2)
91 #define FXTEX3_WD       16
92 #define FXTEX3_HT       16
93 #define FXTEX3_FMT      GX_TF_I4
94 
95 
96 // Display list properties
97 #define EFFECTDL_SIZE_MAX   1024
98 #define NUM_DLS             NUM_EFFECTS
99 #define NUM_PLS             0               // No Patch List
100 
101 /*---------------------------------------------------------------------------*
102    External function definitions
103  *---------------------------------------------------------------------------*/
104 extern u32  CreateEffectDL0 ( void* dlPtr );
105 extern u32  CreateEffectDL1 ( void* dlPtr );
106 extern u32  CreateEffectDL2 ( void* dlPtr );
107 extern u32  CreateEffectDL3 ( void* dlPtr );
108 
109 
110 /*============================================================================*/
111