www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: generalwang on August 14, 2014, 08:51:58 am

Title: Can we put a GLSurfaceView into an Android Activity?
Post by: generalwang on August 14, 2014, 08:51:58 am
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.
Title: Re: Can we put a GLSurfaceView into an Android Activity?
Post by: EgonOlsen on August 14, 2014, 03:41:40 pm
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... ???
Title: Re: Can we put a GLSurfaceView into an Android Activity?
Post by: generalwang on August 15, 2014, 04:06:44 am
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?
Title: Re: Can we put a GLSurfaceView into an Android Activity?
Post by: EgonOlsen on August 15, 2014, 07:03:36 am
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.