public class

RenderScriptGL

extends RenderScript
java.lang.Object
   ↳ android.renderscript.RenderScript
     ↳ android.renderscript.RenderScriptGL

Class Overview

The Graphics derivitive of RenderScript. Extends the basic context to add a root script which is the display window for graphical output. When the system needs to update the display the currently bound root script will be called. This script is expected to issue the rendering commands to repaint the screen.

Summary

Nested Classes
class RenderScriptGL.SurfaceConfig Class which is used to describe a pixel format for a graphical buffer. 
Public Constructors
RenderScriptGL(Context ctx, RenderScriptGL.SurfaceConfig sc)
Construct a new RenderScriptGL context.
Public Methods
void bindProgramFragment(ProgramFragment p)
Set the default ProgramFragment object seen as the parent state by the root rendering script.
void bindProgramRaster(ProgramRaster p)
Set the default ProgramRaster object seen as the parent state by the root rendering script.
void bindProgramStore(ProgramStore p)
Set the default ProgramStore object seen as the parent state by the root rendering script.
void bindProgramVertex(ProgramVertex p)
Set the default ProgramVertex object seen as the parent state by the root rendering script.
void bindRootScript(Script s)
Set the script to handle calls to render the primary surface.
int getHeight()
return the height of the last set surface.
int getWidth()
return the width of the last set surface.
void pause()
Temporarly halt calls to the root rendering script.
void resume()
Resume calls to the root rendering script.
void setSurface(SurfaceHolder sur, int w, int h)
Bind an os surface
[Expand]
Inherited Methods
From class android.renderscript.RenderScript
From class java.lang.Object

Public Constructors

public RenderScriptGL (Context ctx, RenderScriptGL.SurfaceConfig sc)

Since: API Level 11

Construct a new RenderScriptGL context.

Parameters
ctx The context.
sc The desired format of the primart rendering surface.

Public Methods

public void bindProgramFragment (ProgramFragment p)

Since: API Level 11

Set the default ProgramFragment object seen as the parent state by the root rendering script.

public void bindProgramRaster (ProgramRaster p)

Since: API Level 11

Set the default ProgramRaster object seen as the parent state by the root rendering script.

public void bindProgramStore (ProgramStore p)

Since: API Level 11

Set the default ProgramStore object seen as the parent state by the root rendering script.

public void bindProgramVertex (ProgramVertex p)

Since: API Level 11

Set the default ProgramVertex object seen as the parent state by the root rendering script.

public void bindRootScript (Script s)

Since: API Level 11

Set the script to handle calls to render the primary surface.

Parameters
s Graphics script to process rendering requests.

public int getHeight ()

Since: API Level 11

return the height of the last set surface.

Returns
  • int

public int getWidth ()

Since: API Level 11

return the width of the last set surface.

Returns
  • int

public void pause ()

Since: API Level 11

Temporarly halt calls to the root rendering script.

public void resume ()

Since: API Level 11

Resume calls to the root rendering script.

public void setSurface (SurfaceHolder sur, int w, int h)

Since: API Level 11

Bind an os surface