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 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
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Constructors
public
RenderScriptGL.SurfaceConfig
()
Public Methods
public
void
setAlpha
(int minimum, int preferred)
Set the bit depth for alpha. This configures the surface for
an unsigned integer buffer type.
public
void
setColor
(int minimum, int preferred)
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)
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)
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.
|