Polyphase Game Engine
Loading...
Searching...
No Matches
SkeletalMesh_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 SKELETAL_MESH_LUA_NAME "SkeletalMesh"
14#define SKELETAL_MESH_LUA_FLAG "cfSkeletalMesh"
15#define CHECK_SKELETAL_MESH(L, arg) CheckAssetLuaType<SkeletalMesh>(L, arg, SKELETAL_MESH_LUA_NAME, SKELETAL_MESH_LUA_FLAG)
16
17struct SkeletalMesh_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 FindBoneIndex(lua_State* L);
25 static int GetNumBones(lua_State* L);
26 static int GetAnimationName(lua_State* L);
27 static int GetNumAnimations(lua_State* L);
28 static int GetAnimationDuration(lua_State* L);
29
30 static int GetNumSections(lua_State* L);
31 static int GetSectionName(lua_State* L);
32 static int GetSectionMaterial(lua_State* L);
33 static int SetSectionMaterial(lua_State* L);
34 static int FindSectionIndex(lua_State* L);
35
36 static void Bind();
37};
38
39#endif