nngn
|
Functions | |
local function | set_limits (n) |
local function | read_buffer (b, v) |
local function | read_image (i, v) |
local function | create_image (f) |
local function | create_sprite (name, pos, data) |
local function | init_images (fs, textures) |
local function | set_fn (f) |
local function | update (fs, textures) |
Variables | |
local | entity< const > = require "nngn.lib.entity" |
local | input< const > = require "nngn.lib.input" |
local | common< const > = require "demos.cl.common" |
local | IMG_SIZE< const > = 512 |
local | IMG_PIXELS< const > = IMG_SIZE * IMG_SIZE |
local | IMG_BYTES< const > = 4 * IMG_PIXELS |
IMG_SIZE = IMG_SIZE | |
IMG_PIXELS = IMG_PIXELS | |
IMG_BYTES = IMG_BYTES | |
set_limits = set_limits | |
init = init | |
read_buffer = read_buffer | |
read_image = read_image | |
create_buffer = create_buffer | |
create_image = create_image | |
create_sprite = create_sprite | |
init_images = init_images | |
set_fn = set_fn | |
update = update | |
local function create_image | ( | f | ) |
local function init_images | ( | fs | , |
textures | ) |
local function read_buffer | ( | b | , |
v | ) |
local function set_fn | ( | f | ) |
local function set_limits | ( | n | ) |
local function update | ( | fs | , |
textures | ) |
local function create_buffer = create_buffer |
create_image = create_image |
create_sprite = create_sprite |
IMG_BYTES = IMG_BYTES |
local IMG_BYTES< const > = 4 * IMG_PIXELS |
IMG_PIXELS = IMG_PIXELS |
local IMG_PIXELS< const > = IMG_SIZE * IMG_SIZE |
IMG_SIZE = IMG_SIZE |
local function init = init |
init_images = init_images |
read_buffer = read_buffer |
read_image = read_image |
set_fn = set_fn |
set_limits = set_limits |
update = update |