Blamite Game Engine - Blam (Core)
blam_api.h
Go to the documentation of this file.
1 // Blamite Game Engine - API Header //
3 // Copyright (c) Elaztek Studios 2013-2020 //
5 
6 #pragma once
7 
8 #include <Windows.h>
9 #include <string>
10 
11 #ifndef BLAM_EXPORTS
12 #define BLAM_EXT_API extern "C" __declspec(dllexport)
13 #else
14 #define BLAM_EXT_API extern "C" __declspec(dllimport)
15 #endif
16 
17 namespace Blam
18 {
25  namespace InteropAPI
26  {
27  namespace DotNETHelpers
28  {
29  BLAM_EXT_API LPARAM CreateLParam(int low, int high);
30  BLAM_EXT_API WPARAM CreateWParam(int low, int high);
31  }
32 
47  BLAM_EXT_API LRESULT WINAPI MainWindowProcedure(HWND window_handle, UINT message, WPARAM wParam, LPARAM lParam);
48 
58  BLAM_EXT_API int StartEngine(int args_count, char *args[], HWND window);
59 
63  BLAM_EXT_API void MainLoop();
64 
69  }
70 
77  namespace API
78  {
84  BLAM_EXT_API void ExecuteConsoleCommand(const char* command);
85 
92  BLAM_EXT_API void ResizeViewport(int width, int height);
93  }
94 }
Blam
Namespace surrounding all major engine components.
Definition: blam_api.h:17
Blam::API::ExecuteConsoleCommand
BLAM_EXT_API void ExecuteConsoleCommand(const char *command)
Runs a command through the engine's console.
Definition: blam_api.cpp:16
Blam::InteropAPI::DotNETHelpers::CreateWParam
BLAM_EXT_API WPARAM CreateWParam(int low, int high)
Definition: blam_api.cpp:11
Blam::API::ResizeViewport
BLAM_EXT_API void ResizeViewport(int width, int height)
Resizes the engine's viewport resolution.
Definition: blam_api.cpp:21
Blam::InteropAPI::CleanupEngineResources
BLAM_EXT_API void CleanupEngineResources()
Instructs the engine to clean up any resources.
Definition: main.cpp:553
Blam::InteropAPI::MainWindowProcedure
BLAM_EXT_API LRESULT WINAPI MainWindowProcedure(HWND window_handle, UINT message, WPARAM wParam, LPARAM lParam)
Window Procedure for the main application window.
Definition: main.cpp:94
BLAM_EXT_API
#define BLAM_EXT_API
Definition: blam_api.h:12
Blam::InteropAPI::DotNETHelpers::CreateLParam
BLAM_EXT_API LPARAM CreateLParam(int low, int high)
Definition: blam_api.cpp:6
Blam::InteropAPI::StartEngine
BLAM_EXT_API int StartEngine(int args_count, char *args[], HWND window)
Entry point for the engine.
Definition: main.cpp:223
Blam::InteropAPI::MainLoop
BLAM_EXT_API void MainLoop()
Function for the engine's main loop.
Definition: main.cpp:539