Cocos2d-x 3.2 and OpenGL question!

Hi All,

I have 2 doubts about cocos2d-x 3.2 and OpenGL.

  1. What version of OpenGL is shipped with cocos2d-x 3.2 (android and ios)?
  2. How I can draw a simple test cube in scene using cocos2d-x 3.2 (C++)

Thanks for all.

@re_tf I was interested in this questions few days ago. Fortunately @owen helped. He has created an tutorial series in Chinese. http://4gamers.cn/archives/131 using Google translate I could do more than drawing a simple cube.

The version of OpenGL ES should be 2.0, though 3.0 is issued. Please correct me if I am mistaken.

What do you mean by 3.0 is issued?

Thanks, well I need 3.0(ogl), have anyway to check it?

@slackmoehrle

The OpenGL ES 3.1 specification was publicly released in March 2014. New functionality in OpenGL ES 3.1 includes:

  • Compute shaders
  • Independent vertex and fragment shaders
  • Indirect draw commands

OpenGL ES 3.1 is backward compatible with OpenGL ES 2.0 and 3.0, thus enabling applications to incrementally incorporate new features.

From wiki: http://en.wikipedia.org/wiki/OpenGL_ES

@re_tf I don’t know how to check it, but why you need 3.0? Is there anything you can’t do in 2.0?

BTW see here for checking version and convincing you that 3.0 should not be the version supported as only new hardware supports it :
http://developer.android.com/guide/topics/graphics/opengl.html
http://developer.android.com/guide/topics/graphics/opengl.html#version-check
https://developer.apple.com/library/ios/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/OpenGLESPlatforms/OpenGLESPlatforms.html

sorry I was just confused on the wording of ‘issued’ that is all.

@slackmoehrle I have chosen a wrong term :smile: . I should have been said released!