public static class

RenderScriptGL.SurfaceConfig

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

Class Overview

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.

Summary

Public Constructors
RenderScriptGL.SurfaceConfig()
RenderScriptGL.SurfaceConfig(RenderScriptGL.SurfaceConfig sc)
Public Methods
void setAlpha(int minimum, int preferred)
Set the bit depth for alpha.
void setColor(int minimum, int preferred)
Set the per-component bit depth for color (red, green, blue).
void setDepth(int minimum, int preferred)
Set the bit depth for the depth buffer.
void setSamples(int minimum, int preferred, float Q)
Configure the multisample rendering.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RenderScriptGL.SurfaceConfig ()

Since: API Level 11

public RenderScriptGL.SurfaceConfig (RenderScriptGL.SurfaceConfig sc)

Since: API Level 11

Public Methods

public void setAlpha (int minimum, int preferred)

Since: API Level 11

Set the bit depth for alpha. This configures the surface for an unsigned integer buffer type.

public void setColor (int minimum, int preferred)

Since: API Level 11

Set the per-component bit depth for color (red, green, blue). This configures the surface for an unsigned integer buffer type.

public void setDepth (int minimum, int preferred)

Since: API Level 11

Set the bit depth for the depth buffer. This configures the surface for an unsigned integer buffer type. If a minimum of 0 is specified then its possible no depth buffer will be allocated.

public void setSamples (int minimum, int preferred, float Q)

Since: API Level 11

Configure the multisample rendering.

Parameters
minimum The required number of samples, must be at least 1.
preferred The targe number of samples, must be at least minimum
Q The quality of samples, range 0-1. Used to decide between different formats which have the same number of samples but different rendering quality.