nngn
|
Functions | |
function | disk (cx, cy, r) |
function | rect (left, right, bottom, up) |
function | complement (r) |
function | union (r1, r2) |
function | intersection (r1, r2) |
function | difference (r1, r2) |
function | translate (r, dx, dy) |
function | plot (t, v, r) |
Variables | |
entity< const > = require "nngn.lib.entity" | |
SIZE< const > = Textures.SIZE | |
EXTENT< const > = Textures.EXTENT | |
tex_t< const > = {} | |
tex_src_v< const > = Compute.create_vector(SIZE / 4) | |
tex_dst_v< const > = Compute.create_vector(SIZE) | |
tex< const > = nngn:textures():load_data("lua:pil", tex_dst_v) | |
renderer = {type = Renderer.SPRITE, tex = tex, size = {EXTENT, EXTENT}} | |
t< const > = (nngn:timing():now_ms() / 1000 % 10 - 5) / 2 | |
c1< const > = disk(0, 0, 1) | |
function complement | ( | r | ) |
function difference | ( | r1 | , |
r2 | |||
) |
function disk | ( | cx | , |
cy | , | ||
r | |||
) |
function intersection | ( | r1 | , |
r2 | |||
) |
function rect | ( | left | , |
right | , | ||
bottom | , | ||
up | |||
) |
function translate | ( | r | , |
dx | , | ||
dy | |||
) |
function union | ( | r1 | , |
r2 | |||
) |
c1< const > = disk(0, 0, 1) |
entity< const > = require "nngn.lib.entity" |
EXTENT< const > = Textures.EXTENT |
renderer = {type = Renderer.SPRITE, tex = tex, size = {EXTENT, EXTENT}} |
SIZE< const > = Textures.SIZE |
t< const > = (nngn:timing():now_ms() / 1000 % 10 - 5) / 2 |
tex< const > = nngn:textures():load_data("lua:pil", tex_dst_v) |
tex_dst_v< const > = Compute.create_vector(SIZE) |
tex_src_v< const > = Compute.create_vector(SIZE / 4) |
tex_t< const > = {} |