bgfx/examples/common/entry/cmd.h

25 lines
496 B
C
Raw Normal View History

/*
2015-01-01 18:04:46 -05:00
* 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);
2015-02-09 23:12:46 -05:00
///
void cmdInit();
///
void cmdShutdown();
///
void cmdAdd(const char* _name, ConsoleFn _fn, void* _userData = NULL);
2015-02-09 23:12:46 -05:00
///
void cmdExec(const char* _cmd);
#endif // CMD_H_HEADER_GUARD