Polyphase Game Engine
Loading...
Searching...
No Matches
Light3d_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "EngineTypes.h"
4#include "Log.h"
5#include "Engine.h"
6
7#include "Nodes/3D/Light3d.h"
8
11
12#if LUA_ENABLED
13
14#define LIGHT_3D_LUA_NAME "Light3D"
15#define LIGHT_3D_LUA_FLAG "cfLight3D"
16#define CHECK_LIGHT_3D(L, arg) static_cast<Light3D*>(CheckNodeLuaType(L, arg, LIGHT_3D_LUA_NAME, LIGHT_3D_LUA_FLAG));
17
18struct Light3D_Lua
19{
20 static int SetColor(lua_State* L);
21 static int GetColor(lua_State* L);
22 static int SetIntensity(lua_State* L);
23 static int GetIntensity(lua_State* L);
24 static int SetCastShadows(lua_State* L);
25 static int ShouldCastShadows(lua_State* L);
26 static int GetDomain(lua_State* L);
27 static int GetLightingChannels(lua_State* L);
28 static int SetLightingChannels(lua_State* L);
29
30 static void Bind();
31};
32
33#endif