cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.24k stars 7.06k forks source link

Want Cocos2d-x v4 Mac to use openGL rendering,what can i do #20768

Open Tannnyong opened 1 year ago

Tannnyong commented 1 year ago

Want Cocos2d-x v4 Mac to use openGL rendering,what can i do I change CMAKE file But build Error

minggo commented 1 year ago

Then you can use v3.x. v4 is for metal.

rh101 commented 1 year ago

Want Cocos2d-x v4 Mac to use openGL rendering,what can i do I change CMAKE file But build Error

A developer posted a PR a while back against the Axmol fork of Cocos2d-x v4, which allows you to select OpenGL or Metal at runtime: https://github.com/axmolengine/axmol/pull/287

You may be able to merge the changes back into your own fork of Cocos2d-x v4.