 |
Blamite Game Engine - blam!
00388.06.24.23.2301.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #define IDC_ERR_SAFEMODE 3
7 #define IDD_FORMVIEW 101
9 #define firstboot_notice 102
11 #define IDD_ABOUTBOX 103
12 #define IDC_POINTER 104
13 #define IDD_PROPPAGE_MEDIUM 106
17 #define IDD_FIRSTBOOT_NOTICE 115
18 #define error_notice 118
19 #define IDD_ENGINE_INFORMATION 120
21 #define IDR_CSS_STYLE 127
22 #define IDR_REPORT_TEMPLATE 128
23 #define IDR_ENGINE_CFG 129
24 #define IDR_PLACEHOLDERS_XML 130
25 #define IDR_LOG_TEMPLATE_H2V 133
26 #define IDR_LOG_TEMPLATE_NEW 134
27 #define IDR_CON_COL_BUNGIE 135
28 #define IDR_CON_COL_NEW 136
29 #define IDR_CSS_STYLE_W95 138
30 #define IDR_CSS_STYLE_PLAIN 139
31 #define IDR_CSS_STYLE_VSDARK 140
32 #define IDB_THEME_DEFAULT_ICON 141
33 #define IDB_THEME_PLAIN_ICON 142
34 #define IDB_THEME_VSDARK_ICON 143
35 #define IDB_THEME_WIN95_ICON 144
36 #define IDR_GLOBALS_XML 146
38 #define IDR_DEBUG_MENU_INIT_XML 147
39 #define IDD_DIALOG1 148
40 #define IDD_SENTRY_EVENT_NOTICE 148
41 #define IDR_CSS_STYLE_BLAM 151
43 #define IDB_THEME_BLAM_ICON 152
45 #define IDR_GAME_ENGINE_TEXT_XML 153
47 #define IDR_MENU_BAR_INIT_XML 154
48 #define IDC_BLAMITE 155
49 #define IDC_BLAMITE_CURSOR 155
50 #define IDC_BUTTON1 1001
51 #define IDC_ERR_DONT_SHOW_AGAIN 1001
53 #define IDC_MFCBUTTON1 1004
54 #define IDC_ERR_CONTINUE 1004
55 #define IDC_ERR_EXIT 1005
56 #define IDC_RICHEDIT21 1006
57 #define IDC_ERR_MESSAGE 1006
58 #define IDC_ERR_MORE_INFO 1007
59 #define IDC_MFCVSLISTBOX1 1009
60 #define IDC_ERR_MACHINE_INFO 1009
61 #define IDC_LIST1 1010
62 #define IDC_BUTTON2 1011
63 #define IDC_COMBO1 1018
64 #define IDC_TREE1 1020
65 #define lbl_notice_message 1027
66 #define EI_DUMP_TO_FILE 1028
67 #define EI_GBOX_ENGINE_INFO 1029
68 #define EI_GBOX_GAME_INFO 1030
69 #define EI_GBOX_ENGINE_SETTINGS 1031
70 #define EI_UI_VERSION 1032
71 #define IDC_AB_COPYRIGHT 1033
72 #define IDC_AB_VERSION_TITLE 1034
73 #define EI_ENGINE_VER 1035
74 #define IDC_AB_ENGINE_INFO 1035
75 #define EI_PRODUCT_ID 1036
76 #define EI_PLATFORM 1037
77 #define EI_CACHE_DIR 1038
78 #define IDC_CHECK1 1039
79 #define EI_DEV_MODE_ENABLED 1039
80 #define FT_CB_ITALIC 1039
81 #define EI_REL_TYPE 1040
83 #define EI_GAME_TITLE 1041
84 #define EI_PUBLISHER 1042
85 #define FT_CB_UNDERLINE 1042
86 #define EI_DEVELOPER 1043
87 #define FT_CB_STRIKEOUT 1043
88 #define EI_AFFILIATES 1044
89 #define EI_COPYRIGHT 1045
90 #define FT_TB_HEIGHT 1046
91 #define EI_MOVIES_DIR 1046
92 #define FT_TB_WIDTH 1047
93 #define FT_SLIDE_HEIGHT 1048
94 #define FT_SLIDE_WIDTH 1049
95 #define FT_CBOX_ESCAPEMENT 1050
96 #define FT_CBOX_ORIENTATION 1051
97 #define FT_TB_WEIGHT 1052
98 #define FT_SLIDE_WEIGHT 1053
99 #define FT_CBOX_CHARSET 1054
100 #define FT_CBOX_OUTPREC 1055
101 #define FT_CBOX_CLIPPREC 1056
102 #define FT_CBOX_QUALITY 1057
103 #define FT_CBOX_PITCHFAM 1058
104 #define FT_CBOX_PITCH 1058
105 #define FT_TB_PREVIEWTEXT 1059
106 #define FT_REFRESH 1060
107 #define FT_FONT_PREVIEW_BOX 1061
108 #define FT_TB_FONTNAME2 1062
109 #define FT_TB_FONTNAME 1062
110 #define FT_CBOX_FAMILY 1063
111 #define IDC_ERR_MSG 1063
112 #define IDC_ERR_MSG_EDITBOX 1063
113 #define FT_TB_ORIENTATION 1064
114 #define IDC_SENTRY_EVENT_ID 1064
115 #define FT_SLIDE_ORIENTATION 1065
116 #define FT_TB_ESCAPEMENT 1070
117 #define FT_SLIDE_ESCAPEMENT 1071
118 #define ID_FILE_EXIT 40001
119 #define ID_BUTTON2 40002
120 #define ID_BUTTON3 40004
121 #define ID_BUTTON4 40005
122 #define ID_BUTTON7 40009
123 #define ID_SPIN2 40010
124 #define ID_CHECK2 40011
125 #define ID_COMBO2 40012
126 #define ID_COMBO3 40013
127 #define ID_PROGRESS2 40014
128 #define ID_BUTTON8 40015
129 #define ID_COMBO4 40016
130 #define ID_EDIT2 40017
131 #define ID_HELP_ABOUT 40018
132 #define ID_HELP_CREDITS 40019
133 #define ID_TEST_IDD 40020
134 #define ID_TEST_IDD40021 40021
135 #define ID_TEST_SHOW_FIRSTBOOT 40022
136 #define ID_TEST_ERROR 40023
137 #define ID_TEST_FONTTEST 40024
138 #define ID_TEST_RESTOREIMGUI 40027
139 #define IDC_ERR_PROBLEM_LABEL 65535
140 #define IDC_ERR_MACHINE_INFO_LABEL 65535
144 #ifdef APSTUDIO_INVOKED
145 #ifndef APSTUDIO_READONLY_SYMBOLS
146 #define _APS_NEXT_RESOURCE_VALUE 156
147 #define _APS_NEXT_COMMAND_VALUE 40028
148 #define _APS_NEXT_CONTROL_VALUE 1065
149 #define _APS_NEXT_SYMED_VALUE 101
#define IDR_MENU1
Definition: resource.h:10
int BGFXMain(SDL_Window *window)
Definition: main.cpp:296
void ClearCachedFiles()
Clears all files from the cache.
Definition: cache.cpp:81
BLAM void RegisterBuiltinCommands()
Registers all hard-coded engine commands.
Definition: console.cpp:374
BLAM BlamConfigurationFile * GetEngineConfiguration()
Definition: config.cpp:58
BLAM void InitializeModules()
Definition: modules.cpp:6
#define ENGINE_CFG_SECTION(section_name)
Macro to quickly access a configuration section from the engine configuration file.
Definition: config.h:29
UINT16 port
Definition: socket.h:16
BLAM void AboutDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the About dialog.
Definition: about.cpp:14
BLAM bool Init()
Definition: socket.cpp:248
const wchar_t * window_name
Main window name (replaces what used to be called 'ver_conv').
Definition: main.cpp:71
HINSTANCE hInst
Application instance handle.
Definition: main.cpp:69
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
@ DataRoot
The root of all game engine data. Defaults to ./
BLAM void ShutdownRenderThread()
Instructs the rendering thread to stop running.
Definition: render_manage.cpp:331
BLAM HMODULE GetEngineDLLHandle()
Retrieves the module handle for the engine.
Definition: main.cpp:743
SDL_MouseMotionEvent motion
Mouse motion event data.
Definition: SdlEmulationLayer.h:739
SDL_MouseButtonEvent button
Mouse button event data.
Definition: SdlEmulationLayer.h:740
int width
Definition: bgfx.cpp:19
BLAM void StartSentry()
Definition: sentry.cpp:41
BLAM void LoadDefaultClasses()
Loads all built-in tag classes available to the engine.
Definition: tagclass.cpp:118
Specialized class for rendering ImGUI using the render stack.
Definition: render_stack.h:388
BLAM UINT32 ClientHelloMessage(UINT8 *buffer)
Definition: messages.cpp:115
BLAM void FirstbootDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the Firstboot dialog.
Definition: firstboot.cpp:15
BLAM void Shutdown()
Definition: ogre.cpp:239
BLAM BlamRenderingEngine GetCurrentRenderingEngine()
Retrieves the current rendering engine being used.
Definition: rendering_abstraction.cpp:104
BLAM bool Initialize()
Definition: ogre.cpp:63
date New version
Definition: chiropteraDM.txt:50
BLAM void InitializeWorldState()
Initializes a new world state.
Definition: world.cpp:9
BLAM void HandleWindowResize(int width, int height, WPARAM wParam)
Definition: rendering_abstraction.cpp:81
@ OGRE
Definition: rendering.h:35
BLAM void TickThread()
Function containing the tick loop.
Definition: tick.cpp:67
BLAM void ProcessSDLEvent(SDL_Event event)
Definition: imgui.cpp:330
@ Log
Writes the error to the game log.
Definition: errors.h:16
BLAM HWND GetWin32MainWindowHandle()
Retrieves the main window handle of the application.
Definition: main.cpp:734
UINT8 * socketBuffer
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:74
BLAM bool LoadGlobalsFromFile()
Loads any globals from GVARS_FILE.
Definition: globals.cpp:206
BLAM ConfigFile * GetConfig()
Retrieves the engine configuration file.
Definition: compat.cpp:5
#define ID_TEST_FONTTEST
Definition: resource.h:137
BLAM BlamResult LoadTagFromFile(std::string tag_path, bool reload_if_already_loaded=true)
Loads a tag from the engine's tag directory (default is '.
Definition: tag_io.cpp:194
UINT32 bytesReceived
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:77
BLAM void linearAllocCreate(Blam::LinearAllocator *alloc, UINT64 size)
Definition: socket.cpp:157
BLAM void Cleanup()
Clean-up all font data and free any allocated memory for font data.
Definition: fonts.cpp:887
BLAM void ShutdownSentry()
Definition: sentry.cpp:108
const UI_API char * GetVersion()
Legacy function to retrieve the "UI version".
Definition: engine_definitions.cpp:145
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:43
BLAM_EXT_API void CleanupEngineResources()
Instructs the engine to clean up any resources.
Definition: main.cpp:667
BLAM_EXT_API int EngineThreadInit()
Performs any additional engine initialization that needs to be called within the engine loop thread.
Definition: main.cpp:618
BLAM void LoadExtensions()
Attempts to load all available extensions.
Definition: extensions.cpp:29
BLAM HRESULT Initialize(HWND hWnd)
Initializes DirectX 11.
Definition: render_manage.cpp:74
#define ID_TEST_RESTOREIMGUI
Definition: resource.h:138
BLAM void Shutdown()
Definition: bgfx.cpp:143
bool use_separate_render_thread
Whether or not to perform rendering tasks on a separate thread.
Definition: main.cpp:83
Blam::LinearAllocator allocator
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:76
#define ID_TEST_SHOW_FIRSTBOOT
Definition: resource.h:135
HMODULE dll_handle
The module handle of the Engine library.
Definition: main.cpp:66
BLAM BlamResult Initialize()
Initialize ImGUI.
Definition: imgui.cpp:25
BLAM void PrepareTick()
Prepares required data for the tick loop.
Definition: tick.cpp:31
BLAM void InitDiscord()
Initialize Discord RPC.
Definition: discord_rpc.cpp:30
#define ENGINE_VERSION
Definition: version_data.h:31
#define ID_HELP_ABOUT
Definition: resource.h:131
BLAM void DestroyWorldState()
Destroys the current world state.
Definition: world.cpp:33
BLAM_EXT_API bool MainWindowProcedure(SDL_Event event)
Window Procedure for the main application window.
Definition: main.cpp:97
bool isConnected
Whether or not the socket is currently connected.
Definition: socket.cpp:14
BLAM bool Send(Socket *socket, UINT8 *packet, UINT32 packetSize, Endpoint *endpoint)
Definition: socket.cpp:304
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:36
BLAM void UnloadExtensions()
Unloads all loaded extensions.
Definition: extensions.cpp:126
BLAM void Shutdown()
Definition: ui.cpp:61
HCURSOR cursor
Main window cursor.
Definition: main.cpp:70
BLAM HRESULT RunCommandLine(std::string command_line)
Executed the provided string as a console command.
Definition: console.cpp:271
const BLAM char * GetVersion()
Retrieves the version of the engine in the following format:
Definition: engine_definitions.cpp:150
BLAM void ShowErrorDialog(const char *title, const char *message)
Shows a simple error dialog created using ImGUI.
Definition: debug_ui.cpp:174
std::thread render_thread
The thread used for rendering.
Definition: main.cpp:82
BLAM void RenderLoop()
Definition: ogre.cpp:189
BLAM void RenderLoop()
Definition: bgfx.cpp:65
BLAM void RegisterSignalExceptions()
Registers all signal handlers.
Definition: errors.cpp:57
BLAM bool Start(Socket *socket, LinearAllocator *allocator)
Definition: socket.cpp:263
BLAM void ProcessSDLEvents(SDL_Event *event)
Definition: ogre.cpp:264
SDL_KeyboardEvent key
Keyboard event data.
Definition: SdlEmulationLayer.h:738
BlamResult DirectXMain(SDL_Window *window)
Definition: main.cpp:243
BLAM UINT8 * linearAlloc(Blam::LinearAllocator *alloc, UINT64 size)
Definition: socket.cpp:164
bool GetBoolean(std::string option)
Retrieves a boolean option from a configuration file.
Definition: compat.cpp:38
#define ID_FILE_EXIT
Definition: resource.h:118
BLAM void GenerateAllPlugins(bool require_switch)
Instructs the engine to generate Assembly/Guerilla plugins at startup.
Definition: tagclass.cpp:89
BLAM IDXGISwapChain * GetDXGISwapChain()
Retrieves the current DXGI Swap Chain.
Definition: render_manage.cpp:588
@ DefaultConfigs
Directory containing default configuration files. Defaults to ./content/blam/default_configs/
BLAM void ErrorDialogProcedure(HINSTANCE hInst, HWND hWnd, const char *error_text)
Dialog procedure for the Error dialog.
Definition: error_notice.cpp:36
Blam::Network::Socket sock
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:75
BLAM void EndTickLoop()
Terminates the tick loop.
Definition: tick.cpp:137
BLAM void Shutdown()
Flushes the queue and may later be used to perform other shutdown tasks.
Definition: queue.cpp:32
BLAM void Shutdown()
Shuts down ImGUI and cleans up any data related to it.
Definition: imgui.cpp:298
BLAM int AddToStack(std::string id, StackObjectBase *object)
Adds an item to the render stack.
Definition: render_stack.cpp:12
std::thread tick_thread
The thread used to handle game tick.
Definition: main.cpp:84
BOOL APIENTRY DllMain(HMODULE module_handle, DWORD reason, LPVOID reserved)
Definition: main.cpp:87
BLAM void HandleReceive(Socket *sock, UINT8 *socketBuffer, UINT32 bufferSize, UINT32 *outPacketSize, Endpoint *outFrom)
Definition: socket.cpp:364
BLAM BlamResult LoadEngineConfiguration()
Definition: config.cpp:11
@ DirectX11
Definition: rendering.h:33
int height
Definition: bgfx.cpp:20
BLAM void ShowLastErrorInfo(const char *function, BlamErrorDisplayType display_type)
Displays the last error information from Windows.
Definition: errors.cpp:66
HSC void InitCSC()
Definition: command_script.cpp:14
BLAM bool HasTickStopped()
Determines whether or not the tick loop has finished terminating.
Definition: tick.cpp:142
BLAM void RenderThread()
Definition: ogre.cpp:226
BLAM void RenderLoop(bool debug)
Renders everything to the screen.
Definition: render_manage.cpp:370
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
BLAM void StartFlushThread()
Definition: queue.cpp:212
#define ID_TEST_ERROR
Definition: resource.h:136
SDL_Keycode sym
SDL virtual key code - see SDL_Keycode for details.
Definition: SdlEmulationLayer.h:668
#define ID_TEST_IDD
Definition: resource.h:133
const IMGUI_API char * GetVersion()
Definition: imgui.cpp:3235
Ogre::int32 y
Y coordinate, relative to window.
Definition: SdlEmulationLayer.h:699
BLAM void CleanupTagData()
Releases all memory used by tags.
Definition: tags.cpp:130
BLAM std::string GetErrorString(BlamResult result)
Alias of Blam::EngineText::LookupErrorString().
Definition: error_library.cpp:7
Ogre::uint32 type
Event type, shared with all events.
Definition: SdlEmulationLayer.h:737
BLAM bool LoadGameEngineStrings()
Loads all strings from the default game engine text file.
Definition: engine_text.cpp:13
HSC void InitHSC()
Definition: blamscript.cpp:14
BLAM std::string GetStringFromHResult(HRESULT hr)
Converts a result handle to a string.
Definition: errors.cpp:120
BLAM_EXT_API void MainLoop()
Function for the engine's main loop.
Definition: main.cpp:639
Ogre::int32 x
X coordinate, relative to window.
Definition: SdlEmulationLayer.h:698
BLAM bool Initialize()
Definition: ui.cpp:13
@ DataRoot
The root of all user data. Defaults to BlamStrings::Utils::IO::GetEngineDataRoot().
BLAM void ShutdownDiscord()
Shuts down Discord RPC.
Definition: discord_rpc.cpp:74
BLAM void FontTestDialogProcedure(HINSTANCE hInst, HWND hWnd)
Dialog procedure for the Font Test dialog.
Definition: font_test.cpp:14
BLAM_EXT_API int StartEngine(int args_count, char *args[], SDL_Window *window)
Entry point for the engine.
Definition: main.cpp:354
BLAM void Cleanup()
Cleans up all DirectX data.
Definition: render_manage.cpp:237
BLAM bool ContainsImGUIObject()
Determines whether or not an ImGUI stack object has been added.
Definition: render_stack.cpp:102
BLAM void Initialize()
Definition: bgfx.cpp:28
Definition: SdlEmulationLayer.h:735
BLAM bool HasRenderThreadStopped()
Determines whether or not the render thread has finished stopping.
Definition: render_manage.cpp:326
BLAM void Cleanup()
Cleans up any render stack data.
Definition: render_stack.cpp:123
BLAM void FlushThread()
Definition: queue.cpp:196
UINT32 address
Definition: socket.h:15
@ DebugMenu
Debug menu.
Definition: render_stack.h:79
BLAM void Initialize()
Initializes the logger queue.
Definition: queue.cpp:25
#define IDC_POINTER
Definition: resource.h:12
@ BGFX
Definition: rendering.h:34
BLAM void UpdatePresence(DiscordRichPresence discordPresence)
Update the current Discord presence.
Definition: discord_rpc.cpp:103
BLAM void Initialize()
Prepares the logger for use.
Definition: logger.cpp:130
SDL_Window * engine_window
Pointer to the window handle that the engine is utilizing.
Definition: main.cpp:65
BLAM void Cleanup()
Cleans up all console command data.
Definition: console.cpp:363
Blam::Endpoint from
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:78
int OGREMain(SDL_Window *window)
Definition: main.cpp:323
SDL_Keysym keysym
The key that was pressed or released.
Definition: SdlEmulationLayer.h:685
BLAM void RenderThread(bool debug)
Instructs the engine to start rendering on a separate thread.
Definition: render_manage.cpp:337
BLAM GvarUpdateResult UpdateGlobal(std::string name, std::string new_value)
Updates the value of a String global.
Definition: globals.cpp:578
Definition: console.hpp:66
BLAM void LoadAllFonts()
Loads all fonts available in the engine's configured font directory.
Definition: fonts.cpp:900
BLAM SDL_Window * GetMainWindowHandle()
Retrieves the main window handle of the application, when using SDL.
Definition: main.cpp:729
std::thread log_flush_thread
The thread used for flusing log contents to disk.
Definition: main.cpp:85
BLAM void ReleaseModules()
Definition: modules.cpp:12