How to port a computer game to Android written in C ++

I want to create a simple game like Space Invaders. I know that I can use the Android NDK, but I have to break the libraries that I use. I cannot use proprietary third-party libraries.

I will use OpenGL, but the OpenGL API seems different on Android. I have to use jpeg and png textures and write texts. Can I compile libjpeg, libpng and freetype for Android?

I cannot have a specific implementation of the game engine (C ++) and rendering procedures (C ++ and OpenGL), because this is the difficult part.

There are components that I configured to implement for each platform. There is no problem with the windows system and the user, because I will use a specific implementation for each system, this is just for me.

I use SDL and its extensions for audio on a PC, but it is easy to use. I can use certain audio libraries for Android.

thank

+3
source share
1 answer

Can I compile libjpeg, libpng and freetype for Android?

, Android. , , , , Android, glibc, , , Android glibc - liscence . Android glibc libc. glibc . , libc , , posix. , , , libc .

, , NDK Java (Android app/fwk) (++).

, , Android ( Android) - .

+5

Source: https://habr.com/ru/post/1793507/


All Articles