GLK

Full Lua Integration

Registered by Mark P

Have recently added LuaWindow object which allows Lua scripts that render to OpenGL using LuaGL (for example.) To make this fully effective need to be able to create a LuaWindow object from within Lua, and load glk. E.g. want to be able to write something like this in Lua:

require(luagl)
require(glk)

win = glk.CreateWindow( width, height, flags, frameBufferConfig )
function win:InitGL()
  gl.ClearColor(0,0,0,0)
end

win.Start()

-- etc

Blueprint information

Status:
Complete
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Approved
Assignee:
None
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
None
Started by
Mark P
Completed by
Mark P

Related branches

Sprints

Whiteboard

Now works on linux but not on Windows.

You can now load luaglk and start a window from a standalone script/command line.

Only works with LD_PRELOAD=/lib/libpthread.so.0. UPDATE: This is only needed on my home system, works fine on other linux systems. Suspect its a bug in my version of Ubuntu.

Windows implementation is deferred until the spec. (and bugs) of Linux version are ironed out.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.