Text and vertexdisplacement can be run on Android

Source: Internet
Author: User

Reprinted please indicate the source is klayge Game Engine

 

After the empty klayge framework was run, after several days of hard debugging, multiple klayge bugs were fixed to bypass more Android bugs. Now, the text and vertex displacement examples can be successfully executed on Android.

Text Example. Garbled text is not a bug because the system area is not set to Chinese.

 

Vertex displacement example.

During the porting process, the problem is that the anativewindow_getwidth and anativewindow_getheight of ndk always return to 1, and the correct window size cannot be obtained. The viewport is incorrectly set to 1 × 1, so that only one pixel exists for the outputs. After modifying native_app_glue and obtaining the resize message, the viewport size is correctly set. The two examples can be executed normally. It can also be seen from here that android ndk has a lot of problems and should be very careful during development.

Another thing is that android x86 runs OpenGL ES 2 using MESA on eeepc 701's i915 (at least, I have not found a way to disable fallback ), therefore, the frame rate is very low.

So far, the first phase of klayge for Android has been completed, that is, the engine core has been transplanted. In the next stage, more examples can be executed on Android.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.