UnTraDe
UnTraDe

Reputation: 3867

Is Cocos2d-x always uses OpenGL?

Can I relay on my Cocos2d-x based application game to always use OpenGL (and OpenGL ES in mobile platforms)? Since this library allows inline OpenGL calls within it's code I want to know if I can use them without worrying about portability. Is there anything else Cocos2d-x uses for rendering? Like DirectX in Windows Desktop / Phone and maybe a software renderer on devices without graphic cards?

Upvotes: 0

Views: 1856

Answers (1)

CodeSmile
CodeSmile

Reputation: 64477

Cocos2d-x uses OpenGL on all platforms.

Keep in mind that on Desktop OSs depending on OS, GPU and drivers the OpenGL renderer may fall back to software rendering for certain features, or not support them at all (drawing glitches or errors).

Moreover OpenGL for desktop computers and OpenGL ES for mobile devices are not fully compatible both in API and supported features.

Upvotes: 1

Related Questions