org.openintents.samples.openglsensors
Class GLSurfaceViewNoThread

java.lang.Object
  extended by SurfaceView
      extended by org.openintents.samples.openglsensors.GLSurfaceViewNoThread

public class GLSurfaceViewNoThread
extends SurfaceView

Holds the Open GL surface. This class also contains the GLThread class that takes care of graphics updates.


Constructor Summary
GLSurfaceViewNoThread(Context context, OpenGLSensors newOpenGLAccelerator)
          The View constructor is a good place to allocate our OpenGL context
 
Method Summary
 void holdAnimation()
          Holds animation temporarily.
 void init()
           
 void prepareAnimation()
           
 void resumeAnimation()
          Resumes animation.
 void startUseSensors()
           
 void stopUseSensors()
           
 void surfaceChanged(SurfaceHolder holder, int format, int w, int h)
           
 void surfaceCreated(SurfaceHolder holder)
           
 void surfaceDestroyed(SurfaceHolder holder)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLSurfaceViewNoThread

public GLSurfaceViewNoThread(Context context,
                             OpenGLSensors newOpenGLAccelerator)
The View constructor is a good place to allocate our OpenGL context

Method Detail

init

public void init()

surfaceCreated

public void surfaceCreated(SurfaceHolder holder)

surfaceDestroyed

public void surfaceDestroyed(SurfaceHolder holder)

surfaceChanged

public void surfaceChanged(SurfaceHolder holder,
                           int format,
                           int w,
                           int h)

holdAnimation

public void holdAnimation()
Holds animation temporarily. This can be called onPause() to save CPU power consumption.


resumeAnimation

public void resumeAnimation()
Resumes animation. Only to be called after holdAnimation().


prepareAnimation

public void prepareAnimation()

stopUseSensors

public void stopUseSensors()

startUseSensors

public void startUseSensors()