Evaluators/mapgrids in LUA?


    Nov 17 2007 | 3:40 pm
    does jit.gl.lua support 1- or 2-d evaluators or mapgrids for building splines and nurbs from scratch. if so what is the translation from redbook opengl?
    for example i tried this redbook example, but it did not work
    ctrlpoints = {
    { -4.0, -4.0, 0.0}, { -2.0, 4.0, 0.0},
    {2.0, -4.0, 0.0}, {4.0, 4.0, 0.0}}
    gl.ClearColor(0.0, 0.0, 0.0, 1.0)
    gl.Map1("MAP1_VERTEX_3", 0.0, 1.0, 3, 4,ctrlpoints)
    gl.Enable("MAP1_VERTEX_3")
    gl.ShadeModel("FLAT")
    gl.Color(1.0, 1.0, 1.0)
    gl.Begin("LINE_STRIP")
    for i = 0,30 do
    gl.EvalCoord(i/30.0)
    end
    gl.End()
    thanks