change names in ffi binding

  • From: "Victor Bombi" <sonoro@xxxxxxxxxxxxxx>
  • To: <luajit@xxxxxxxxxxxxx>
  • Date: Fri, 7 Mar 2014 09:34:44 +0100

Hello,

There is some ffi opengl binding I would like to convert
gl = ffi.load("opengl32")
gives for example gl.glBegin as a function and I would like to get gl.Begin for the same function to make it compatible with luagl My plan was to use pairs over gl adding a new key without initial gl for each old key
but gl is a userdata so I cant use pairs.

Is there anything that could be done

Best
victor bombi

Other related posts: