annotate LuaVM.h @ 2462:1d04e48651d4

Render split into interface and realization, added Direct3D 11
author a.parshin
date Tue, 12 Aug 2014 21:34:18 +0300
parents 62a27b2cfcc2
children
rev   line source
2052
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
1 #pragma once
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
2
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
3 class LuaVM
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
4 {
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
5 public:
2054
62a27b2cfcc2 Player.swig
Nomad
parents: 2052
diff changeset
6 inline LuaVM(): L(nullptr) {}
62a27b2cfcc2 Player.swig
Nomad
parents: 2052
diff changeset
7
2052
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
8 void Initialize();
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
9 bool DoFile(const char *filename);
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
10
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
11 protected:
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
12 struct lua_State *L;
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
13
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
14 const char *GetScriptFileLocation(const char *script_name);
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
15 };
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
16 extern LuaVM *lua;