Polyphase Game Engine
Loading...
Searching...
No Matches
Rect_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "Engine.h"
4#include "Rect.h"
6
7#if LUA_ENABLED
8
9#define RECT_LUA_NAME "Rect"
10#define CHECK_RECT(L, Arg) CheckLuaType<Rect_Lua>(L, Arg, RECT_LUA_NAME)->mRect;
11
12struct Rect_Lua
13{
14 Rect mRect;
15
16 static int Create(lua_State* L);
17 static int Create(lua_State* L, Rect value);
18 static int Destroy(lua_State* L);
19
20 static int Index(lua_State* L);
21 static int NewIndex(lua_State* L);
22 static int ToString(lua_State* L);
23
24 static int ContainsPoint(lua_State* L);
25 static int OverlapsRect(lua_State* L);
26 static int Clamp(lua_State* L);
27 static int Top(lua_State* L);
28 static int Bottom(lua_State* L);
29 static int Left(lua_State* L);
30 static int Right(lua_State* L);
31
32 static void Bind();
33};
34
35#endif
Definition Rect.h:4