openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.97k stars 2.55k forks source link

Replacing GLSurfaceView with TextureView #2478

Open minusplusminus opened 11 years ago

minusplusminus commented 11 years ago

Hi everyone,

I was wondering if it's a good idea to replace Android GLSurfaceView with GLTextureView. The advantages of replacing this is that multiple views can be combined. after this modification we can create a mapKit for Android and combine it with a native GUI.

Here's an example link: https://github.com/eaglesakura/gltextureview/tree/issue/1/master

arturoc commented 11 years ago

i think this is only compatible with android ICS or newer? i think the default should still be something compatible with as much devices as possible, right now 2.2. You can change it to be a glTextureView in the main layout inside the res folder but not sure if we need to do any changes in the java side

minusplusminus commented 11 years ago

Yes, but it's stable and usable since 4.1.1 i've read. There had to be a few small changes on the java side. I just want to share it: https://gist.github.com/ikillbombs/6272286