anaglym/anaglym.h
Josh Holtrop 708800d06a added Engine class to hold the state of the engine
git-svn-id: svn://anubis/anaglym/trunk@30 99a6e188-d820-4881-8870-2d33a10e2619
2009-09-26 16:26:04 +00:00

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