nngn
Loading...
Searching...
No Matches
img_common.lua File Reference

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
 

Function Documentation

◆ create_image()

local function create_image ( f )

◆ create_sprite()

local function create_sprite ( name ,
pos ,
data  )

◆ init_images()

local function init_images ( fs ,
textures  )

◆ read_buffer()

local function read_buffer ( b ,
v  )

◆ read_image()

local function read_image ( i ,
v  )

◆ set_fn()

local function set_fn ( f )

◆ set_limits()

local function set_limits ( n )

◆ update()

local function update ( fs ,
textures  )

Variable Documentation

◆ common< const >

local common< const > = require "demos.cl.common"

◆ create_buffer

local function create_buffer = create_buffer

◆ create_image

create_image = create_image

◆ create_sprite

create_sprite = create_sprite

◆ entity< const >

local entity< const > = require "nngn.lib.entity"

◆ IMG_BYTES

IMG_BYTES = IMG_BYTES

◆ IMG_BYTES< const >

local IMG_BYTES< const > = 4 * IMG_PIXELS

◆ IMG_PIXELS

IMG_PIXELS = IMG_PIXELS

◆ IMG_PIXELS< const >

◆ IMG_SIZE

IMG_SIZE = IMG_SIZE

◆ IMG_SIZE< const >

local IMG_SIZE< const > = 512

◆ init

local function init = init

◆ init_images

init_images = init_images

◆ input< const >

local input< const > = require "nngn.lib.input"

◆ read_buffer

read_buffer = read_buffer

◆ read_image

read_image = read_image

◆ set_fn

set_fn = set_fn

◆ set_limits

set_limits = set_limits

◆ update

update = update