mirror of
https://github.com/Reuh/ubiquitousse.git
synced 2025-10-27 17:19:31 +00:00
stuff
This commit is contained in:
parent
08afbe1d6d
commit
b55c6b0dfd
8 changed files with 56 additions and 4 deletions
11
draw.lua
11
draw.lua
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue