We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
cleanup gl code for mobile
cleanup gl code for mobile
Bug #4539 [Closed]
- Assignee changed from dabingnn to huangsw
Fixed in this pull request: https://github.com/cocos2d/cocos2d-x/pull/7843
We need abstractions to initialize the GL windows on mobile (iOS and Android).
More info here:
http://www.cocos2d-x.org/forums/6/topics/48163?r=48411#message-48411
Basically the current code is hardcoded and it is impossible to change the dimensions of the window, or to use a custom title, or to change the parameters of GL.
We need something like GLFW for mobile, or better yet... add iOS and Android support to GLFW.
libsdl2 also has a nice abstraction and it works on desktop and mobile.