2013-08-08 08:45:56 +04:00
|
|
|
/*
|
2018-01-01 22:16:06 +03:00
|
|
|
* Copyright 2010-2018 Branimir Karadzic. All rights reserved.
|
2016-01-01 11:11:04 +03:00
|
|
|
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
2013-08-08 08:45:56 +04:00
|
|
|
*/
|
|
|
|
|
2013-11-15 07:10:10 +04:00
|
|
|
#ifndef CMD_H_HEADER_GUARD
|
|
|
|
#define CMD_H_HEADER_GUARD
|
2013-08-08 08:45:56 +04:00
|
|
|
|
|
|
|
struct CmdContext;
|
|
|
|
typedef int (*ConsoleFn)(CmdContext* _context, void* _userData, int _argc, char const* const* _argv);
|
|
|
|
|
2015-02-10 07:12:46 +03:00
|
|
|
///
|
|
|
|
void cmdInit();
|
|
|
|
|
|
|
|
///
|
|
|
|
void cmdShutdown();
|
|
|
|
|
|
|
|
///
|
2013-08-08 08:45:56 +04:00
|
|
|
void cmdAdd(const char* _name, ConsoleFn _fn, void* _userData = NULL);
|
2015-02-10 07:12:46 +03:00
|
|
|
|
|
|
|
///
|
2017-09-16 06:04:31 +03:00
|
|
|
void cmdExec(const char* _format, ...);
|
2013-08-08 08:45:56 +04:00
|
|
|
|
2013-11-15 07:10:10 +04:00
|
|
|
#endif // CMD_H_HEADER_GUARD
|