added camera implementation and plenty of other rendering related stuff - splitted out the initialization of the render context

This commit is contained in:
Hartmut Seichter 2018-12-30 23:36:53 +01:00
parent ae37273021
commit f7043fc0cb
43 changed files with 23280 additions and 15161 deletions

View file

@ -24,12 +24,12 @@ print("v1 ",v1.x,v1.y,v1.z)
local q = pw.quaternion.new()
print("q",q.x,q.y,q.z,q.w)
qi = q:inverse()
qi = q.inverse
print("q.inverse",qi.x,qi.y,qi.z,qi.w)
local q2 = pw.quaternion.new(0,0,0,1)
qm = pw.quaternion.lerp(q,qi)
qm = pw.quaternion.lerp(q,qi,0.5)
print("q.m",qm.x,qm.y,qm.z,qm.w)
@ -71,6 +71,8 @@ local w = pw.window.new()
w.title = "pixwerx 1.0"
w:set_size(1280,768)
while w:update()
do
-- print("update")