ofxLua


#41

ofxLua has been updated to use lua_Number type instead of float for maximum precision as the default type is double.

Accordingly, the previous functions:

ofxLua::isFloat()
ofxLua::getFloat()
ofxLua:::setFloat()
ofxLua::getFloatVector()
ofxLua::setNumberVector()
ofxLuaFileWriter::writeFloat()
ofxLuaFileWriter::writeFloatVector()

have been updated to:

ofxLua::isNumber()
ofxLua::getNumber()
ofxLua;:setNumber()
ofxLua::getNumberVector()
ofxLua::setNumberVector()
ofxLuaFileWriter::writeNumber()
ofxLuaFileWriter::writeNumberVector()

This change also brings ofxLua more in line with the Lua API.


#42

I’ve updated ofxLua to use Semantic Versioning. There is now a changelog and ofxLua-specific version tags to replace the previous tags which were based on OF versions.


#43

@lewislepton and @yeswecan, y’all might be interested in loaf (lua, oscillator, and openFrameworks) which I just released today: http://www.danomatika.com/code/loaf


#44

ofxLua 1.3.0 (& 1.3.1 shortly after) is now out. See the changelog for details.

Main info:

1.3.0

  • updated for OF 0.10
  • build error and bug fixes
  • fleshed out documentation commenting

1.3.1

  • added glm library bindings

#45

Wow Dan, thanks again for your amazing work.

I have a small conversion issues with the last release with XCode

Line 42883 :
SWIG_fail_ptr(“Xml_getAttributes”,1,SWIGTYPE_p_ofXml);


#46

Hi Dan,

I’m trying to compile the luaExample on Linux.
I get many instances of these bugs:

/home/edward/software/of/of_v0.10.1_linux64gcc6_release/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:5646:37: note: in expansion of macro ‘SWIG_contract_assert’
arg3 = (GLint)lua_tonumber(L, 3); SWIG_contract_assert((lua_tonumber(L,4)>=0),“number must not be negative”)

/home/edward/software/of/of_v0.10.1_linux64gcc6_release/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:5647:38: note: …this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
arg4 = (GLenum)lua_tonumber(L, 4); (arg1)->createAndAttachDepthStencilTexture(arg2,arg3,arg4); return SWIG_arg;

/home/edward/software/of/of_v0.10.1_linux64gcc6_release/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:5865:43: note: …this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
if (arg1) (arg1)->textureTarget = arg2; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }

This all looks like issues with SWIG. I note you stated: “This branch is fully working and tested on OS X and iOS. It should work pretty easily on Win and Linux now that Boost isn’t required”