Polyphase Game Engine
Loading...
Searching...
No Matches
StaticMesh_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "EngineTypes.h"
4#include "Log.h"
5
6#include "Assets/StaticMesh.h"
7
10
11#if LUA_ENABLED
12
13#define STATIC_MESH_LUA_NAME "StaticMesh"
14#define STATIC_MESH_LUA_FLAG "cfStaticMesh"
15#define CHECK_STATIC_MESH(L, arg) CheckAssetLuaType<StaticMesh>(L, arg, STATIC_MESH_LUA_NAME, STATIC_MESH_LUA_FLAG)
16
17struct StaticMesh_Lua
18{
19 static int GetMaterial(lua_State* L);
20 static int SetMaterial(lua_State* L);
21 static int GetNumIndices(lua_State* L);
22 static int GetNumFaces(lua_State* L);
23 static int GetNumVertices(lua_State* L);
24 static int HasVertexColor(lua_State* L);
25 static int GetVertices(lua_State* L);
26 static int GetIndices(lua_State* L);
27 static int HasTriangleMeshCollision(lua_State* L);
28 static int EnableTriangleMeshCollision(lua_State* L);
29
30 static void Bind();
31};
32
33#endif