LuaBox
Loading...
Searching...
No Matches
DisplayLine.h
Go to the documentation of this file.
1#pragma once
2
3#include "lua_include.h"
4#include "global.h"
5
17
18int DisplayLine(lua_State* L_)
19{
20 int x1 = luaL_checkinteger(L_, 1);
21 int y1 = luaL_checkinteger(L_, 2);
22 int x2 = luaL_checkinteger(L_, 3);
23 int y2 = luaL_checkinteger(L_, 4);
24 int c = luaL_checkinteger(L_, 5);
25
26 sprite.drawLine(x1, y1, x2, y2, c);
27
28 return 0;
29}
int DisplayLine(lua_State *L_)
Draw a line on the sprite buffer.
Definition DisplayLine.h:18