Can we put a GLSurfaceView into an Android Activity?

Started by generalwang, August 14, 2014, 08:51:58 AM

Previous topic - Next topic

generalwang

If GLSurfaceView extends SurfaceView, and SurfaceView entends from View. So I want to put a GLSurfaceView into an Android Activity? In GLSurfaceView I can play 3D, in other places, I can use something in Android.

EgonOlsen

I'm not sure what your actual question is? If you can put a GLSurfaceView into an Activity? Of course you can. Even the simplest example does exactly that... ???

generalwang

I means that, in an Android Activity, we make a layout,  in upper part I want put a android button or textview, in buttom part I want put a GLSurfaceView and there will be some 3D scene in the GLSurfaceView. Can we realize that?

EgonOlsen

I think so, but i've never tried it. But again...this is totally unrelated to jPCT-AE. If that works or not solely depends on Android and the SDK. jPCT-AE doesn't care about how and where you provide it with a GL context as long as you do.