intmainreturn00 / AwesomeNode

Extended cocos2dx DrawNode with tessellation and AntiAliasing for smooth drawing. 😍
MIT License
46 stars 12 forks source link

Support for cocos2d-x 4.0 and axmol #3

Open crazyhappygame opened 1 year ago

crazyhappygame commented 1 year ago

Hi,

Could you add support for https://github.com/axmolengine/axmol ?

crazyhappygame commented 1 year ago

@intmainreturn00 any chance to look at this problem?

crazyhappygame commented 1 year ago

Fixed here: https://github.com/intmainreturn00/AwesomeNode/pull/4

intmainreturn00 commented 1 year ago

Thanks for the PR. Will try to check & merge soon. 🙏

aismann commented 2 months ago

@crazyhappygame axmol::extension::DrawNodeEx (=DrawNodeV2) has it:

@intmainreturn00 Hope its okey when I use your: generateDataPoints()for creating lines like on your sample.cpp

image

intmainreturn00 commented 2 months ago

Fixed here: #4

Build for cocos2d-x-4.0 on M1 mac. ✅ (I needed to patch a few things in cocos itself in order to make it run in M1, but nothing graphics related)

  1. On top of the file: USING_NS_CC;#define USING_NS_CC using namespace cocos2d so, I should have access from this file without using cocos2d:: prefix.
  2. auto * works for me. Are there any problems with using auto? I thought even cocos2dx docs recommends using modern c++.
  3. In my 4.0 DrawNode I don't have _bufferTriangle + _bufferCountTriangle. axmol DrawNode is different? My local build also fails if I try to access _customCommandTriangle for the same reason.

Need more info. 🙏 ping me if I can help somehow with this.

intmainreturn00 commented 2 months ago

@intmainreturn00 Hope its okey when I use your: generateDataPoints()for creating lines like on your sample.cpp

Sure