tweaking win32 port
[picodrive.git] / platform / win32 / GenaDrive / app.h
CommitLineData
cc68a136 1\r
2#include <stdio.h>\r
3\r
cc68a136 4#define WIN32_LEAN_AND_MEAN\r
5#include <windows.h>\r
6#include <d3d8.h>\r
cc68a136 7\r
8#include <d3dx8.h>\r
9\r
4b2b67eb 10#include <Pico/Pico.h>\r
cc68a136 11\r
12#define PI 3.14159265f\r
13\r
14#define RELEASE(x) if (x) x->Release(); x=NULL;\r
15\r
cc68a136 16\r
17// Emu.cpp\r
18extern unsigned short *EmuScreen;\r
19extern int EmuWidth,EmuHeight;\r
20int EmuInit();\r
21void EmuExit();\r
22int EmuRomLoad(char *name);\r
23int EmuFrame();\r
24\r
25// Input.cpp\r
26struct Input\r
27{\r
28 short axis[4];\r
29 unsigned char button[16];\r
30 unsigned char held[16]; // How long has the button been held\r
31 char repeat[16]; // Auto-repeat\r
32};\r
33extern struct Input Inp;\r
34int InputInit();\r
35void InputExit();\r
36int InputUpdate();\r
37int InputLightCal(int cx,int cy,int ux,int uy);\r
38\r
39// LightCal.cpp\r
40int LightCalReset();\r
41int LightCalUpdate();\r
42int LightCalRender();\r
43\r
44// Loop.cpp\r
cc68a136 45extern char LoopQuit;\r
46extern int LoopMode;\r
47\r
48int LoopInit();\r
49void LoopExit();\r
50int LoopCode();\r
4b2b67eb 51//extern "C" int dprintf(char *format, ...);\r
52extern "C" int dprintf2(char *format, ...);\r
cc68a136 53\r
54// Main.cpp\r
8831ef19 55extern char *romname;\r
cc68a136 56extern HWND FrameWnd;\r
57extern int MainWidth,MainHeight;\r
4b2b67eb 58extern void error(char *text);\r
cc68a136 59\r
60// Rom.cpp\r
61extern unsigned char *RomData;\r
62extern int RomLen;\r
63extern char RomName[260];\r
64int RomLoad();\r
65void RomFree();\r
66\r
67// --------------------------------------------\r
68// Direct.cpp\r
69extern IDirect3DDevice8 *Device;\r
70extern IDirect3DSurface8 *DirectBack; // Back Buffer\r
71int DirectInit();\r
72int DirectClear(unsigned int colour);\r
73int DirectScreen();\r
74int DirectPresent();\r
75void DirectExit();\r
76\r
77// DSound.cpp:\r
78int DSoundInit();\r
79void DSoundExit();\r
80int DSoundUpdate();\r
81extern short *DSoundNext; // Buffer for next sound data to put in loop\r
82//extern int DSoundSeg; // Seg length in samples\r
83void DSoundMute();\r
84void DSoundUnMute();\r
85\r
86// Font.cpp\r
87int FontInit();\r
88void FontExit();\r
89int FontSetColour(unsigned int colour);\r
90int FontText(WCHAR *,int,int);\r
91\r
92// TexScreen.cpp\r
93extern IDirect3DTexture8 *TexScreen;\r
94extern int TexWidth,TexHeight;\r
95int TexScreenInit();\r
96void TexScreenExit();\r
97int TexScreenSwizzle();\r
98int TexScreenLinear();\r