Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
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 #include <sdl2/SDL.h>
11 
12 #ifdef BLAM_EXPORTS
13 #define BLAM_EXT_API extern "C" __declspec(dllexport)
14 #else
15 #define BLAM_EXT_API extern "C" __declspec(dllimport)
16 #endif
17 
18 namespace Blam
19 {
26  namespace InteropAPI
27  {
28  namespace DotNETHelpers
29  {
30  BLAM_EXT_API LPARAM CreateLParam(int low, int high);
31  BLAM_EXT_API WPARAM CreateWParam(int low, int high);
32  }
33 
47  BLAM_EXT_API bool MainWindowProcedure(SDL_Event event);
48 
58  BLAM_EXT_API int StartEngine(int args_count, char *args[], SDL_Window* 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:18
width
int width
Definition: bgfx.cpp:18
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:688
Blam::InteropAPI::MainWindowProcedure
BLAM_EXT_API bool MainWindowProcedure(SDL_Event event)
Window Procedure for the main application window.
Definition: main.cpp:92
BLAM_EXT_API
#define BLAM_EXT_API
Definition: blam_api.h:15
Blam::InteropAPI::DotNETHelpers::CreateLParam
BLAM_EXT_API LPARAM CreateLParam(int low, int high)
Definition: blam_api.cpp:6
height
int height
Definition: bgfx.cpp:19
Blam::InteropAPI::MainLoop
BLAM_EXT_API void MainLoop()
Function for the engine's main loop.
Definition: main.cpp:657
Blam::InteropAPI::StartEngine
BLAM_EXT_API int StartEngine(int args_count, char *args[], SDL_Window *window)
Entry point for the engine.
Definition: main.cpp:353