 |
Blamite Game Engine - blam!
00453.06.08.26.0624.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 IDD_SPLASH_TEMP 156
51 #define IDD_DIALOG2 158
52 #define IDD_RASTERIZER 158
53 #define IDC_BUTTON1 1001
54 #define IDC_ERR_DONT_SHOW_AGAIN 1001
56 #define IDC_MFCBUTTON1 1004
57 #define IDC_ERR_CONTINUE 1004
58 #define IDC_ERR_EXIT 1005
59 #define IDC_RICHEDIT21 1006
60 #define IDC_ERR_MESSAGE 1006
61 #define IDC_ERR_MORE_INFO 1007
62 #define IDC_MFCVSLISTBOX1 1009
63 #define IDC_ERR_MACHINE_INFO 1009
64 #define IDC_LIST1 1010
65 #define IDC_BUTTON2 1011
66 #define IDC_COMBO1 1018
67 #define IDC_TREE1 1020
68 #define lbl_notice_message 1027
69 #define EI_DUMP_TO_FILE 1028
70 #define EI_GBOX_ENGINE_INFO 1029
71 #define EI_GBOX_GAME_INFO 1030
72 #define EI_GBOX_ENGINE_SETTINGS 1031
73 #define EI_UI_VERSION 1032
74 #define IDC_AB_COPYRIGHT 1033
75 #define IDC_AB_VERSION_TITLE 1034
76 #define EI_ENGINE_VER 1035
77 #define IDC_AB_ENGINE_INFO 1035
78 #define EI_PRODUCT_ID 1036
79 #define EI_PLATFORM 1037
80 #define EI_CACHE_DIR 1038
81 #define IDC_CHECK1 1039
82 #define EI_DEV_MODE_ENABLED 1039
83 #define FT_CB_ITALIC 1039
84 #define EI_REL_TYPE 1040
86 #define EI_GAME_TITLE 1041
87 #define EI_PUBLISHER 1042
88 #define FT_CB_UNDERLINE 1042
89 #define EI_DEVELOPER 1043
90 #define FT_CB_STRIKEOUT 1043
91 #define EI_AFFILIATES 1044
92 #define EI_COPYRIGHT 1045
93 #define FT_TB_HEIGHT 1046
94 #define EI_MOVIES_DIR 1046
95 #define FT_TB_WIDTH 1047
96 #define FT_SLIDE_HEIGHT 1048
97 #define FT_SLIDE_WIDTH 1049
98 #define FT_CBOX_ESCAPEMENT 1050
99 #define FT_CBOX_ORIENTATION 1051
100 #define FT_TB_WEIGHT 1052
101 #define FT_SLIDE_WEIGHT 1053
102 #define FT_CBOX_CHARSET 1054
103 #define FT_CBOX_OUTPREC 1055
104 #define FT_CBOX_CLIPPREC 1056
105 #define FT_CBOX_QUALITY 1057
106 #define FT_CBOX_PITCHFAM 1058
107 #define FT_CBOX_PITCH 1058
108 #define FT_TB_PREVIEWTEXT 1059
109 #define FT_REFRESH 1060
110 #define FT_FONT_PREVIEW_BOX 1061
111 #define FT_TB_FONTNAME2 1062
112 #define FT_TB_FONTNAME 1062
113 #define FT_CBOX_FAMILY 1063
114 #define IDC_ERR_MSG 1063
115 #define IDC_ERR_MSG_EDITBOX 1063
116 #define FT_TB_ORIENTATION 1064
117 #define IDC_SENTRY_EVENT_ID 1064
118 #define FT_SLIDE_ORIENTATION 1065
119 #define IDC_SPLASH_TEMP_TEXT 1065
120 #define IDC_PROGRESS1 1066
121 #define IDC_FIRSTBOOT_DISCORD_BTN 1067
122 #define IDC_FIRSTBOOT_TRACKER_BTN 1068
123 #define FT_TB_ESCAPEMENT 1070
124 #define FT_SLIDE_ESCAPEMENT 1071
125 #define ID_FILE_EXIT 40001
126 #define ID_BUTTON2 40002
127 #define ID_BUTTON3 40004
128 #define ID_BUTTON4 40005
129 #define ID_BUTTON7 40009
130 #define ID_SPIN2 40010
131 #define ID_CHECK2 40011
132 #define ID_COMBO2 40012
133 #define ID_COMBO3 40013
134 #define ID_PROGRESS2 40014
135 #define ID_BUTTON8 40015
136 #define ID_COMBO4 40016
137 #define ID_EDIT2 40017
138 #define ID_HELP_ABOUT 40018
139 #define ID_HELP_CREDITS 40019
140 #define ID_TEST_IDD 40020
141 #define ID_TEST_IDD40021 40021
142 #define ID_TEST_SHOW_FIRSTBOOT 40022
143 #define ID_TEST_ERROR 40023
144 #define ID_TEST_FONTTEST 40024
145 #define ID_TEST_RESTOREIMGUI 40027
146 #define IDC_ERR_PROBLEM_LABEL 65535
147 #define IDC_ERR_MACHINE_INFO_LABEL 65535
151 #ifdef APSTUDIO_INVOKED
152 #ifndef APSTUDIO_READONLY_SYMBOLS
153 #define _APS_NEXT_RESOURCE_VALUE 160
154 #define _APS_NEXT_COMMAND_VALUE 40028
155 #define _APS_NEXT_CONTROL_VALUE 1069
156 #define _APS_NEXT_SYMED_VALUE 101
#define IDR_MENU1
Definition: resource.h:10
BLAM void Shutdown()
Shuts down the Discord API.
Definition: discord.cpp:78
BLAM void MainLoop()
Main loop for the Discord API.
Definition: discord.cpp:68
void ClearCachedFiles()
Clears all files from the cache.
Definition: cache.cpp:81
BLAM void RegisterBuiltinCommands()
Registers all hard-coded engine commands.
Definition: console.cpp:375
BLAM void Initialize()
Definition: win32.cpp:10
BLAM void InitializeModules()
Definition: modules.cpp:5
#define ENGINE_CFG_SECTION(section_name)
Macro to quickly access a configuration section from the engine configuration file.
Definition: config.h:27
UINT16 port
Definition: socket.h:16
BLAM bool ShowFirstbootDialog()
Displays the Firstboot dialog.
Definition: firstboot.cpp:50
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:64
HINSTANCE hInst
Application instance handle.
Definition: main.cpp:62
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
@ DataRoot
The root of all game engine data. Defaults to ./
BLAM HMODULE GetEngineDLLHandle()
Retrieves the module handle for the engine.
Definition: main.cpp:643
SDL_MouseMotionEvent motion
Mouse motion event data.
Definition: SdlEmulationLayer.h:739
SDL_MouseButtonEvent button
Mouse button event data.
Definition: SdlEmulationLayer.h:740
BLAM void Shutdown()
Definition: bgfx.cpp:371
BLAM void StartSentry()
Definition: sentry.cpp:42
Ogre::uint32 direction
Set to one of the SDL_MOUSEWHEEL_* defines.
Definition: SdlEmulationLayer.h:732
BLAM void LoadDefaultClasses()
Loads all built-in tag classes available to the engine.
Definition: tagclass.cpp:124
BLAM UINT32 ClientHelloMessage(UINT8 *buffer)
Definition: messages.cpp:116
BLAM BlamGlobalUpdateResult UpdateGlobal(std::string name, std::string new_value)
Updates the value of a String global.
Definition: globals.cpp:589
BLAM void TickThread()
Function containing the tick loop.
Definition: tick.cpp:129
BLAM void RenderLoop()
Definition: bgfx.cpp:161
BLAM void ProcessSDLEvent(SDL_Event event)
Passes an SDL event to ImGUI for proper handling.
Definition: imgui.cpp:262
@ 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:634
BLAM void HandleWindowReisze(int width, int height)
Instructs OGRE to handle a window resize.
Definition: ogre.cpp:650
BLAM int EngineThreadInit()
Performs any additional engine initialization that needs to be called within the engine loop thread.
Definition: main.cpp:549
UINT8 * socketBuffer
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:67
BLAM bool LoadGlobalsFromFile()
Loads any globals from #GVARS_FILE.
Definition: globals.cpp:202
#define ID_TEST_FONTTEST
Definition: resource.h:144
Ogre::int32 y
The amount scrolled vertically, positive away from the user and negative toward the user.
Definition: SdlEmulationLayer.h:731
BLAM void Initialize()
Initializes the Discord API.
Definition: discord.cpp:32
bool using_bgfx_render
Definition: main.cpp:80
bool WantCaptureMouse
Definition: imgui.h:1429
UINT32 bytesReceived
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:70
BLAM void linearAllocCreate(Blam::LinearAllocator *alloc, UINT64 size)
Definition: socket.cpp:157
BLAM void Cleanup()
Releases all font package data from memory.
Definition: fonts.cpp:818
BLAM void ShutdownSentry()
Definition: sentry.cpp:109
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:41
Ogre::int32 x
The amount scrolled horizontally, positive to the right and negative to the left.
Definition: SdlEmulationLayer.h:730
BLAM void LoadExtensions()
Attempts to load all available extensions.
Definition: extensions.cpp:29
BLAM void RenderThread()
Function used to handle the render thread.
Definition: ogre.cpp:569
#define IDD_PROPPAGE_MEDIUM
Definition: resource.h:13
#define ID_TEST_RESTOREIMGUI
Definition: resource.h:145
bool use_separate_render_thread
Whether or not to perform rendering tasks on a separate thread.
Definition: main.cpp:76
Blam::LinearAllocator allocator
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:69
#define ID_TEST_SHOW_FIRSTBOOT
Definition: resource.h:142
BLAM void ProcessSDLEvents(SDL_Event *event)
Function used to allow OGRE to handle SDL events.
Definition: ogre.cpp:629
BLAM int ShowErrorDialogModal(std::string error_text, bool allow_continue=true, bool allow_safemode=true)
Displays the Error dialog as a modal dialog.
Definition: error_notice.cpp:122
HMODULE dll_handle
The module handle of the Engine library.
Definition: main.cpp:59
BLAM BlamResult Initialize()
Initialize ImGUI.
Definition: imgui.cpp:22
BLAM void PrepareTick()
Prepares required data for the tick loop.
Definition: tick.cpp:35
BLAM void ShowFontTestDialog()
Displays the Font Test dialog.
Definition: font_test.cpp:280
#define ENGINE_VERSION
Definition: version_data.h:32
BLAM void RunInitCommands()
Attempts to read init.txt and runs any commands added to it.
Definition: console.cpp:423
#define ID_HELP_ABOUT
Definition: resource.h:138
BLAM void ShowAboutDialog()
Displays the About dialog.
Definition: about.cpp:50
BLAM void ConfigureProjectDefaults()
Definition: project.cpp:17
#define ENGINE_CFG
Macro to allow quicker access to the main configuration file.
Definition: config.h:20
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
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:34
BLAM void UnloadExtensions()
Unloads all loaded extensions.
Definition: extensions.cpp:128
HCURSOR cursor
Main window cursor.
Definition: main.cpp:63
IMGUI_API ImGuiIO & GetIO()
Definition: imgui.cpp:3300
std::thread render_thread
The thread used for rendering.
Definition: main.cpp:75
bool WantCaptureKeyboard
Definition: imgui.h:1430
BLAM void ShowErrorDialog(const char *title, const char *message)
Shows a simple error dialog created using ImGUI.
Definition: debug_ui.cpp:171
BLAM void RegisterSignalExceptions()
Registers all signal handlers.
Definition: errors.cpp:57
BLAM bool Start(Socket *socket, LinearAllocator *allocator)
Definition: socket.cpp:263
SDL_KeyboardEvent key
Keyboard event data.
Definition: SdlEmulationLayer.h:738
BLAM UINT8 * linearAlloc(Blam::LinearAllocator *alloc, UINT64 size)
Definition: socket.cpp:164
#define ID_FILE_EXIT
Definition: resource.h:125
BLAM void GenerateAllPlugins(bool require_switch)
Instructs the engine to generate Assembly/Guerilla plugins at startup.
Definition: tagclass.cpp:95
BLAM void HandleWindowReisze(int width, int height)
Definition: bgfx.cpp:385
BLAM bool Initialize()
Definition: bgfx.cpp:106
@ DefaultConfigs
Directory containing default configuration files. Defaults to ./content/blam/default_configs/
BLAM bool Initialize()
Initializes the OGRE rendering library.
Definition: ogre.cpp:140
#define ID_HELP_CREDITS
Definition: resource.h:139
Blam::Network::Socket sock
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:68
BLAM void EndTickLoop()
Terminates the tick loop.
Definition: tick.cpp:202
BLAM void Shutdown()
Flushes the queue and may later be used to perform other shutdown tasks.
Definition: queue.cpp:39
BLAM void Shutdown()
Shuts down ImGUI and cleans up any data related to it.
Definition: imgui.cpp:240
std::thread tick_thread
The thread used to handle game tick.
Definition: main.cpp:77
BOOL APIENTRY DllMain(HMODULE module_handle, DWORD reason, LPVOID reserved)
Definition: main.cpp:82
BLAM BlamResult LoadEngineConfiguration()
Loads the default game engine configuration (engine.cfg).
Definition: config.cpp:13
BLAM bool HasTickStopped()
Determines whether or not the tick loop has finished terminating.
Definition: tick.cpp:207
BLAM void ShowLastErrorInfo(const char *function, BlamErrorDisplayType display_type)
Displays the last error information from the Windows APIs.
Definition: errors.cpp:66
BLAM void MainLoop()
Function for the engine's main loop.
Definition: main.cpp:566
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
BLAM void StartFlushThread()
Starts the logger queue flush thread.
Definition: queue.cpp:231
BLAM bool MainWindowProcedure(SDL_Event event)
Window procedure for the main application window.
Definition: main.cpp:92
#define ID_TEST_ERROR
Definition: resource.h:143
SDL_Keycode sym
SDL virtual key code - see SDL_Keycode for details.
Definition: SdlEmulationLayer.h:668
#define ID_TEST_IDD
Definition: resource.h:140
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:136
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:11
BLAM void CleanupEngineResources()
Instructs the engine to clean up any resources.
Definition: main.cpp:583
Ogre::int32 x
X coordinate, relative to window.
Definition: SdlEmulationLayer.h:698
@ DataRoot
The root of all user data. Defaults to BlamStrings::Utils::IO::GetEngineDataRoot().
BLAM void LoadExtensionClasses()
Loads all tag classes that are included through engine extensions.
Definition: tagclass.cpp:142
Definition: SdlEmulationLayer.h:735
BLAM void FlushThread()
Function for the logger queue flush thread.
Definition: queue.cpp:215
BLAM std::string LookupErrorString(int error_code)
Finds a string message associated with a given error code.
Definition: engine_text.cpp:46
UINT32 address
Definition: socket.h:15
BLAM void Initialize()
Initializes the logger queue.
Definition: queue.cpp:32
BLAM void SetPresenceStatus(std::string details, std::string status)
Updates the current Discord rich presence status.
Definition: discord.cpp:88
#define IDC_POINTER
Definition: resource.h:12
BLAM int StartEngine(int args_count, char *args[], SDL_Window *window)
Entry point for the engine.
Definition: main.cpp:267
BLAM void Initialize()
Prepares the logger for use.
Definition: logger.cpp:127
SDL_Window * engine_window
Pointer to the window handle that the engine is utilizing.
Definition: main.cpp:58
BLAM void Cleanup()
Cleans up all console command data.
Definition: console.cpp:365
Blam::Endpoint from
– TO BE FILLED IN BY VERTIGO –
Definition: main.cpp:71
SDL_Keysym keysym
The key that was pressed or released.
Definition: SdlEmulationLayer.h:685
BLAM void LoadAllFonts()
Loads all available font packages within the fonts directory.
Definition: fonts.cpp:127
BLAM void Shutdown()
Shuts down OGRE and cleans up any memory used by it.
Definition: ogre.cpp:598
BLAM SDL_Window * GetMainWindowHandle()
Retrieves the main window handle of the application, when using SDL.
Definition: main.cpp:629
BLAM void RenderLoop()
Function to handle the render loop.
Definition: ogre.cpp:263
std::thread log_flush_thread
The thread used for flusing log contents to disk.
Definition: main.cpp:78
BLAM void ReleaseModules()
Definition: modules.cpp:10
SDL_MouseWheelEvent wheel
Mouse wheel event data.
Definition: SdlEmulationLayer.h:741