You've already forked TP-PC-Port
mirror of
https://github.com/CraftyBoss/TP-PC-Port.git
synced 2026-04-01 08:53:30 -07:00
26 lines
657 B
C
26 lines
657 B
C
#ifndef C_API_H
|
|
#define C_API_H
|
|
|
|
typedef void (*cAPIGph_Mthd)(void);
|
|
typedef int (*cAPIGph_MthdRet)(void);
|
|
|
|
struct cAPI_Interface {
|
|
/* 0x00 */ cAPIGph_MthdRet createMtd;
|
|
/* 0x04 */ cAPIGph_MthdRet beforeOfDrawMtd;
|
|
/* 0x08 */ cAPIGph_MthdRet afterOfDrawMtd;
|
|
/* 0x0C */ cAPIGph_MthdRet painterMtd;
|
|
/* 0x10 */ cAPIGph_Mthd blankingOnMtd;
|
|
/* 0x14 */ cAPIGph_Mthd blankingOffMtd;
|
|
};
|
|
|
|
extern void mDoGph_BlankingON();
|
|
extern void mDoGph_BlankingOFF();
|
|
extern int mDoGph_BeforeOfDraw();
|
|
extern int mDoGph_AfterOfDraw();
|
|
extern int mDoGph_Painter();
|
|
extern int mDoGph_Create();
|
|
|
|
extern cAPI_Interface g_cAPI_Interface;
|
|
|
|
#endif /* C_API_H */
|