GlyEngine 0.1.2
Create games and apps with lua
Loading...
Searching...
No Matches
Std

Standard API. More...

Topics

 Draw
 
 Key
 
 Array
 
 Hash
 
 I18n
 
 Log
 
 App
 
 Text
 
 Ui
 
 Http
 
 Media
 
 Storage
 
 Bus
 
 Mem
 
 Node
 
 Color
 
 Math
 

Functions

local function h (element, attribute,...)
 JSX element factory.
 
local function getenv (varname)
 

Detailed Description

milis

milliseconds elapsed of active time
std.milis

delta

milliseconds passed since the last frame
std.delta

Function Documentation

◆ getenv()

local function getenv ( varname )
Todo
getenv build variables

◆ h()

local function h ( element ,
attribute ,
... )

Core function that interprets JSX and integrate with std.ui

Parameters
element(string|function|table) The element tag name, a component function, or a raw node.
attribute(table) Element attributes (e.g., class, margin, gap).
...Child elements or nested content.
Exceptions
errorwhen element is invalid type
Returns
node, list of nodes, or nil.