/src/bindings/bind_all.h

https://bitbucket.org/vivkin/gam3b00bs/ · C Header · 32 lines · 14 code · 11 blank · 7 comment · 0 complexity · 2e626119e58b45ff794550efeb60cadc MD5 · raw file

  1. #pragma once
  2. //
  3. // bind_all.h - all subsystem bindings go in here
  4. //
  5. extern "C"
  6. {
  7. #include "lua/lua.h"
  8. #include "lua/lualib.h"
  9. #include "lua/lauxlib.h"
  10. }
  11. namespace luab // Lua bindings
  12. {
  13. // Creates a Lua state, initializes bindings, then calls "game/scripts/main.lua".
  14. // Returns zero on success.
  15. int start_scripts();
  16. ///////////////////////////////////////
  17. // Bindings:
  18. void bind_app( lua_State * L ); // application
  19. void bind_renderer( lua_State * L ); // renderer
  20. void bind_input( lua_State * L ); // input
  21. }