|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.renderer.config.TextureConfig.Implementation
com.threerings.opengl.renderer.config.TextureConfig.Original
public abstract static class TextureConfig.Original
The superclass of the implementations describing an original texture, as opposed to one derived from another configuration.
| Field Summary | |
|---|---|
protected List<SoftReference<Texture>> |
_pool
The pool of unique texture instances. |
protected SoftReference<Texture> |
_texture
The texture corresponding to this configuration. |
boolean |
border
Whether or not the texture has a border. |
Color4f |
borderColor
The border color. |
TextureConfig.CompareFunc |
compareFunc
The texture compare function. |
TextureConfig.CompareMode |
compareMode
The texture compare mode. |
TextureConfig.DepthMode |
depthMode
The depth texture mode. |
TextureConfig.Format |
format
The texture format. |
String |
identity
Used to create separate instances of the same configuration. |
TextureConfig.MagFilter |
magFilter
The magnification filter. |
float |
maxAnisotropy
The maximum degree of anisotropy. |
TextureConfig.MinFilter |
minFilter
The minification filter. |
TextureConfig.Wrap |
wrapR
The r wrap mode. |
TextureConfig.Wrap |
wrapS
The s wrap mode. |
TextureConfig.Wrap |
wrapT
The t wrap mode. |
| Constructor Summary | |
|---|---|
TextureConfig.Original()
|
|
| Method Summary | |
|---|---|
protected void |
configureTexture(Texture texture)
Configures the supplied texture with this config's parameters. |
protected abstract Texture |
createTexture(GlContext ctx)
Creates the texture for this configuration. |
Texture |
getFromPool(GlContext ctx)
Fetches a texture from the shared pool, or returns null if the
implementation doesn't contain a pool. |
protected List<SoftReference<Texture>> |
getPool()
Returns a reference to the (lazily created) texture pool. |
Texture |
getTexture(GlContext ctx,
TextureState state,
TextureUnit unit,
Scope scope,
List<Dependency.Adder> adders,
List<Updater> updaters)
Returns the (possibly dynamic) texture corresponding to this configuration. |
void |
invalidate()
Invalidates any cached data. |
boolean |
isSupported(GlContext ctx,
boolean fallback)
Determines whether this configuration is supported by the hardware. |
void |
returnToPool(GlContext ctx,
Texture texture)
Returns a texture to the shared pool. |
| Methods inherited from class com.threerings.opengl.renderer.config.TextureConfig.Implementation |
|---|
getTexture, getUpdateReferences, getUpdateResources |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Editable(category="data") public TextureConfig.Format format
@Editable(category="data") public String identity
@Editable(category="filter",
hgroup="f")
public TextureConfig.MinFilter minFilter
@Editable(category="filter",
hgroup="f")
public TextureConfig.MagFilter magFilter
@Editable(min=1.0,
step=0.01,
category="filter")
public float maxAnisotropy
@Editable(category="wrap",
hgroup="w")
public TextureConfig.Wrap wrapS
@Editable(category="wrap",
hgroup="w")
public TextureConfig.Wrap wrapT
@Editable(category="wrap",
hgroup="w")
public TextureConfig.Wrap wrapR
@Editable(category="wrap",
hgroup="b")
public boolean border
@Editable(mode="alpha",
category="wrap",
hgroup="b")
public Color4f borderColor
@Editable(category="compare",
hgroup="c")
public TextureConfig.CompareMode compareMode
@Editable(category="compare",
hgroup="c")
public TextureConfig.CompareFunc compareFunc
@Editable(category="compare") public TextureConfig.DepthMode depthMode
@DeepOmit protected transient SoftReference<Texture> _texture
@DeepOmit protected transient List<SoftReference<Texture>> _pool
| Constructor Detail |
|---|
public TextureConfig.Original()
| Method Detail |
|---|
public boolean isSupported(GlContext ctx,
boolean fallback)
TextureConfig.Implementation
isSupported in class TextureConfig.Implementation
public Texture getTexture(GlContext ctx,
TextureState state,
TextureUnit unit,
Scope scope,
List<Dependency.Adder> adders,
List<Updater> updaters)
TextureConfig.Implementation
getTexture in class TextureConfig.Implementationpublic Texture getFromPool(GlContext ctx)
TextureConfig.Implementationnull if the
implementation doesn't contain a pool.
getFromPool in class TextureConfig.Implementation
public void returnToPool(GlContext ctx,
Texture texture)
TextureConfig.Implementation
returnToPool in class TextureConfig.Implementationpublic void invalidate()
TextureConfig.Implementation
invalidate in class TextureConfig.Implementationprotected abstract Texture createTexture(GlContext ctx)
protected void configureTexture(Texture texture)
protected List<SoftReference<Texture>> getPool()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||