![]() |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Namespace containing functions relating to the Blamite C# Interoperability API. More...
Namespaces | |
DotNETHelpers | |
Functions | |
BLAM_EXT_API bool | MainWindowProcedure (SDL_Event event) |
Window Procedure for the main application window. More... | |
BLAM_EXT_API int | StartEngine (int args_count, char *args[], SDL_Window *window) |
Entry point for the engine. More... | |
BLAM_EXT_API void | MainLoop () |
Function for the engine's main loop. More... | |
BLAM_EXT_API void | CleanupEngineResources () |
Instructs the engine to clean up any resources. More... | |
Namespace containing functions relating to the Blamite C# Interoperability API.
The API calls available through this namespace are intended exclusively for hooking to the engine from C#. For a more general-purpose API, see Blam::API
void Blam::InteropAPI::CleanupEngineResources | ( | ) |
Instructs the engine to clean up any resources.
Should be called at shutdown.
void Blam::InteropAPI::MainLoop | ( | ) |
Function for the engine's main loop.
Should be called from the parent application's message loop.
bool Blam::InteropAPI::MainWindowProcedure | ( | SDL_Event | event | ) |
Window Procedure for the main application window.
The engine will let ImGUI try to handle the procedure first. If it doesn't, then it allows us to do so. This is the top-level function to control things like window resizing, keyboard input, menu bar interaction, and so on.
false
, the parent loop should break and shutdown should be initiated.event | - The SDL event that was fired. |
false
if the window should start closing, otherwise returns true
. int Blam::InteropAPI::StartEngine | ( | int | args_count, |
char * | args[], | ||
SDL_Window * | window | ||
) |
Entry point for the engine.
args_count | - Number of command-line arguments passed to the application. |
args | - Array of command-line arguments passed to the application. |
window | - Pointer to the window handle to run the game engine within. |