Skip to content

Most visited

Recently visited

navigation

RenderScriptGL | Android Developers

to top
Android APIs
public class

RenderScriptGL

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

This class was deprecated in API level 16.
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 was deprecated in API level 16. 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 was deprecated in API level 16. in API 16 Construct a new RenderScriptGL context.
Public Methods
void bindProgramFragment(ProgramFragment p)
This method was deprecated in API level 16. in API 16 Set the default ProgramFragment object seen as the parent state by the root rendering script.
void bindProgramRaster(ProgramRaster p)
This method was deprecated in API level 16. in API 16 Set the default ProgramRaster object seen as the parent state by the root rendering script.
void bindProgramStore(ProgramStore p)
This method was deprecated in API level 16. in API 16 Set the default ProgramStore object seen as the parent state by the root rendering script.
void bindProgramVertex(ProgramVertex p)
This method was deprecated in API level 16. in API 16 Set the default ProgramVertex object seen as the parent state by the root rendering script.
void bindRootScript(Script s)
This method was deprecated in API level 16. in API 16 Set the script to handle calls to render the primary surface.
int getHeight()
This method was deprecated in API level 16. in API 16 return the height of the last set surface.
int getWidth()
This method was deprecated in API level 16. in API 16 return the width of the last set surface.
void pause()
This method was deprecated in API level 16. in API 16 Temporarly halt calls to the root rendering script.
void resume()
This method was deprecated in API level 16. in API 16 Resume calls to the root rendering script.
void setSurface(SurfaceHolder sur, int w, int h)
This method was deprecated in API level 16. in API 16 Bind an os surface
void setSurfaceTexture(SurfaceTexture sur, int w, int h)
This method was deprecated in API level 16. 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)

Added in API level 11

This constructor was deprecated in API level 16.
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)

Added in API level 11

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

public void bindProgramRaster (ProgramRaster p)

Added in API level 11

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

public void bindProgramStore (ProgramStore p)

Added in API level 11

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

public void bindProgramVertex (ProgramVertex p)

Added in API level 11

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

public void bindRootScript (Script s)

Added in API level 11

This method was deprecated in API level 16.
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 ()

Added in API level 11

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

Returns
  • int

public int getWidth ()

Added in API level 11

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

Returns
  • int

public void pause ()

Added in API level 11

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

public void resume ()

Added in API level 11

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

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

Added in API level 11

This method was deprecated in API level 16.
in API 16 Bind an os surface

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

Added in API level 14

This method was deprecated in API level 16.
in API 16 Bind an os surface

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.