Lazarus

Programming => Operating Systems => Android => Topic started by: Andru on March 16, 2012, 06:58:22 pm

Title: [OpenGL ES 1.x][OpenAL]Need some tests
Post by: Andru on March 16, 2012, 06:58:22 pm
Hi,

I have just returned to Android development and want to ask help with testing my code on different devices :) Here is a demo (http://zengl.org/tmp/TestZenGL.apk)(apk file) which will show a bit modified version of this screenshot (http://zengl.org/screens/screen01.jpg). What I want to test:
- initialization and OpenGL ES 1.x rendering
- playing ogg music in separate thread using OpenAL and libtremolo
- text input(taping on blue square will show soft keyboard)
- restoring resources after loosing focus(some devices can lost OpenGL context on Android lower than 3.0)

Demo requirements are Android 2.1+ device and OpenGL ES 1.1 support on it. Demo was compiled with FreePascal 2.6.1(the latest revision of FreePascal from fixes_2_6 branch) and uses JNI.
Title: Re: [OpenGL ES 1.x][OpenAL]Need some tests
Post by: joseywales72 on March 19, 2012, 11:09:48 pm
Hi Andru,
I tried your demo and it works perfectly on my rooted Samsung Galaxy Spica. (It's a 2 years old phone with a Cyanogenmod derivative custom 2.2.1 firmware. If it runs your demo, anything can I suppose. :- )
The installer did not create a launcher in the menu but I suppose it's by the design, so there is no problem. When you tap on the blue box, keyboard opens. Everything else is like it should be.
Congratulations.
Anil
Title: Re: [OpenGL ES 1.x][OpenAL]Need some tests
Post by: Rustam Asmandiarov on March 22, 2012, 10:14:36 am
А можно узнать как вы добавили в apk много so библиотек а так же как их подключили?

And you can see how you've added to apk so many libraries as well as how they connected?
Title: Re: [OpenGL ES 1.x][OpenAL]Need some tests
Post by: Andru on March 22, 2012, 10:48:10 am
Все они кидаются в jni/lib/armeabi, а перед их использованием в Java коде необходимо вызвать System.loadLibrary() метод с сокращённым именем библиотеки(например libopenal.so будет просто System.loadLibrary("openal")).

All libraries should be put into jni/lib/armeabi, and before using them there should be loading code in Java - System.loadLibrary() with shorted name of library(e.g. for libopenal.so it will be System.loadLibrary("openal")).
Title: Re: [OpenGL ES 1.x][OpenAL]Need some tests
Post by: Rustam Asmandiarov on March 22, 2012, 11:40:21 am
Спасибо помогло! Все никак не могу прикрутить libglu, вроде продвинулось,но появились другие ошибки! Работаем ... :)

Thanks to help! All I can not tie libglu, such as advanced, but there were other mistakes! We work ... :)