Skip to content

[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

License

Notifications You must be signed in to change notification settings

weimingtom/cocos2d-x-2.2.6-miyoo-a30

Repository files navigation

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

參考資訊:
https://www.khronos.org/assets/uploads/books/openglr_es_20_programming_guide_sample.pdf

Original Cocos2d-x Repo

About GCC toolchain and development environment

(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 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

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

About

[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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published