Blamite Game Engine - Blam (Core)
main.cpp File Reference
#include "core.h"
#include "api/blam_api.h"
#include <thread>
#include <Uxtheme.h>
#include <signal.h>
#include "components/content/fonts/fonts.h"
#include "components/core/blam_ui/blam_ui.h"
#include "components/core/cache/cache.h"
#include "components/core/config/config.h"
#include "components/core/debug_ui/debug_colors.h"
#include "components/core/debug_ui/debug_ui.h"
#include "components/core/dialogs/dialogs.h"
#include "components/core/engine_definitions/engine_definitions.h"
#include "components/core/error/error.h"
#include "components/core/logger/logger.h"
#include "components/core/placeholders/placeholders.h"
#include "components/core/switches/switches.h"
#include "components/core/utils/converters/converters.h"
#include "components/core/utils/io/io.h"
#include "components/core/utils/res/res.h"
#include "components/core/utils/utilities.h"
#include "components/discord/m_discord.h"
#include "components/haloscript/haloscript.h"
#include "components/input/keyboard.h"
#include "components/networking/messages.h"
#include "components/networking/socket.h"
#include "components/rendering/directx11/render_stack/render_stack.h"
#include "components/rendering/directx11/render_stack/stack_types/blam_ui/console.hpp"
#include "components/rendering/directx11/render_stack/stack_types/blam_ui/debug_menu.hpp"
#include "components/rendering/directx11/render_stack/stack_types/blam_ui/fpscounter.hpp"
#include "components/rendering/directx11/render_stack/stack_types/blam_ui/tick_counter.hpp"
#include "components/rendering/rendering.h"
#include "components/core/crash/crash.h"
#include "version_data.h"
#include "components/3rdparty/imgui/formats/imgui_impl_win32.h"
#include "components/3rdparty/imgui/formats/dx11/imgui_impl_dx11.h"
#include "components/tick/tick.h"
#include "components/content/tags/tags.h"
#include "components/content/tags/classes/bitmap.h"

Macros

#define ENGINE_VERSION   "00204.05.29.20.0001.blamite"
 

Functions

LRESULT ImGui_ImplWin32_WndProcHandler (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
BOOL APIENTRY DllMain (HMODULE module_handle, DWORD reason, LPVOID reserved)
 

Variables

HWND engine_window
 Pointer to the window handle that the engine is utilizing. More...
 
HMODULE dll_handle
 The module handle of the Engine library. More...
 
BlamRendering::RenderStack::ImGUIObjectimgui
 Pointer to ImGUI render stack object. This should probably be moved at some point. More...
 
bool imgui_initialized = false
 Whether or not ImGUI has been initialized. More...
 
HINSTANCE hInst
 Application instance handle. More...
 
HCURSOR cursor
 Main window cursor. More...
 
const wchar_t * window_name
 Main window name (replaces what used to be called 'ver_conv'). More...
 
UINT8 * socketBuffer
 – TO BE FILLED IN BY VERTIGO – More...
 
Blam::Network::Socket sock
 – TO BE FILLED IN BY VERTIGO – More...
 
Blam::LinearAllocator allocator
 – TO BE FILLED IN BY VERTIGO – More...
 
UINT32 bytesReceived
 – TO BE FILLED IN BY VERTIGO – More...
 
Blam::Endpoint from
 – TO BE FILLED IN BY VERTIGO – More...
 
bool isConnected
 Whether or not the socket is currently connected. More...
 
std::thread render_thread
 The thread used for rendering. More...
 
bool use_separate_render_thread = false
 Whether or not to perform rendering tasks on a separate thread. More...
 
std::thread tick_thread
 The thread used to handle game tick. More...
 
bool debug = false
 Stores value of debugMode config option, probably should be removed at some point. More...
 

Macro Definition Documentation

◆ ENGINE_VERSION

#define ENGINE_VERSION   "00204.05.29.20.0001.blamite"

Function Documentation

◆ DllMain()

BOOL APIENTRY DllMain ( HMODULE  module_handle,
DWORD  reason,
LPVOID  reserved 
)

◆ ImGui_ImplWin32_WndProcHandler()

LRESULT ImGui_ImplWin32_WndProcHandler ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Variable Documentation

◆ allocator

– TO BE FILLED IN BY VERTIGO –

◆ bytesReceived

UINT32 bytesReceived

– TO BE FILLED IN BY VERTIGO –

◆ cursor

HCURSOR cursor

Main window cursor.

◆ debug

bool debug = false

Stores value of debugMode config option, probably should be removed at some point.

◆ dll_handle

HMODULE dll_handle

The module handle of the Engine library.

◆ engine_window

HWND engine_window

Pointer to the window handle that the engine is utilizing.

◆ from

– TO BE FILLED IN BY VERTIGO –

◆ hInst

HINSTANCE hInst

Application instance handle.

◆ imgui

Pointer to ImGUI render stack object. This should probably be moved at some point.

◆ imgui_initialized

bool imgui_initialized = false

Whether or not ImGUI has been initialized.

◆ isConnected

bool isConnected

Whether or not the socket is currently connected.

◆ render_thread

std::thread render_thread

The thread used for rendering.

◆ sock

– TO BE FILLED IN BY VERTIGO –

◆ socketBuffer

UINT8* socketBuffer

– TO BE FILLED IN BY VERTIGO –

◆ tick_thread

std::thread tick_thread

The thread used to handle game tick.

◆ use_separate_render_thread

bool use_separate_render_thread = false

Whether or not to perform rendering tasks on a separate thread.

◆ window_name

const wchar_t* window_name

Main window name (replaces what used to be called 'ver_conv').