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

Functions

function set_limits (n)
 
function read_buffer (b, v)
 
function read_image (i, v)
 
function create_image (f)
 
function create_sprite (name, pos, data)
 
function init_images (fs, textures)
 
function set_fn (f)
 
function update (fs, textures)
 

Variables

 entity< const > = require "nngn.lib.entity"
 
 input< const > = require "nngn.lib.input"
 
 common< const > = require "demos.cl.common"
 
 IMG_SIZE< const > = 512
 
 IMG_PIXELS< const > = IMG_SIZE * IMG_SIZE
 
 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()

function create_image ( f  )

◆ create_sprite()

function create_sprite ( name  ,
pos  ,
data   
)

◆ init_images()

function init_images ( fs  ,
textures   
)

◆ read_buffer()

function read_buffer ( ,
v   
)

◆ read_image()

function read_image ( i  ,
v   
)

◆ set_fn()

function set_fn ( f  )

◆ set_limits()

function set_limits ( n  )

◆ update()

function update ( fs  ,
textures   
)

Variable Documentation

◆ common< const >

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

◆ create_buffer

function create_buffer = create_buffer

◆ create_image

create_image = create_image

◆ create_sprite

create_sprite = create_sprite

◆ entity< const >

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

◆ IMG_BYTES

IMG_BYTES = IMG_BYTES

◆ IMG_BYTES< const >

IMG_BYTES< const > = 4 * IMG_PIXELS

◆ IMG_PIXELS

IMG_PIXELS = IMG_PIXELS

◆ IMG_PIXELS< const >

◆ IMG_SIZE

IMG_SIZE = IMG_SIZE

◆ IMG_SIZE< const >

IMG_SIZE< const > = 512

◆ init

function init = init

◆ init_images

init_images = init_images

◆ input< const >

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