sprite.h
3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/**************************************************************************
* *
* Copyright (C) 1995, Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., 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 Silicon Graphics, Inc. *
* *
*************************************************************************/
/*---------------------------------------------------------------------*
Copyright (C) 1998 Nintendo. (Originated by SGI)
$RCSfile: sprite.h,v $
$Revision: 1.1.1.1 $
$Date: 2002/05/02 03:27:37 $
*---------------------------------------------------------------------*/
/*
* File: lines.h
* Create Date: Thu Jun 22 09:28:01 PDT 1995
*
*/
#define STATIC_SEGMENT 1
#define PRINTF osSyncPrintf
#define MAXTEXTURES 2
/* this stack size is in bytes, and is a lot larger
* than this program needs.
*/
#define STACKSIZE 0x2000
#define GLIST_LEN 8192
/*
* ifdef needed because this file is included by "spec"
*/
#ifdef _LANGUAGE_C
/*
* Layout of dynamic data.
*
* This structure holds the things which change per frame. It is advantageous
* to keep dynamic data together so that we may selectively write back dirty
* data cache lines to DRAM prior to processing by the RCP.
*
*/
typedef struct {
Mtx projection;
Mtx modeling1;
Mtx modeling2;
Mtx modeling3;
Mtx modeling4;
Mtx viewing;
Mtx identity;
Gfx glist[GLIST_LEN];
} Dynamic;
extern Dynamic dynamic;
extern unsigned short cfb_a[];
extern unsigned short cfb_b[];
extern void *cfb_ptrs[2];
/* RSP address for the color frame buffer */
extern int SCREEN_WD;
extern int SCREEN_HT;
extern int TranslateHorizontal;
extern int TranslateVertical;
extern int ControllerMode;
extern int ActiveController;
void ClearScreen(void);
void InitVariables(void);
extern int ControllerInput;
extern int PrintInstructions;
extern int NewTextureNumber;
extern int TextureStartS;
extern int TextureStartT;
extern int RectangleWidth;
extern int RectangleHeight;
extern int TextureScaleX;
extern int TextureScaleY;
extern int ImageHeight;
extern int ImageWidth;
extern int SubImageWidth;
extern int TextureNumber;
extern int FlipTextureX;
extern int FlipTextureY;
extern int YFlipMirror;
typedef struct
{
char TestName[80];
void (*TestDisplayFunc)(void);
void (*TestMainLoop)(void);
void (*TestInitFunc)(void);
void (*TestEngineFunc)(void);
} TestStructureElement;
extern TestStructureElement TestStruct[];
#endif /* _LANGUAGE_C */