Author Topic: Can we put a GLSurfaceView into an Android Activity?  (Read 640 times)

Offline generalwang

  • byte
  • *
  • Posts: 5
    • View Profile
Can we put a GLSurfaceView into an Android Activity?
« 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Can we put a GLSurfaceView into an Android Activity?
« Reply #1 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... ???

Offline generalwang

  • byte
  • *
  • Posts: 5
    • View Profile
Re: Can we put a GLSurfaceView into an Android Activity?
« Reply #2 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Can we put a GLSurfaceView into an Android Activity?
« Reply #3 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.