9 #define WIN32_LEAN_AND_MEAN
\r
10 #include <windows.h>
\r
18 #define PI 3.14159265f
\r
20 #define RELEASE(x) if (x) x->Release(); x=NULL;
\r
29 extern unsigned short *EmuScreen;
\r
30 extern int EmuWidth,EmuHeight;
\r
33 int EmuRomLoad(char *name);
\r
40 unsigned char button[16];
\r
41 unsigned char held[16]; // How long has the button been held
\r
42 char repeat[16]; // Auto-repeat
\r
44 extern struct Input Inp;
\r
48 int InputLightCal(int cx,int cy,int ux,int uy);
\r
51 int LightCalReset();
\r
52 int LightCalUpdate();
\r
53 int LightCalRender();
\r
57 extern char LoopQuit;
\r
58 extern int LoopMode;
\r
65 extern HWND FrameWnd;
\r
66 extern int MainWidth,MainHeight;
\r
67 extern char AppName[];
\r
68 extern "C" int dprintf(char *format, ...);
\r
71 extern unsigned char *RomData;
\r
73 extern char RomName[260];
\r
77 // --------------------------------------------
\r
79 extern IDirect3DDevice8 *Device;
\r
80 extern IDirect3DSurface8 *DirectBack; // Back Buffer
\r
82 int DirectClear(unsigned int colour);
\r
84 int DirectPresent();
\r
91 extern short *DSoundNext; // Buffer for next sound data to put in loop
\r
92 //extern int DSoundSeg; // Seg length in samples
\r
94 void DSoundUnMute();
\r
99 int FontSetColour(unsigned int colour);
\r
100 int FontText(WCHAR *,int,int);
\r
103 extern IDirect3DTexture8 *TexScreen;
\r
104 extern int TexWidth,TexHeight;
\r
105 int TexScreenInit();
\r
106 void TexScreenExit();
\r
107 int TexScreenSwizzle();
\r
108 int TexScreenLinear();
\r