Fixed rest of platform.h

This commit is contained in:
Steven Fuller 2001-07-05 17:34:00 +00:00 committed by Patryk Obara
parent d89eb0014e
commit 49c2203275
2 changed files with 25 additions and 22 deletions

View file

@ -1,6 +1,8 @@
#ifndef PLATFORM_INCLUDED #ifndef PLATFORM_INCLUDED
#define PLATFORM_INCLUDED #define PLATFORM_INCLUDED
#include "shape.h" // struct imageheader
/* /*
Platform Specific Header Include Platform Specific Header Include
@ -28,6 +30,16 @@ extern "C" {
*/ */
typedef int BOOL;
typedef struct RECT
{
int left;
int top;
int right;
int bottom;
} RECT;
typedef RECT RECT_AVP; typedef RECT RECT_AVP;
@ -709,12 +721,12 @@ typedef struct trianglearray {
long GetWindowsTickCount(void); long GetWindowsTickCount(void);
void CheckForWindowsMessages(void); void CheckForWindowsMessages(void);
BOOL ExitWindowsSystem(void); //BOOL ExitWindowsSystem(void);
BOOL InitialiseWindowsSystem(HANDLE hInstance, int nCmdShow, int WinInitMode); //BOOL InitialiseWindowsSystem(HANDLE hInstance, int nCmdShow, int WinInitMode);
void KeyboardHandlerKeyDown(WPARAM wParam); //void KeyboardHandlerKeyDown(WPARAM wParam);
void KeyboardHandlerKeyUp(WPARAM wParam); //void KeyboardHandlerKeyUp(WPARAM wParam);
void MouseVelocityHandler(UINT message, LPARAM lParam); //void MouseVelocityHandler(UINT message, LPARAM lParam);
void MousePositionHandler(UINT message, LPARAM lParam); //void MousePositionHandler(UINT message, LPARAM lParam);
int ReadJoystick(void); int ReadJoystick(void);
int CheckForJoystick(void); int CheckForJoystick(void);
BOOL SpawnRasterThread(); BOOL SpawnRasterThread();
@ -742,7 +754,7 @@ void finiObjectsExceptDD(void);
BOOL TestMemoryAccess(void); BOOL TestMemoryAccess(void);
int ChangePalette (unsigned char* NewPalette); int ChangePalette (unsigned char* NewPalette);
int GetAvailableVideoMemory(void); int GetAvailableVideoMemory(void);
void HandleVideoModeRestarts(HINSTANCE hInstance, int nCmdShow); //void HandleVideoModeRestarts(HINSTANCE hInstance, int nCmdShow);
void* MakeBackdropSurface(void); void* MakeBackdropSurface(void);
void ReleaseBackdropSurface(void); void ReleaseBackdropSurface(void);
void LockBackdropSurface(void); void LockBackdropSurface(void);
@ -789,14 +801,6 @@ void WriteZB3dTexturedPolygonToExecuteBuffer(int* itemptr);
void WriteZBGouraud3dTexturedPolygonToExecuteBuffer(int* itemptr); void WriteZBGouraud3dTexturedPolygonToExecuteBuffer(int* itemptr);
#endif #endif
#ifdef __cplusplus
HRESULT WINAPI DeviceEnumerator(LPGUID lpGuid,
LPSTR lpDeviceDescription, LPSTR lpDeviceName,
LPD3DDEVICEDESC lpHWDesc, LPD3DDEVICEDESC lpHELDesc, LPVOID lpContext);
HRESULT CALLBACK TextureFormatsEnumerator
(LPDDSURFACEDESC lpDDSD, LPVOID lpContext);
#endif
/* KJL 11:28:31 9/9/97 - Direct Input prototypes */ /* KJL 11:28:31 9/9/97 - Direct Input prototypes */
BOOL InitialiseDirectInput(void); BOOL InitialiseDirectInput(void);
void ReleaseDirectInput(void); void ReleaseDirectInput(void);
@ -827,18 +831,17 @@ void FlushTextprintBuffer(void);
void InitPrintQueue(void); void InitPrintQueue(void);
void InitJoysticks(void); void InitJoysticks(void);
void ReadJoysticks(void); void ReadJoysticks(void);
int ChangeDisplayModes(HINSTANCE hInst, int nCmd, //int ChangeDisplayModes(HINSTANCE hInst, int nCmd,
int NewVideoMode, int NewWindowMode, // int NewVideoMode, int NewWindowMode,
int NewZBufferMode, int NewRasterisationMode, // int NewZBufferMode, int NewRasterisationMode,
int NewSoftwareScanDrawMode, int NewDXMemoryMode); // int NewSoftwareScanDrawMode, int NewDXMemoryMode);
int DeallocateAllImages(void); int DeallocateAllImages(void);
int MinimizeAllImages(void); int MinimizeAllImages(void);
int RestoreAllImages(void); int RestoreAllImages(void);
void ConvertDDToInternalPalette(unsigned char* src, unsigned char* dst, int length); void ConvertDDToInternalPalette(unsigned char* src, unsigned char* dst, int length);
PROCESSORTYPES ReadProcessorType(void); PROCESSORTYPES ReadProcessorType(void);
/* EXTERNS FOR GLOBALS GO HERE !!!!!! */ //extern DDCAPS direct_draw_caps;
extern DDCAPS direct_draw_caps;
/* /*