Polyphase Game Engine
Loading...
Searching...
No Matches
MaterialInstance_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "EngineTypes.h"
4#include "Log.h"
5
7
10
11#if LUA_ENABLED
12
13#define MATERIAL_INSTANCE_LUA_NAME "MaterialInstance"
14#define MATERIAL_INSTANCE_LUA_FLAG "cfMaterialInstance"
15#define CHECK_MATERIAL_INSTANCE(L, arg) CheckAssetLuaType<MaterialInstance>(L, arg, MATERIAL_INSTANCE_LUA_NAME, MATERIAL_INSTANCE_LUA_FLAG)
16
17struct MaterialInstance_Lua
18{
19 static int CreateNew(lua_State* L);
20
21 static int GetBaseMaterial(lua_State* L);
22 static int SetBaseMaterial(lua_State* L);
23
24 static void Bind();
25};
26
27#endif