#ifndef ANAGLYM_H #define ANAGLYM_H #include #include #include "Video.h" #define FILENAME_SAFE_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-" class Engine { public: Engine(); ~Engine(); std::string locateResource(const std::string & shortname); Video * getVideo() { return m_video; } bool load(const char * program); void run(); void reportErrors(int status); protected: void registerLibraries(); bool fileExists(const std::string & path); lua_State * m_luaState; Video * m_video; std::string m_program_path; }; extern Engine * g_engine; #endif