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.