cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 489 forks source link

Why there is no JSB of Data class in CCData.h? #1728

Open 0xJimmyBeh opened 9 years ago

0xJimmyBeh commented 9 years ago

I'm trying to use Data class to pass image array bytes from Cocos2d-X to Cocos2d-JS.

http://www.cocos2d-x.org/reference/native-cpp/V3.5/d5/dda/classcocos2d_1_1_data.html#a200bf583c97d8da48febc89218d3bef2

The document only show C++ but don't have JS and Lua.

Thanks.

luzi82 commented 9 years ago

I also notice that. So I am writing my own C++ class and JS binding to do that.