Add support for Lua in world, and create the Lua Pattern (pattern can be defined with a lua function)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user