25 lines
503 B
C
Raw Normal View History

/*
2017-01-01 00:18:41 -08:00
* Copyright 2010-2017 Branimir Karadzic. All rights reserved.
2016-01-01 00:11:04 -08:00
* License: https://github.com/bkaradzic/bgfx#license-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);
2015-02-09 20:12:46 -08:00
///
void cmdInit();
///
void cmdShutdown();
///
void cmdAdd(const char* _name, ConsoleFn _fn, void* _userData = NULL);
2015-02-09 20:12:46 -08:00
///
void cmdExec(const char* _cmd);
#endif // CMD_H_HEADER_GUARD