• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Getting double opengl object when try to draw an opengl object infront of camera

pritom057

Lurker
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:
[URL="file:///C:/workspace/Back%20UP/com.onlycam/"][/URL][URL="file:///C:/workspace/Back%20UP/com.onlycam/"][/URL]   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.
 
Back
Top Bottom