For more information about creating an application that uses Renderscript, read the Renderscript developer guide.
public class RenderScriptGL extends RenderScript
Modifier and Type | Class and Description |
---|---|
static class |
RenderScriptGL.SurfaceConfig
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.
|
RenderScript.Priority, RenderScript.RSErrorHandler, RenderScript.RSMessageHandler
Constructor and Description |
---|
RenderScriptGL(Context ctx,
RenderScriptGL.SurfaceConfig sc)
Deprecated.
in API 16
Construct a new RenderScriptGL context.
|
Modifier and Type | Method and Description |
---|---|
void |
bindProgramFragment(ProgramFragment p)
Deprecated.
in API 16
Set the default ProgramFragment object seen as the parent state by the
root rendering script.
|
void |
bindProgramRaster(ProgramRaster p)
Deprecated.
in API 16
Set the default ProgramRaster object seen as the parent state by the
root rendering script.
|
void |
bindProgramStore(ProgramStore p)
Deprecated.
in API 16
Set the default ProgramStore object seen as the parent state by the root
rendering script.
|
void |
bindProgramVertex(ProgramVertex p)
Deprecated.
in API 16
Set the default ProgramVertex object seen as the parent state by the
root rendering script.
|
void |
bindRootScript(Script s)
Deprecated.
in API 16
Set the script to handle calls to render the primary surface.
|
int |
getHeight()
Deprecated.
in API 16
return the height of the last set surface.
|
int |
getWidth()
Deprecated.
in API 16
return the width of the last set surface.
|
void |
pause()
Deprecated.
in API 16
Temporarly halt calls to the root rendering script.
|
void |
resume()
Deprecated.
in API 16
Resume calls to the root rendering script.
|
void |
setSurface(SurfaceHolder sur,
int w,
int h)
Deprecated.
in API 16
Bind an os surface
|
void |
setSurfaceTexture(SurfaceTexture sur,
int w,
int h)
Deprecated.
in API 16
Bind an os surface
|
contextDump, create, create, destroy, finish, getApplicationContext, getErrorHandler, getMessageHandler, setErrorHandler, setMessageHandler, setPriority, setupDiskCache
public RenderScriptGL(Context ctx, RenderScriptGL.SurfaceConfig sc)
ctx
- The context.sc
- The desired format of the primary rendering surface.public void setSurface(SurfaceHolder sur, int w, int h)
w
- h
- sur
- public void setSurfaceTexture(SurfaceTexture sur, int w, int h)
w
- h
- sur
- public int getHeight()
public int getWidth()
public void pause()
public void resume()
public void bindRootScript(Script s)
s
- Graphics script to process rendering requests.public void bindProgramStore(ProgramStore p)
p
- public void bindProgramFragment(ProgramFragment p)
p
- public void bindProgramRaster(ProgramRaster p)
p
- public void bindProgramVertex(ProgramVertex p)
p
-