1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00
This commit is contained in:
Reuh 2017-04-05 20:14:48 +02:00
parent 08afbe1d6d
commit b55c6b0dfd
8 changed files with 56 additions and 4 deletions

View file

@ -68,6 +68,13 @@ draw = {
-- @impl backend
text = function(x, y, text) end,
--- Draws a point.
-- @tparam number x point x coordinate
-- @tparam number y point y coordinate
-- @tparam number ... other vertices to draw other points
-- @impl backend
point = function(x, y, ...) end,
--- Sets the width.
-- @tparam number width the line width
-- @impl backend
@ -154,4 +161,8 @@ draw = {
image = function(filename) end,
}
-- TODO: canvas stuff ; also make everything here actually be shortcut to draw to the game's framebuffer.
-- TODO: add software implementations of everything.
-- TODO: add function to draw a message (used eg for the error message when there is a version mismatch)
return draw