Native SDL Core 0.0.12
create your own game-engine with just lua.
|
Classes | |
class | native_dict_json |
std.json More... | |
class | native_dict_http |
std.http.get More... | |
class | native_dict_poly |
std.draw.poly More... | |
Functions | |
static int | native_draw_start (lua_State *L) |
static int | native_draw_flush (lua_State *L) |
static int | native_draw_clear (lua_State *L) |
std.draw.clear | |
static int | native_draw_color (lua_State *L) |
std.draw.color | |
static int | native_draw_rect (lua_State *L) |
std.draw.rect | |
static int | native_draw_line (lua_State *L) |
std.draw.line | |
static int | native_draw_font (lua_State *L) |
std.draw.font | |
static int | native_draw_text (lua_State *L) |
std.draw.text | |
class native_dict_json |
std.json
Public Member Functions | |
int | encode (lua_State *L) |
std.json.encode | |
int | decode (lua_State *L) |
std.json.decode | |
int native_dict_json::decode | ( | lua_State * | L | ) |
std.json.decode
[in] | x | string |
any
int native_dict_json::encode | ( | lua_State * | L | ) |
std.json.encode
[in] | x | any |
string
class native_dict_http |
std.http.get
Public Member Functions | |
int | handler (lua_State *L) |
Public Attributes | |
bool | https = true |
supports HTTPS | |
int native_dict_http::handler | ( | lua_State * | L | ) |
self.speed
must be '_fast'
or ''
self.method
must be 'GET'
'HEAD'
'POST'
'PUT'
'DELETE'
or 'PATCH'
[in,out] | self | dict local self = {
url = '',
speed = '',
method = '',
body_content = '',
param_dict = {},
header_dict = {},
set = function(key, value) end,
promise = function () end,
resolve = function () end
}
|
bool native_dict_http::https = true |
supports HTTPS
class native_dict_poly |
std.draw.poly
Public Member Functions | |
int | line (lua_State *L) |
Public Attributes | |
bool | repeats [2] = {true, true} |
int native_dict_poly::line | ( | lua_State * | L | ) |
[in] | x1 | double |
[in] | y1 | double |
[in] | x2 | double |
[in] | y2 | double |
|
static |
std.draw.clear
[in] | color | int |
|
static |
std.draw.color
[in] | color | int |
|
static |
std.draw.font
[in] | font | string |
[in] | size | double |
|
static |
std.draw.line
[in] | x1 | double |
[in] | y1 | double |
[in] | x2 | double |
[in] | y2 | double |
|
static |
std.draw.rect
[in] | mode | int 0 fill, 1 frame |
[in] | x | double pos X |
[in] | y | double pos Y |
[in] | w | double width |
[in] | h | double height |
|
static |
std.draw.text
[in] | x | double |
[in] | y | double |
[in] | text | string |