1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 06:16:00 +00:00

moved all the HyperRogue stuff except RogueViz to namespace 'hr' -- useful when using hr as a library

This commit is contained in:
Zeno Rogue
2018-06-11 01:58:31 +02:00
parent c2e3ed54f0
commit 4c619e60dd
68 changed files with 735 additions and 539 deletions

View File

@@ -19,21 +19,23 @@
#endif
#ifdef FAKEWEB
void mainloopiter();
namespace hr { void mainloopiter(); }
template<class A, class B, class C> void emscripten_set_main_loop(A a, B b, C c) { while(true) mainloopiter(); }
#else
#include <emscripten.h>
#include <emscripten/html5.h>
#endif
void initweb();
void emscripten_get_commandline();
namespace hr {
void initweb();
void emscripten_get_commandline();
void loadCompressedChar(int &otwidth, int &otheight, int *tpix);
void loadCompressedChar(int &otwidth, int &otheight, int *tpix);
const char *wheresounds;
const char *wheresounds;
}
#include "hyper.cpp"
namespace hr {
// -- demo --
@@ -192,4 +194,6 @@ void emscripten_get_commandline() {
free(str);
#endif
}
}
#include "hyper.cpp"