public class VgSurfaceView
extends GLSurfaceView
Constructor and Description |
---|
VgSurfaceView(Context pContext,
AttributeSet pAttrs,
boolean pNeedsTransparency)
Class constructor.
|
VgSurfaceView(Context pContext,
boolean pNeedsTransparency)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addOnCreateRunnable(java.lang.Runnable pRunnable)
Add a runnable task to the VisioDevKit.
|
void |
dispatchDoubleTouchMove(long pAppCPtr,
int pX,
int pY,
int pX2,
int pY2,
int pTouchCount) |
void |
dispatchTouchDown(long pAppCPtr,
int pX,
int pY,
int pTouchCount) |
void |
dispatchTouchMove(long pAppCPtr,
int pX,
int pY,
int pTouchCount) |
void |
dispatchTouchUp(long pAppCPtr,
int pX,
int pY,
int pTouchCount) |
void |
drawFrame(long pAppCPtr) |
VgIApplication |
getApplication() |
void |
onDrawFrame(GL10 gl)
Called to draw the current frame
|
boolean |
onKey(View pView,
int pInt,
KeyEvent pEvent)
Called when a hardware key is dispatched to a view
|
void |
onPause()
Inform the view that the activity is paused.
|
void |
onResume()
Inform the view that the activity is resumed.
|
void |
onSurfaceChanged(GL10 gl,
int width,
int height)
Called when the surface changed size.
|
void |
onSurfaceCreated(GL10 gl,
EGLConfig config)
Called when the surface is created or recreated.
|
boolean |
onTouch(View pView,
MotionEvent pEvent)
Called when a touch event is dispatched to a view.
|
void |
pauseRendering()
Pauses the rendering of the VgSurfaceView.
|
void |
postLoadDataset()
Called after the dataset has been loaded.
|
void |
requestRedraw()
Requests a single redraw of the VgSurfaceView.
|
void |
resumeRendering()
Resumes the rendering of the VgSurfaceView.
|
void |
setSurfaceSize(long pAppCPtr,
int pWidth,
int pHeight) |
void |
surfaceDestroyed(SurfaceHolder pHolder)
This method is called immediately before a surface is being destroyed.
|
public VgSurfaceView(Context pContext, AttributeSet pAttrs, boolean pNeedsTransparency)
pContext
- The application context (passed through to Android's GLSurfaceView).pAttrs
- The attributes (passed through to Android's GLSurfaceView).pNeedsTransparency
- Indicates whether transparency (i.e. alpha channel) is needed for this view.public VgSurfaceView(Context pContext, boolean pNeedsTransparency)
pContext
- The application context (passed through to Android's GLSurfaceView).pNeedsTransparency
- Indicates whether transparency (i.e. alpha channel) is needed for this view.public void drawFrame(long pAppCPtr)
public void setSurfaceSize(long pAppCPtr, int pWidth, int pHeight)
public void dispatchTouchDown(long pAppCPtr, int pX, int pY, int pTouchCount)
public void dispatchTouchUp(long pAppCPtr, int pX, int pY, int pTouchCount)
public void dispatchTouchMove(long pAppCPtr, int pX, int pY, int pTouchCount)
public void dispatchDoubleTouchMove(long pAppCPtr, int pX, int pY, int pX2, int pY2, int pTouchCount)
public void pauseRendering()
public void resumeRendering()
public void requestRedraw()
public void postLoadDataset()
public VgIApplication getApplication()
public void addOnCreateRunnable(java.lang.Runnable pRunnable)
pRunnable
- - Runnable to be executedpublic void onResume()
public void onPause()
public void onDrawFrame(GL10 gl)
public void onSurfaceCreated(GL10 gl, EGLConfig config)
public void onSurfaceChanged(GL10 gl, int width, int height)
public void surfaceDestroyed(SurfaceHolder pHolder)
public boolean onKey(View pView, int pInt, KeyEvent pEvent)
public boolean onTouch(View pView, MotionEvent pEvent)