diff options
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/entry.h')
-rw-r--r-- | 3rdparty/bgfx/examples/common/entry/entry.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/3rdparty/bgfx/examples/common/entry/entry.h b/3rdparty/bgfx/examples/common/entry/entry.h index 54c79d1ccd9..cd3df67ac17 100644 --- a/3rdparty/bgfx/examples/common/entry/entry.h +++ b/3rdparty/bgfx/examples/common/entry/entry.h @@ -1,5 +1,5 @@ /* - * Copyright 2011-2016 Branimir Karadzic. All rights reserved. + * Copyright 2011-2017 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ @@ -9,6 +9,7 @@ #include "dbg.h" #include <string.h> // memset #include <bx/bx.h> +#include <bx/string.h> namespace bx { struct FileReaderI; struct FileWriterI; struct AllocatorI; } @@ -246,6 +247,7 @@ namespace entry void toggleWindowFrame(WindowHandle _handle); void toggleFullscreen(WindowHandle _handle); void setMouseLock(WindowHandle _handle, bool _lock); + void setCurrentDir(const char* _dir); struct WindowState { @@ -278,6 +280,32 @@ namespace entry { } + class App : public AppI + { + public: + App(const char* _name); + + virtual ~App(); + + const char* getName() const + { + return m_name; + } + + AppI* getNext() + { + return m_next; + } + + private: + const char* m_name; + App* m_next; + }; + + /// + App* getFirstApp(); + + /// int runApp(AppI* _app, int _argc, char** _argv); } // namespace entry |