public static enum Renderer.RendererState extends Enum<Renderer.RendererState>
OK
state.
It could become LOST
at some point. This may happen for
example if the renderer is susceptible to display changes.
When the renderer is in the LOST
state it can't be used
for rendering, instead a backup renderer
must be used.
Sometime later the renderer could enter the DISPOSED
state,
at which point it will be removed from the cache and a new renderer
will be created for the particular context.
Thus the lifecycle of a renderer is:
OK
[=> LOST
[=> DISPOSED
]]
Enum Constant and Description |
---|
DISPOSED
Renderer is disposed, it is no longer usable and must be replaced.
|
LOST
Renderer is lost, a backup renderer must be used.
|
OK
Renderer can be used for rendering.
|
Modifier and Type | Method and Description |
---|---|
static Renderer.RendererState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Renderer.RendererState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Renderer.RendererState OK
public static final Renderer.RendererState LOST
public static final Renderer.RendererState DISPOSED
public static Renderer.RendererState[] values()
for (Renderer.RendererState c : Renderer.RendererState.values()) System.out.println(c);
public static Renderer.RendererState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.