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:
16
hyperweb.cpp
16
hyperweb.cpp
@@ -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"
|
||||
|
Reference in New Issue
Block a user