raze/source/common/engine/i_interface.h

69 lines
1.8 KiB
C
Raw Normal View History

#pragma once
#include "zstring.h"
#include "intrect.h"
2022-10-02 18:33:18 +00:00
#include "name.h"
struct event_t;
class FRenderState;
class FGameTexture;
2022-10-02 18:33:18 +00:00
class FTextureID;
2020-11-10 20:44:15 +00:00
enum EUpscaleFlags : int;
2022-10-02 18:33:18 +00:00
class FConfigFile;
struct SystemCallbacks
{
2022-10-02 18:33:18 +00:00
bool (*G_Responder)(event_t* ev); // this MUST be set, otherwise nothing will work
bool (*WantGuiCapture)();
bool (*WantLeftButton)();
bool (*NetGame)();
bool (*WantNativeMouse)();
bool (*CaptureModeInGame)();
void (*CrashInfo)(char* buffer, size_t bufflen, const char* lfstr);
void (*PlayStartupSound)(const char* name);
bool (*IsSpecialUI)();
bool (*DisableTextureFilter)();
void (*OnScreenSizeChanged)();
IntRect(*GetSceneRect)();
FString(*GetLocationDescription)();
void (*MenuDim)();
FString(*GetPlayerName)(int i);
bool (*DispatchEvent)(event_t* ev);
bool (*CheckGame)(const char* nm);
int (*GetGender)();
void (*MenuClosed)();
bool (*CheckMenudefOption)(const char* opt);
2020-10-25 08:20:26 +00:00
void (*ConsoleToggled)(int state);
bool (*PreBindTexture)(FRenderState* state, FGameTexture*& tex, EUpscaleFlags& flags, int& scaleflags, int& clampmode, int& translation, int& overrideshader);
void (*FontCharCreated)(FGameTexture* base, FGameTexture* untranslated);
void (*ToggleFullConsole)();
void (*StartCutscene)(bool blockui);
void (*SetTransition)(int type);
2022-10-02 18:33:18 +00:00
bool (*CheckCheatmode)(bool printmsg, bool sponly);
void (*HudScaleChanged)();
bool (*SetSpecialMenu)(FName& menu, int param);
void (*OnMenuOpen)(bool makesound);
void (*LanguageChanged)(const char*);
bool (*OkForLocalization)(FTextureID, const char*);
FConfigFile* (*GetConfig)();
bool (*WantEscape)();
};
2020-10-03 15:04:45 +00:00
extern SystemCallbacks sysCallbacks;
struct WadStuff
{
FString Path;
FString Name;
};
extern FString endoomName;
extern bool batchrun;
2020-09-27 08:03:53 +00:00
extern float menuBlurAmount;
2020-10-04 22:46:24 +00:00
extern bool generic_ui;
2022-10-02 18:33:18 +00:00
extern int paused;
extern bool pauseext;
2020-10-04 22:46:24 +00:00
void UpdateGenericUI(bool cvar);