Gly Game Engine 0.0.11
Game engine in lua
Loading...
Searching...
No Matches
Draw

Functions

local function clear (tint)
 std.draw.clear
 
local function rect (mode, pos_x, pos_y, width, height)
 std.draw.rect
 
local function tui_text (pos_x, pos_y, size, text)
 std.draw.tui_text
 
local function text (pos_x, pos_y, text)
 std.draw.text
 
local function line (x1, y1, x2, y2)
 std.draw.line
 
local function image (src, pos_x, pos_y)
 std.draw.image
 
local function fps (show, pos_x, pos_y)
 

Detailed Description

Function Documentation

◆ clear()

local function clear ( tint )

◆ fps()

local function fps ( show ,
pos_x ,
pos_y  )
Todo
change std.draw.text to std.draw.tui
Precondition
the mode 3 require math
Parameters
showinteger
  • mode 1: FPS
  • mode 2: FPS / FPS Limit
  • mode 3: FPS Real Time / FPS / FPS Limit
pos_xdouble
pos_ydouble

◆ image()

local function image ( src ,
pos_x ,
pos_y  )

◆ line()

local function line ( x1 ,
y1 ,
x2 ,
y2  )

◆ rect()

local function rect ( mode ,
pos_x ,
pos_y ,
width ,
height  )

◆ text()

local function text ( pos_x ,
pos_y ,
text  )

◆ tui_text()

local function tui_text ( pos_x ,
pos_y ,
size ,
text  )