Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Can we put a GLSurfaceView into an Android Activity?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Can we put a GLSurfaceView into an Android Activity? (Read 1947 times)
generalwang
byte
Posts: 5
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.
Logged
EgonOlsen
Administrator
quad
Posts: 12297
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...
Logged
generalwang
byte
Posts: 5
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?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
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.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Can we put a GLSurfaceView into an Android Activity?