summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/entry/cmd.h
blob: 27523d153c062b5b6e5fef340e883b9df8bdb773 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright 2010-2018 Branimir Karadzic. All rights reserved.
 * 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);

///
void cmdExec(const char* _format, ...);

#endif // CMD_H_HEADER_GUARD