 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
13 #include <Strings/components/diagnostics/errors/errors.h>
16 #define BLAM_EXT_API __declspec(dllexport)
18 #define BLAM_EXT_API __declspec(dllimport)
Namespace surrounding all major engine components.
Definition: blam_api.h:28
BLAM BlamDirector * GetCamera()
Retrieves the director instance.
Definition: director.cpp:31
BLAM_EXT_API BlamWorldState * GetWorldState()
Retrieves the current world state.
Definition: world.cpp:44
#define BLAM
Definition: blam_api.h:22
bool mouse_captured
Whether or not the mouse is currently being captured by the camera.
Definition: director.h:84
int width
Definition: bgfx.cpp:19
BLAM_EXT_API float GetDirectorSpeed()
Retrieves the current speed of the debug director.
Definition: blam_api.cpp:44
BLAM_EXT_API void SetEngineViewportActive(bool viewport_active)
API wrapper around ImGui_ImplSDL2_SetActiveWindowOverride.
Definition: blam_api.cpp:74
bool engine_hooked_in_qt
Definition: blam_api.cpp:10
ImVec2 MousePos
Definition: imgui.h:1409
BLAM_EXT_API BlamResult LoadTagFromMemory(char *address, int size, const char *tag_path)
Definition: blam_api.cpp:105
BLAM_EXT_API void ExecuteConsoleCommand(const char *command)
Runs a command through the engine's console.
Definition: blam_api.cpp:22
BLAM HRESULT SetDisplayRes(int x, int y)
Changes the game's display resolution.
Definition: rendering_abstraction.cpp:8
BLAM_EXT_API void ResizeViewport(int width, int height)
Resizes the engine's viewport resolution.
Definition: blam_api.cpp:27
BLAM_EXT_API void CleanupEngineResources()
Instructs the engine to clean up any resources.
Definition: main.cpp:666
BLAM_EXT_API int EngineThreadInit()
Performs any additional engine initialization that needs to be called within the engine loop thread.
Definition: main.cpp:617
float x
Definition: imgui.h:181
BLAM_EXT_API BlamVector3 GetMousePosition3D()
Retrieves the 3D position of the mouse pointer.
Definition: blam_api.cpp:69
BLAM int GetRenderHeight()
Definition: bgfx.cpp:190
BLAM bool GetEngineHookState()
Retrieves the engine's hook state.
Definition: blam_api.cpp:17
BLAM_EXT_API BlamVector3 GetDirectorPosition()
Retrieves the current position of the debug director.
Definition: blam_api.cpp:32
BLAM_EXT_API void SetEngineHookState(bool hook_state)
Sets whether or not the engine is hooked via Qt.
Definition: blam_api.cpp:12
BLAM_EXT_API bool MainWindowProcedure(SDL_Event event)
Window Procedure for the main application window.
Definition: main.cpp:97
BLAM_EXT_API BlamVector2 GetGameResolution()
Retrieves the current render resolution for the engine.
Definition: blam_api.cpp:89
BLAM_EXT_API BlamWorldState * GetWorldState()
Retrieves the current world state.
Definition: blam_api.cpp:100
BLAM HRESULT RunCommandLine(std::string command_line)
Executed the provided string as a console command.
Definition: console.cpp:271
IMGUI_API ImGuiIO & GetIO()
Definition: imgui.cpp:3300
void ImGui_ImplSDL2_SetActiveWindowOverride(bool override_state)
Special function used to override active window checks.
Definition: imgui_impl_sdl.cpp:375
#define BLAM_EXT_API
Definition: blam_api.h:18
BLAM BlamResult LoadTagFromMemoryBlock(char *address, int size, std::string tag_path, bool reload_if_already_loaded=true)
Definition: tag_io.cpp:536
float speed
The camera's current speed.
Definition: director.h:88
BLAM_EXT_API BlamVector2 GetMousePosition2D()
Retrieves the 2D position of the mouse pointer.
Definition: blam_api.cpp:56
BLAM_EXT_API bool IsMouseCapturedByDirector()
Checks if the mouse is currently captured by the debug director.
Definition: blam_api.cpp:79
BLAM int GetRenderWidth()
Definition: bgfx.cpp:185
int height
Definition: bgfx.cpp:20
float y
Definition: imgui.h:181
BLAM_EXT_API void MainLoop()
Function for the engine's main loop.
Definition: main.cpp:638
BLAM_EXT_API int StartEngine(int args_count, char *args[], SDL_Window *window)
Entry point for the engine.
Definition: main.cpp:355
Definition: SdlEmulationLayer.h:735
BlamVector3 camera_pos
The current position of the camera.
Definition: director.h:77
Class representing a world state.
Definition: world_objects.h:149