2019-06-17 22:54:02 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-02-18 12:21:52 +01:00
|
|
|
#if defined(RW_OPENGL)
|
|
|
|
#define PUSH_RENDERGROUP(str) glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, str)
|
|
|
|
#define POP_RENDERGROUP() glPopDebugGroup()
|
|
|
|
#else
|
2021-02-18 12:23:33 +01:00
|
|
|
#define PUSH_RENDERGROUP(str)
|
|
|
|
#define POP_RENDERGROUP()
|
2021-02-18 12:21:52 +01:00
|
|
|
#endif
|
|
|
|
|
2019-06-17 22:54:02 +02:00
|
|
|
struct GlobalScene
|
|
|
|
{
|
|
|
|
RpWorld *world;
|
|
|
|
RwCamera *camera;
|
|
|
|
};
|
2020-04-17 07:54:14 +02:00
|
|
|
extern GlobalScene Scene;
|
2019-06-17 22:54:02 +02:00
|
|
|
|
|
|
|
extern uint8 work_buff[55000];
|
2020-04-17 07:54:14 +02:00
|
|
|
extern char gString[256];
|
|
|
|
extern char gString2[512];
|
|
|
|
extern wchar gUString[256];
|
|
|
|
extern wchar gUString2[256];
|
2019-07-24 18:55:43 +02:00
|
|
|
extern bool gbPrintShite;
|
2020-04-17 07:54:14 +02:00
|
|
|
extern bool gbModelViewer;
|
2020-05-29 12:03:32 +02:00
|
|
|
#ifdef TIMEBARS
|
|
|
|
extern bool gbShowTimebars;
|
2020-10-25 16:17:31 +01:00
|
|
|
#else
|
|
|
|
#define gbShowTimebars false
|
2020-05-29 12:03:32 +02:00
|
|
|
#endif
|
2019-06-17 22:54:02 +02:00
|
|
|
|
2020-11-30 23:44:58 +01:00
|
|
|
#ifndef FINAL
|
|
|
|
extern bool gbPrintMemoryUsage;
|
|
|
|
#endif
|
|
|
|
|
2019-06-18 09:50:26 +02:00
|
|
|
class CSprite2d;
|
|
|
|
|
2020-08-20 12:53:17 +02:00
|
|
|
bool DoRWStuffStartOfFrame(int16 TopRed, int16 TopGreen, int16 TopBlue, int16 BottomRed, int16 BottomGreen, int16 BottomBlue, int16 Alpha);
|
|
|
|
bool DoRWStuffStartOfFrame_Horizon(int16 TopRed, int16 TopGreen, int16 TopBlue, int16 BottomRed, int16 BottomGreen, int16 BottomBlue, int16 Alpha);
|
|
|
|
void DoRWStuffEndOfFrame(void);
|
2020-12-17 12:47:00 +01:00
|
|
|
void PreAllocateRwObjects(void);
|
2019-06-28 19:23:28 +02:00
|
|
|
void InitialiseGame(void);
|
2019-06-17 22:54:02 +02:00
|
|
|
void LoadingScreen(const char *str1, const char *str2, const char *splashscreen);
|
2019-06-28 19:23:28 +02:00
|
|
|
void LoadingIslandScreen(const char *levelName);
|
2019-06-18 09:50:26 +02:00
|
|
|
CSprite2d *LoadSplash(const char *name);
|
2020-03-28 21:55:23 +01:00
|
|
|
void DestroySplashScreen(void);
|
2020-05-12 01:24:57 +02:00
|
|
|
Const char *GetLevelSplashScreen(int level);
|
|
|
|
Const char *GetRandomSplashScreen(void);
|
2019-07-19 13:58:19 +02:00
|
|
|
void LittleTest(void);
|
2019-07-24 19:59:16 +02:00
|
|
|
void ValidateVersion();
|
2020-03-22 15:23:40 +01:00
|
|
|
void ResetLoadingScreenBar(void);
|
2019-08-15 16:51:39 +02:00
|
|
|
#ifndef MASTER
|
|
|
|
void TheModelViewer(void);
|
|
|
|
#endif
|
2020-11-03 20:33:07 +01:00
|
|
|
|
2020-12-06 15:29:48 +01:00
|
|
|
#ifdef LOAD_INI_SETTINGS
|
2021-01-22 21:40:28 +01:00
|
|
|
bool LoadINISettings();
|
2020-12-06 15:29:48 +01:00
|
|
|
void SaveINISettings();
|
2021-01-23 13:59:38 +01:00
|
|
|
void LoadINIControllerSettings();
|
|
|
|
void SaveINIControllerSettings();
|
2020-12-06 15:29:48 +01:00
|
|
|
#endif
|
|
|
|
|
2020-11-03 20:33:07 +01:00
|
|
|
#ifdef NEW_RENDERER
|
|
|
|
extern bool gbNewRenderer;
|
|
|
|
bool FredIsInFirstPersonCam(void);
|
|
|
|
#endif
|