marius schebella wrote:
how does that work? what do I need? I downloaded something called LuaGL v1.01 but I have no clue, what to do with it? documentation is very little. do I have to compile something? It says I have to call the luagl library from within another program. ??? To many new unknown variables...
get lua
get pdlua, compile it, read the examples
get LuaGL, compile it (read http://sourceforge.net/tracker/index.php?func=detail&aid=1724422&gro... for instructions)
create a new lua-pdobject like this:
""" require('opengl')
local luagl = pd.Class:new():register("luagl") function luagl:initialize(name, atoms) self.inlets = 1 return true end function luagl:in_0(sel, atoms) if sel == "gem_state" then luagl:render() end end function luagl:render() gl.Begin("LINES") gl.Color(1, 1, 0) gl.Vertex(0, 0) gl.Vertex(1, 1) gl.End() end """
load it. have fun.
fmga.sdr IOhannes