proper blitting without texture attachment added - need to redo and refactor the stuff in pipeline
This commit is contained in:
parent
351d29cd54
commit
075d18b4b8
7 changed files with 153 additions and 97 deletions
|
@ -70,13 +70,20 @@ local w = pw.window.new()
|
|||
-- set title
|
||||
w.title = "pixwerx 0.1"
|
||||
|
||||
-- set size
|
||||
w.size = pw.size.new(800,600)
|
||||
-- move window
|
||||
w.position = pw.point.new(100,100)
|
||||
|
||||
|
||||
local pl = pw.pipeline.new()
|
||||
if pl:create(pw.size.new(800,600)) then
|
||||
if pl:create(w.client_size) then
|
||||
print("pipeline ok")
|
||||
else
|
||||
print("pipeline failed")
|
||||
end
|
||||
|
||||
|
||||
-- setup a lua callback function
|
||||
w.on_update = function(self)
|
||||
|
||||
|
@ -84,11 +91,6 @@ w.on_update = function(self)
|
|||
-- print("test on update",w.position.x,w.position.y,pw.timer.now)
|
||||
end
|
||||
|
||||
-- set size
|
||||
w.size = pw.size.new(800,600)
|
||||
-- move window
|
||||
w.position = pw.point.new(100,100)
|
||||
|
||||
local ds = pw.display:all()
|
||||
for i = 1,#ds do
|
||||
print("display ",i,ds[i].name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue