add SandboxEmbed
This commit is contained in:
29
src/example_apps/SandboxEmbed/SandboxEmbed.h
Normal file
29
src/example_apps/SandboxEmbed/SandboxEmbed.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#define ENTRYPOINT
|
||||
#include "Archimedes.h"
|
||||
|
||||
#include "modules/Archimedes-Modules/Sandbox/Sandbox.h"
|
||||
|
||||
class SandboxEmbed : public Archimedes::App {
|
||||
|
||||
private:
|
||||
|
||||
void printHelp() override {};
|
||||
|
||||
bool onEvent(const Archimedes::Event&) override;
|
||||
|
||||
public:
|
||||
SandboxEmbed() {
|
||||
Archimedes::Module* m = (Archimedes::Module*) new Sandbox(Get(), nullptr);
|
||||
|
||||
load(m);
|
||||
};
|
||||
~SandboxEmbed() {};
|
||||
|
||||
void handleArgs(const int& argc, char* argv[]) override {};
|
||||
|
||||
void run() override;
|
||||
|
||||
};
|
||||
|
||||
#define APP_TYPE SandboxEmbed
|
||||
#include "endApp.h"
|
||||
Reference in New Issue
Block a user