www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started 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.
-
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... ???
-
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?
-
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.