cmd.h 511 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright 2010-2019 Branimir Karadzic. All rights reserved.
  3. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
  4. */
  5. #ifndef CMD_H_HEADER_GUARD
  6. #define CMD_H_HEADER_GUARD
  7. struct CmdContext;
  8. typedef int (*ConsoleFn)(CmdContext* _context, void* _userData, int _argc, char const* const* _argv);
  9. ///
  10. void cmdInit();
  11. ///
  12. void cmdShutdown();
  13. ///
  14. void cmdAdd(const char* _name, ConsoleFn _fn, void* _userData = NULL);
  15. ///
  16. void cmdExec(const char* _format, ...);
  17. #endif // CMD_H_HEADER_GUARD