|
|
@@ -24,15 +24,15 @@ extern "C" int _main_(int _argc, char** _argv);
|
|
|
#endif // ENTRY_CONFIG_IMPLEMENT_MAIN
|
|
|
|
|
|
#if ENTRY_CONFIG_IMPLEMENT_MAIN
|
|
|
-#define ENTRY_IMPLEMENT_MAIN(_app, _name, _description) \
|
|
|
+#define ENTRY_IMPLEMENT_MAIN(_app, ...) \
|
|
|
int _main_(int _argc, char** _argv) \
|
|
|
{ \
|
|
|
- _app app(_name, _description); \
|
|
|
+ _app app(__VA_ARGS__); \
|
|
|
return entry::runApp(&app, _argc, _argv); \
|
|
|
}
|
|
|
#else
|
|
|
-#define ENTRY_IMPLEMENT_MAIN(_app, _name, _description) \
|
|
|
- _app s_ ## _app ## App(_name, _description)
|
|
|
+#define ENTRY_IMPLEMENT_MAIN(_app, ...) \
|
|
|
+ _app s_ ## _app ## App(__VA_ARGS__)
|
|
|
#endif // ENTRY_CONFIG_IMPLEMENT_MAIN
|
|
|
|
|
|
namespace entry
|
|
|
@@ -282,7 +282,7 @@ namespace entry
|
|
|
{
|
|
|
public:
|
|
|
///
|
|
|
- AppI(const char* _name, const char* _description);
|
|
|
+ AppI(const char* _name, const char* _description, const char* _url = "https://bkaradzic.github.io/bgfx/index.html");
|
|
|
|
|
|
///
|
|
|
virtual ~AppI() = 0;
|
|
|
@@ -302,6 +302,9 @@ namespace entry
|
|
|
///
|
|
|
const char* getDescription() const;
|
|
|
|
|
|
+ ///
|
|
|
+ const char* getUrl() const;
|
|
|
+
|
|
|
///
|
|
|
AppI* getNext();
|
|
|
|
|
|
@@ -310,6 +313,7 @@ namespace entry
|
|
|
private:
|
|
|
const char* m_name;
|
|
|
const char* m_description;
|
|
|
+ const char* m_url;
|
|
|
};
|
|
|
|
|
|
///
|