Giter Site home page Giter Site logo

cocos2dx-ext's Introduction

cocos2dx-ext

Extensions for Cocos2dx: Dynamic Font Management, HTML Widget, Powerful Asset Management...

  • CCHTMLLabel Sample:

cocos2dx-ext's People

Contributors

happykevins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocos2dx-ext's Issues

[Bug]CUtils.cpp (In Android Build)

FIXED:
bool CUtils::access(const char* path, int mode)
{

if defined(_WIN32)

return ::_access(path, mode) == 0;

else

return ::access(path, mode) == 0;

endif

}

我看了你关于这个扩展的文章,有几个问题

1.我用2.1.4版本在window下编译能够成功,2.2.4出现错误:
(md5.c 和 zpip.h) 预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反)
2.在csdn下方有些人反馈,该扩展有内存泄漏问题,不知道解决了没有?

where is "_access()" defined?

When I Compile the extension with NDK-build, a error come:

[armeabi] Compile++ thumb: cocos_extension_static <= CCRichOverlay.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCRichParser.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCell.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCells.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCreationFactory.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCreationWorker.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CDownloader.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CUtils.cpp
D:\greeApps\cocos2d-x-2.2.2/extensions/./cells/CUtils.cpp: In static member function 'static bool cells::CUtils::access(const char*, int)':
D:\greeApps\cocos2d-x-2.2.2/extensions/./cells/CUtils.cpp:312:9: error: '::_access' has not been declared
  return ::_access(path, mode) == 0;
         ^
make.exe: *** [obj/local/armeabi/objs/cocos_extension_static/./cells/CUtils.o] Error 1

so, where does the _access defined?

Could you please add some examples?

hi, i have used your htmllabel,
could you please add some examples?

the code as belows:
CCSize winsize = CCDirector::sharedDirector()->getWinSize();
CCHTMLLabel* pLabel2 = CCHTMLLabel::createWithString("<font color="#FF0000">TestHTMLLabel", CCSize(200,200),DFONT_DEFAULT_FONTALIAS);
pLabel2->setAnchorPoint(ccp(0,0));
pLabel2->setPosition( ccp(winsize.width / 2, winsize.height / 3) );
this->addChild(pLabel2);

it doesn't show anything.
could please figure it out?
thanks

how to compile it in windows?

i don't found the < ft2build.h> head file in cocos2d-x's third_party directory,but i see your picture show is on windows.,my cocos2d-x version is 2.2.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.