some small refactorings
This commit is contained in:
parent
d8fac9045b
commit
8eda3df225
23 changed files with 314 additions and 268 deletions
|
@ -1,3 +1,7 @@
|
|||
--
|
||||
-- small demonstrator for Lua binding on pixwerx
|
||||
--
|
||||
|
||||
-- loading our libraries
|
||||
pw.script:load_all()
|
||||
|
||||
|
@ -16,7 +20,6 @@ w.position = pw.point.new(100,100)
|
|||
|
||||
print("client size after resize: ",w.client_size.width,w.client_size.height)
|
||||
|
||||
|
||||
local pl = pw.pipeline.new()
|
||||
if pl:create(w.client_size) then
|
||||
print("pipeline ok")
|
||||
|
@ -27,7 +30,7 @@ end
|
|||
-- setup a lua callback function as callback
|
||||
w.on_update = function(self)
|
||||
pl:draw()
|
||||
-- print("test on update",w.position.x,w.position.y,pw.timer.now)
|
||||
-- print("test on update",w.position.x,w.position.y,pw.time.now)
|
||||
|
||||
end
|
||||
|
||||
|
@ -37,7 +40,7 @@ for i = 1,#ds do
|
|||
print("display ",i,ds[i].name)
|
||||
end
|
||||
|
||||
local t = pw.timer.new()
|
||||
local t = pw.time.new()
|
||||
|
||||
w.visible = true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue