35 lines
703 B
C++
35 lines
703 B
C++
|
|
#ifndef ANAGLYM_H
|
|
#define ANAGLYM_H
|
|
|
|
#include <string>
|
|
#include <lua.hpp>
|
|
#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
|