to top
Android APIs
public class

RenderScriptGL

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

This class is deprecated.
in API 16 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.

Developer Guides

For more information about creating an application that uses Renderscript, read the Renderscript developer guide.

Summary

Nested Classes
class RenderScriptGL.SurfaceConfig This class is deprecated. in API 16 Class which is used to describe a pixel format for a graphical buffer. This is used to describe the intended format of the display surface. The configuration is described by pairs of minimum and preferred bit depths for each component within the config and additional structural information.  
Public Constructors
RenderScriptGL(Context ctx, RenderScriptGL.SurfaceConfig sc)
This constructor is deprecated. in API 16 Construct a new RenderScriptGL context.
Public Methods
void bindProgramFragment(ProgramFragment p)
This method is deprecated. in API 16 Set the default ProgramFragment object seen as the parent state by the root rendering script.
void bindProgramRaster(ProgramRaster p)
This method is deprecated. in API 16 Set the default ProgramRaster object seen as the parent state by the root rendering script.
void bindProgramStore(ProgramStore p)
This method is deprecated. in API 16 Set the default ProgramStore object seen as the parent state by the root rendering script.
void bindProgramVertex(ProgramVertex p)
This method is deprecated. in API 16 Set the default ProgramVertex object seen as the parent state by the root rendering script.
void bindRootScript(Script s)
This method is deprecated. in API 16 Set the script to handle calls to render the primary surface.
int getHeight()
This method is deprecated. in API 16 return the height of the last set surface.
int getWidth()
This method is deprecated. in API 16 return the width of the last set surface.
void pause()
This method is deprecated. in API 16 Temporarly halt calls to the root rendering script.
void resume()
This method is deprecated. in API 16 Resume calls to the root rendering script.
void setSurface(SurfaceHolder sur, int w, int h)
This method is deprecated. in API 16 Bind an os surface
void setSurfaceTexture(SurfaceTexture sur, int w, int h)
This method is deprecated. in API 16 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

This constructor is deprecated.
in API 16 Construct a new RenderScriptGL context.

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

Public Methods

public void bindProgramFragment (ProgramFragment p)

Since: API Level 11

This method is deprecated.
in API 16 Set the default ProgramFragment object seen as the parent state by the root rendering script.

public void bindProgramRaster (ProgramRaster p)

Since: API Level 11

This method is deprecated.
in API 16 Set the default ProgramRaster object seen as the parent state by the root rendering script.

public void bindProgramStore (ProgramStore p)

Since: API Level 11

This method is deprecated.
in API 16 Set the default ProgramStore object seen as the parent state by the root rendering script.

public void bindProgramVertex (ProgramVertex p)

Since: API Level 11

This method is deprecated.
in API 16 Set the default ProgramVertex object seen as the parent state by the root rendering script.

public void bindRootScript (Script s)

Since: API Level 11

This method is deprecated.
in API 16 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

This method is deprecated.
in API 16 return the height of the last set surface.

Returns
  • int

public int getWidth ()

Since: API Level 11

This method is deprecated.
in API 16 return the width of the last set surface.

Returns
  • int

public void pause ()

Since: API Level 11

This method is deprecated.
in API 16 Temporarly halt calls to the root rendering script.

public void resume ()

Since: API Level 11

This method is deprecated.
in API 16 Resume calls to the root rendering script.

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

Since: API Level 11

This method is deprecated.
in API 16 Bind an os surface

public void setSurfaceTexture (SurfaceTexture sur, int w, int h)

Since: API Level 14

This method is deprecated.
in API 16 Bind an os surface