Polyphase Game Engine
Loading...
Searching...
No Matches
Mesh3d_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/Mesh3d.h"
8
11
12#if LUA_ENABLED
13
14#define MESH_3D_LUA_NAME "Mesh3D"
15#define MESH_3D_LUA_FLAG "cfMesh3D"
16#define CHECK_MESH_3D(L, arg) static_cast<Mesh3D*>(CheckNodeLuaType(L, arg, MESH_3D_LUA_NAME, MESH_3D_LUA_FLAG));
17
18struct Mesh3D_Lua
19{
20 static int GetMaterial(lua_State* L);
21 static int GetMaterialOverride(lua_State* L);
22 static int SetMaterialOverride(lua_State* L);
23 static int InstantiateMaterial(lua_State* L);
24
25 static int IsBillboard(lua_State* L);
26 static int SetBillboard(lua_State* L);
27
28 static void Bind();
29};
30
31#endif