summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/entry/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/cmd.h')
-rw-r--r--3rdparty/bgfx/examples/common/entry/cmd.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/3rdparty/bgfx/examples/common/entry/cmd.h b/3rdparty/bgfx/examples/common/entry/cmd.h
new file mode 100644
index 00000000000..e1b2cbad247
--- /dev/null
+++ b/3rdparty/bgfx/examples/common/entry/cmd.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2010-2015 Branimir Karadzic. All rights reserved.
+ * License: http://www.opensource.org/licenses/BSD-2-Clause
+ */
+
+#ifndef CMD_H_HEADER_GUARD
+#define CMD_H_HEADER_GUARD
+
+struct CmdContext;
+typedef int (*ConsoleFn)(CmdContext* _context, void* _userData, int _argc, char const* const* _argv);
+
+void cmdAdd(const char* _name, ConsoleFn _fn, void* _userData = NULL);
+void cmdExec(const char* _cmd);
+
+#endif // CMD_H_HEADER_GUARD