Recent

Author Topic: [OpenGL ES 1.x][OpenAL]Need some tests  (Read 4255 times)

Andru

  • Full Member
  • ***
  • Posts: 112
    • Homepage
[OpenGL ES 1.x][OpenAL]Need some tests
« 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(apk file) which will show a bit modified version of this screenshot. 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.
« Last Edit: March 16, 2012, 07:01:19 pm by Andru »

joseywales72

  • New Member
  • *
  • Posts: 20
Re: [OpenGL ES 1.x][OpenAL]Need some tests
« Reply #1 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

Rustam Asmandiarov

  • New Member
  • *
  • Posts: 46
Re: [OpenGL ES 1.x][OpenAL]Need some tests
« Reply #2 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?

Andru

  • Full Member
  • ***
  • Posts: 112
    • Homepage
Re: [OpenGL ES 1.x][OpenAL]Need some tests
« Reply #3 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")).

Rustam Asmandiarov

  • New Member
  • *
  • Posts: 46
Re: [OpenGL ES 1.x][OpenAL]Need some tests
« Reply #4 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 ... :)
« Last Edit: March 22, 2012, 11:42:28 am by Rustam Asmandiarov »