diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-06-22 12:38:38 -0600 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-06-22 12:38:38 -0600 |
| commit | 9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3 (patch) | |
| tree | d7956fc8aabef903f354578d69d4d7fdf64ec928 /src/client/main.cpp | |
| parent | 06d3e8182d018ca613f177f6ff7a3bbb6494cc79 (diff) | |
| download | brokengine-9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3.tar.gz brokengine-9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3.tar.bz2 brokengine-9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3.zip | |
Updated core
Updated all core files to prepare for tech demo
Diffstat (limited to 'src/client/main.cpp')
| -rw-r--r-- | src/client/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/main.cpp b/src/client/main.cpp index 949cd6b..9c22567 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -5,6 +5,7 @@ extern "C" { #include <lauxlib.h> #include <lualib.h> } +#define _IRR_STATIC_LIB_ #include <irrlicht.h> #include <chrono> @@ -109,7 +110,7 @@ int setbackgroundcolor(lua_State* L){ } int main(int argc, char *argv[]){ - printf("Brok[en]gine Client"); + printf("Brok[en]gine Client\n"); // Initialize bullet phys_genesis(); @@ -120,11 +121,14 @@ int main(int argc, char *argv[]){ loadLLibs(state); //Defined in initdevice.cpp, creates the irrlicht device device = spawnIrrDevice(state); + ILogger* log = device->getLogger(); + log->setLogLevel(ELL_NONE); if (!device) return 1; //Loads libraries for interfaceing with irrlicht loadIrrLibs(state,device); loadNetLibs(state); + luaL_openlibs(state); printf("Loadded irr libs...\n"); //Sets the global event handeler GlobalEventReceiver ger = GlobalEventReceiver(device); @@ -144,7 +148,7 @@ int main(int argc, char *argv[]){ ISceneManager* smgr = device->getSceneManager(); IGUIEnvironment* guienv = device->getGUIEnvironment(); - device->setWindowCaption(L"Brok[en]gine Client"); + device->setWindowCaption(L"Brok[en]gine Client v0.1\n"); printf("Everything registered, about to start running device!\n"); |
