ygw365 at March 16th, 2012 03:27 — #1
— filename： test.lua
cocos2d.ccDrawLine(createPoint(10, 10),createPoint(100, 100))
the run screen has no effect。
ccDrawLine is only a method，not return object or class，so in the lua script ，can’t use draw method。
dualface at March 17th, 2012 23:50 — #2
ccDrawLine only call in CCNode:draw()
ex1 at May 6th, 2012 10:01 — #3
It seems to me that ccDrawLine is not exported for Lua, I’m missing something?
ex1 at May 6th, 2012 12:56 — #4
I found a way to add primitive rendering functions to CCRenderTexture, I’ll uploaded later on my Killa branch, however I only need points and lines but you’ll could extend the method if interested.