34 lines
702 B
C++
34 lines
702 B
C++
#ifndef LUA_H
|
|
#define LUA_H
|
|
|
|
#include "Input.h"
|
|
#include "Util.h"
|
|
|
|
#ifdef LUA_SCRIPTING
|
|
// Lua includes
|
|
extern "C" {
|
|
#include "lua.h"
|
|
#include "lualib.h"
|
|
#include "lauxlib.h"
|
|
}
|
|
extern "C" int luaopen_couch(lua_State* L);
|
|
#endif // LUA_SCRIPTING
|
|
|
|
#include "ScriptingLanguage.h"
|
|
|
|
class Lua : public ScriptingLanguage {
|
|
public:
|
|
void Initialize();
|
|
void Update(double delta);
|
|
void Close();
|
|
void Error();
|
|
private:
|
|
#ifdef LUA_SCRIPTING
|
|
static lua_State *L;
|
|
static void LuaKeyHandler(Window *window, int key, int code, int action, int mods);
|
|
static void LuaMousePositionHandler(Window *window, double xpos, double ypos, double xrel, double yrel);
|
|
#endif // LUA_SCRIPTING
|
|
};
|
|
|
|
#endif /* LUA_H */
|