May 17th, 2010, 05:51 AM
|
#1 (permalink)
|
|
New Member
Join Date: May 2010
Location: Dhaka
Posts: 1
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Getting double opengl object when try to draw an opengl object infront of camera
Hi,
I am pritom. I am new in android development. I am trying to drwa an object in top of the camera view....
Here is my code
Code:
mPreview = new Preview(this);
mGLSurfaceView = new TouchSurfaceView(this);
mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
mGLSurfaceView.setKeepScreenOn(true);
setContentView( mGLSurfaceView);
addContentView( mPreview, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
I am getting 2 object and the position of the object not perfect....
Anybody have any idea..
Thanks In advance
Pritom Kushtia.
|
|
|