Native SDL Core 0.0.6
create your own game-engine with just lua.
Loading...
Searching...
No Matches
Api

Classes

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
 

Detailed Description


Class Documentation

◆ native_dict_http

class native_dict_http

std.http.get

Lua definition
handler = function (self) end
}
std.http.get
Definition native_http.c:240
int handler(lua_State *L)

Public Member Functions

int handler (lua_State *L)
 

Public Attributes

bool https = true
 supports HTTPS
 

Member Function Documentation

◆ handler()

int native_dict_http::handler ( lua_State * L)
Precondition
self.speed must be '_fast' or ''
self.method must be 'GET' 'HEAD' 'POST' 'PUT' 'DELETE' or 'PATCH'
Parameters
[in,out]selfdict
local self = {
url = '',
speed = '',
method = '',
body_content = '',
param_dict = {},
header_dict = {},
set = function(key, value) end,
promise = function () end,
resolve = function () end
}

Member Data Documentation

◆ https

bool native_dict_http::https = true

supports HTTPS

Warning
TLS 1.3 is not supported.

◆ native_dict_poly

class native_dict_poly

std.draw.poly

Lua definition
repeats = {true, true},
line = function (x1, y1, x2, y2)
native_draw_line(x1, y1, x2, y2)
end
}
std.draw.poly
Definition native_draw.c:328
int line(lua_State *L)
static int native_draw_line(lua_State *L)
std.draw.line
Definition native_draw.c:104

Public Member Functions

int line (lua_State *L)
 

Public Attributes

bool repeats [2] = {true, true}
 

Member Function Documentation

◆ line()

int native_dict_poly::line ( lua_State * L)
Parameters
[in]x1double
[in]y1double
[in]x2double
[in]y2double

Function Documentation

◆ native_draw_clear()

static int native_draw_clear ( lua_State * L)
static

std.draw.clear

Parameters
[in]colorint

◆ native_draw_color()

static int native_draw_color ( lua_State * L)
static

std.draw.color

Parameters
[in]colorint

◆ native_draw_font()

static int native_draw_font ( lua_State * L)
static

std.draw.font

Parameters
[in]fontstring
[in]sizedouble

◆ native_draw_line()

static int native_draw_line ( lua_State * L)
static

std.draw.line

Parameters
[in]x1double
[in]y1double
[in]x2double
[in]y2double

◆ native_draw_rect()

static int native_draw_rect ( lua_State * L)
static

std.draw.rect

Parameters
[in]modeint 0 fill, 1 frame
[in]xdouble pos X
[in]ydouble pos Y
[in]wdouble width
[in]hdouble height

◆ native_draw_text()

static int native_draw_text ( lua_State * L)
static

std.draw.text

Parameters
[in]xdouble
[in]ydouble
[in]textstring