public class

RSSurfaceView

extends SurfaceView
implements SurfaceHolder.Callback
java.lang.Object
   ↳ android.view.View
     ↳ android.view.SurfaceView
       ↳ android.renderscript.RSSurfaceView

Class Overview

The Surface View for a graphics renderscript (RenderScriptGL) to draw on.

Summary

[Expand]
Inherited XML Attributes
From class android.view.View
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
RSSurfaceView(Context context)
Standard View constructor.
RSSurfaceView(Context context, AttributeSet attrs)
Standard View constructor.
Public Methods
RenderScriptGL createRenderScriptGL(RenderScriptGL.SurfaceConfig sc)
void destroyRenderScriptGL()
RenderScriptGL getRenderScriptGL()
void pause()
Inform the view that the activity is paused.
void resume()
Inform the view that the activity is resumed.
void setRenderScriptGL(RenderScriptGL rs)
void surfaceChanged(SurfaceHolder holder, int format, int w, int h)
This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.
void surfaceCreated(SurfaceHolder holder)
This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.
void surfaceDestroyed(SurfaceHolder holder)
This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.
[Expand]
Inherited Methods
From class android.view.SurfaceView
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.SurfaceHolder.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public RSSurfaceView (Context context)

Since: API Level 11

Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.

public RSSurfaceView (Context context, AttributeSet attrs)

Since: API Level 11

Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.

Public Methods

public RenderScriptGL createRenderScriptGL (RenderScriptGL.SurfaceConfig sc)

Since: API Level 11

public void destroyRenderScriptGL ()

Since: API Level 11

public RenderScriptGL getRenderScriptGL ()

Since: API Level 11

public void pause ()

Since: API Level 11

Inform the view that the activity is paused. The owner of this view must call this method when the activity is paused. Calling this method will pause the rendering thread. Must not be called before a renderer has been set.

public void resume ()

Since: API Level 11

Inform the view that the activity is resumed. The owner of this view must call this method when the activity is resumed. Calling this method will recreate the OpenGL display and resume the rendering thread. Must not be called before a renderer has been set.

public void setRenderScriptGL (RenderScriptGL rs)

Since: API Level 11

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

Since: API Level 11

This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.

Parameters
holder The SurfaceHolder whose surface has changed.
format The new PixelFormat of the surface.
w The new width of the surface.
h The new height of the surface.

public void surfaceCreated (SurfaceHolder holder)

Since: API Level 11

This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.

Parameters
holder The SurfaceHolder whose surface is being created.

public void surfaceDestroyed (SurfaceHolder holder)

Since: API Level 11

This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.

Parameters
holder The SurfaceHolder whose surface is being destroyed.