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