mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-16 03:06:45 -04:00
game folder "just" compiles (not link)
This commit is contained in:
parent
13d3908273
commit
1b0f7fe0c2
135 changed files with 2161 additions and 2336 deletions
58
platform/BGraph2Dx.h
Normal file
58
platform/BGraph2Dx.h
Normal file
|
@ -0,0 +1,58 @@
|
|||
#ifndef __BGRAPH_DX_WRAPPER_
|
||||
#define __BGRAPH_DX_WRAPPER_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern long scr_linelen;
|
||||
extern long scr_linelen2;
|
||||
extern long dx_linelen;
|
||||
|
||||
|
||||
//inicializuje a otevira rezim 640x480x16b v DX - otevre okno, pripravi vse pro beh hry
|
||||
//Vraci 1 pri uspechu
|
||||
char DXInit64(char inwindow,int zoom,int monitor, int refresh);
|
||||
|
||||
//uzavre rezim grafiky
|
||||
void DXCloseMode();
|
||||
|
||||
//void DXCopyRects32(unsigned short x,unsigned short y,unsigned short xs,unsigned short ys);
|
||||
void DXCopyRects64(unsigned short x,unsigned short y,unsigned short xs,unsigned short ys);
|
||||
void DXCopyRects64zoom2(unsigned short x,unsigned short y,unsigned short xs,unsigned short ys);
|
||||
|
||||
void *DxPrepareWalk(int ypos);
|
||||
void DxZoomWalk(void *handle, int ypos, int *points,float phase, void *lodka);
|
||||
void DxDoneWalk(void *handle);
|
||||
|
||||
void *DxPrepareTurn(int ypos);
|
||||
void DxTurn(void *handle, char right, int ypos,int border, float phase, void *lodka);
|
||||
void DxDoneTurn(void *handle);
|
||||
void DxTurnLeftRight(char right, float phase, int border, int ypos, int *last);
|
||||
|
||||
|
||||
void DxDialogs(char enable);
|
||||
|
||||
void setvesa_displaystart(int x,int y);
|
||||
|
||||
extern long scr_linelen;
|
||||
extern long scr_linelen2;
|
||||
|
||||
void DxSetInitResolution(int x, int y);
|
||||
int DxGetResX();
|
||||
int DxGetResY();
|
||||
|
||||
void DXMouseTransform(unsigned short *x, unsigned short *y);
|
||||
|
||||
//HWND GetGameWindow();
|
||||
//void DxLockBuffers(BOOL lock);
|
||||
|
||||
void StripBlt(void *data, unsigned int startline, unsigned long width);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
32
platform/FCS_Tasker.h
Normal file
32
platform/FCS_Tasker.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef _FCS_TASKER_H_
|
||||
#define _FCS_TASKER_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
typedef void (*TaskerFunctionName)(va_list);
|
||||
|
||||
void tasker(EVENT_MSG *msg,void **data);
|
||||
int create_task();
|
||||
int add_task(int stack,TaskerFunctionName fcname,...);
|
||||
void term_task(int id_num);
|
||||
char is_running(int id_num);
|
||||
void suspend_task(int id_num,int msg);
|
||||
void shut_down_task(int id_num);
|
||||
void unsuspend_task(EVENT_MSG *msg);
|
||||
void *task_sleep(void *data);
|
||||
void *task_wait_event(long event_number);
|
||||
int q_any_task();
|
||||
char task_quitmsg();
|
||||
char task_quitmsg_by_id(int id);
|
||||
char q_is_mastertask();
|
||||
int q_current_task();
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
0
platform/bios.h
Normal file
0
platform/bios.h
Normal file
2
platform/mem.h
Normal file
2
platform/mem.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include <string.h>
|
||||
#include <malloc.h>
|
69
platform/skeldal_win.h
Normal file
69
platform/skeldal_win.h
Normal file
|
@ -0,0 +1,69 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#define BGSWITCHBIT 0x0020
|
||||
|
||||
#define SKELDALINI "WSKELDAL.INI"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
#define _KEYBRD_READY 0
|
||||
#define _KEYBRD_READ 1
|
||||
|
||||
#define TIMERSPEED 20;
|
||||
|
||||
unsigned long _bios_keybrd(int mode);
|
||||
|
||||
|
||||
//LRESULT GameMainWindowWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
|
||||
void CheckMessageQueue();
|
||||
|
||||
//void DSReportWindowCreation(HWND hWindow);
|
||||
char *AutodetectWinAmp();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#define RGB888(r,g,b) ((unsigned short)((((r)<<8)&0xF800) | (((g)<<3) & 0x7C0) | ((b)>>3)))
|
||||
#define RGB555(r,g,b) ((unsigned short)(((r)<<11) | ((g)<<6) | (b)))
|
||||
|
||||
#pragma warning (disable : 4244 4761 4133)
|
||||
|
||||
|
||||
void *LoadDefaultFont();
|
||||
void *LoadResourceFont(const char *name);
|
||||
|
||||
void ShareCPU();
|
||||
void SetWheelMapping(char up, char down);
|
||||
|
||||
char get_control_key_state();
|
||||
char get_shift_key_state();
|
||||
void display_error(const char *text);
|
||||
|
||||
int stricmp(const char *a, const char *b);
|
||||
#define MIN(a, b) ((a)<(b)?(a):(b))
|
||||
#define MAX(a, b) ((a)>(b)?(a):(b))
|
||||
void strupr(char *c);
|
||||
const char * itoa(int i, char *c, int radix);
|
||||
|
||||
uint32_t get_game_tick_count();
|
||||
void sleep_ms(uint32_t);
|
||||
|
||||
//------------- BGRAPH DX wrapper -------------------
|
||||
#include "BGraph2Dx.h"
|
||||
|
||||
#define WM_RELOADMAP (WM_APP+215)
|
||||
#define E_RELOADMAP 40
|
||||
|
||||
typedef struct _ReloadMapInfo {
|
||||
const char *fname;
|
||||
int sektor;
|
||||
} ReloadMapInfo;
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue