https://github.com/weimingtom/cocos2d-x-2.2.6-miyoo-a30
[WIP] Cocos2d-x-2.2.6 MIYOO A30, TRIMUI SMART PRO, TRIMUI BRICK port, now only support video output with GLES2, no input and audio
https://github.com/weimingtom/cocos2d-x-2.2.6-miyoo-a30
cocos2dx miyooa30 trimuibrick trimuismartpro
Last synced: 2 months ago
JSON representation
[WIP] Cocos2d-x-2.2.6 MIYOO A30, TRIMUI SMART PRO, TRIMUI BRICK port, now only support video output with GLES2, no input and audio
- Host: GitHub
- URL: https://github.com/weimingtom/cocos2d-x-2.2.6-miyoo-a30
- Owner: weimingtom
- License: mit
- Created: 2024-12-15T05:36:46.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-12-22T05:31:05.000Z (6 months ago)
- Last Synced: 2025-04-15T02:47:39.490Z (2 months ago)
- Topics: cocos2dx, miyooa30, trimuibrick, trimuismartpro
- Language: C++
- Homepage:
- Size: 10.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cocos2d-x-2.2.6-miyoo-a30
[WIP] Cocos2d-x-2.2.6 MIYOO A30, TRIMUI SMART PRO, TRIMUI BRICK port, now only support video output with GLES2, no input and audio## About OpenGL ES 2.0 initialization code
* Inspired by and thanks to Steward.
* see also https://steward-fu.github.io/website/handheld/miyoo_a30_cpp_es_triangle.htm
```
參考資訊:
https://www.khronos.org/assets/uploads/books/openglr_es_20_programming_guide_sample.pdf
```## Original Cocos2d-x Repo
* https://github.com/cocos2d/cocos2d-x/tree/cocos2d-x-2.2.6## About GCC toolchain and development environment
* see also https://github.com/weimingtom/onscripter-libretro_fork
```
(for miyoo a30)
https://github.com/XK9274/a30-sdk-miyoo/releases/tag/16042024
see https://github.com/weimingtom/miyoo_a30_playground
see https://github.com/weimingtom/onscripter-jh-miyoo-a30(for Trimui Smart Pro and Trimui Brick, aarch64)
https://github.com/trimui/toolchain_sdk_smartpro/releases/tag/20231018(for PC)
xubuntu 20.04 64bit
```## About screen rotation 90 degrees problem
* see also https://github.com/weimingtom/cocos2dx226_vc6
```
see cocos2dx/CCDirector.cpp, void CCDirector::setProjection(ccDirectorProjection kProjection), see#if CC_TARGET_PLATFORM == CC_PLATFORM_WP8
//if needed, we need to add a rotation for Landscape orientations on Windows Phone 8 since it is always in Portrait Mode
kmGLMultMatrix(CCEGLView::sharedOpenGLView()->getOrientationMatrix());
#endif
```## About OpenGL projection and other cocos2d-x code execution flow
* Cocos2d-x屏幕适配之Sprite绘制原理
https://blog.csdn.net/ado137/article/details/37563323
https://blog.csdn.net/weixin_44053279/article/details/129713948## Key and important codes
* CCEGLView.cpp (EGL initialization and viewport rotation)
* CCDirector.cpp (CCDirector::setProjection, Screen rotation)
* CCDirector.cpp (CCDirector::drawScene) and CCScene.cpp (Outside display list draw loop)
* CCSprite.cpp and CCNode.cpp (Inside display list draw loop)
* main.cpp (Screen size)
* HelloWorldScene.cpp (Outside the engine)## TODO
* https://github.com/kyokomi/Cocos2dxNovelGame
Cocos2dxNovelGame_v1.rar
* https://github.com/wuxuanjian/cocos2d/tree/master/cocos2dx_lizi_1
* https://github.com/opentalking/gif-for-cocos2dx
* https://github.com/dayongxie/MyGUI
MyGUI_cocos2d-x.rar
* Cocos2d-x2.2.5修改版
* https://github.com/weimingtom/adv_cocos2dx
* https://github.com/weimingtom/marika_cocos2dx
only a template