LuaBox
Loading...
Searching...
No Matches
DisplayPixel.h
Go to the documentation of this file.
1#pragma once
2
3#include "lua_include.h"
4#include "global.h"
5
15
16int DisplayPixel(lua_State* L_)
17{
18 int x = luaL_checkinteger(L_, 1);
19 int y = luaL_checkinteger(L_, 2);
20 int c = luaL_checkinteger(L_, 3);
21
22 sprite.drawPixel(x, y, c);
23
24 return 0;
25}
int DisplayPixel(lua_State *L_)
Draw a single pixel on the sprite buffer.
Definition DisplayPixel.h:16