Add support for Lua in world, and create the Lua Pattern (pattern can be defined with a lua function)

This commit is contained in:
Godzil
2020-03-02 16:30:24 +00:00
parent d05a0fb4d0
commit aab9df0802
6 changed files with 199 additions and 3 deletions

View File

@@ -16,6 +16,12 @@
#include <ray.h>
#include <stdio.h>
#ifdef ENABLE_LUA_SUPPORT
extern "C" {
#include <lua.h>
}
#endif
class World
{
public:
@@ -29,6 +35,10 @@ private:
Light* *lightList;
Shape* *objectList;
#ifdef ENABLE_LUA_SUPPORT
lua_State *L;
#endif
public:
World();
~World();