protot/3rdparty/bgfx/examples/common/entry/cmd.h

25 lines
511 B
C
Raw Normal View History

2016-08-29 22:31:11 +02:00
/*
2018-02-03 17:39:28 +01:00
* Copyright 2010-2018 Branimir Karadzic. All rights reserved.
2016-08-29 22:31:11 +02: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);
///
void cmdInit();
///
void cmdShutdown();
///
void cmdAdd(const char* _name, ConsoleFn _fn, void* _userData = NULL);
///
2018-02-03 17:39:28 +01:00
void cmdExec(const char* _format, ...);
2016-08-29 22:31:11 +02:00
#endif // CMD_H_HEADER_GUARD