Polyphase Game Engine
Loading...
Searching...
No Matches
Poly_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "EngineTypes.h"
4#include "Log.h"
5
7
9
10#if LUA_ENABLED
11
12#define POLY_LUA_NAME "Poly"
13#define POLY_LUA_FLAG "cfPoly"
14#define CHECK_POLY(L, arg) (Poly*)CheckNodeLuaType(L, arg, POLY_LUA_NAME, POLY_LUA_FLAG);
15
16struct Poly_Lua
17{
18 static int AddVertex(lua_State* L);
19 static int ClearVertices(lua_State* L);
20 static int GetNumVertices(lua_State* L);
21 static int GetVertex(lua_State* L);
22
23 static int SetTexture(lua_State* L);
24 static int GetTexture(lua_State* L);
25
26 static int GetLineWidth(lua_State* L);
27 static int SetLineWidth(lua_State* L);
28
29 static void Bind();
30};
31
32#endif