com.threerings.opengl.renderer.config
Class TextureConfig.Implementation

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.TextureConfig.Implementation
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
TextureConfig.Animated, TextureConfig.BaseDerived, TextureConfig.Original
Enclosing class:
TextureConfig

@EditorTypes(value={TextureConfig.Original1D.class,TextureConfig.Original2D.class,TextureConfig.Original2DTarget.class,TextureConfig.OriginalRectangle.class,TextureConfig.Original3D.class,TextureConfig.OriginalCubeMap.class,TextureConfig.Reflection.class,TextureConfig.Refraction.class,TextureConfig.CubeRender.class,TextureConfig.Animated.class,TextureConfig.Derived.class})
public abstract static class TextureConfig.Implementation
extends DeepObject
implements Exportable

Contains the actual implementation of the texture.


Constructor Summary
TextureConfig.Implementation()
           
 
Method Summary
 Texture getFromPool(GlContext ctx)
          Fetches a texture from the shared pool, or returns null if the implementation doesn't contain a pool.
 Texture getTexture(GlContext ctx)
          Returns the texture corresponding to this configuration.
abstract  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 getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 void getUpdateResources(HashSet<String> paths)
          Adds the implementation's update resources to the provided set.
 void invalidate()
          Invalidates any cached data.
abstract  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.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextureConfig.Implementation

public TextureConfig.Implementation()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the implementation's update references to the provided set.


getUpdateResources

public void getUpdateResources(HashSet<String> paths)
Adds the implementation's update resources to the provided set.


isSupported

public abstract boolean isSupported(GlContext ctx,
                                    boolean fallback)
Determines whether this configuration is supported by the hardware.


getTexture

public Texture getTexture(GlContext ctx)
Returns the texture corresponding to this configuration.


getTexture

public abstract 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.


getFromPool

public Texture getFromPool(GlContext ctx)
Fetches a texture from the shared pool, or returns null if the implementation doesn't contain a pool.


returnToPool

public void returnToPool(GlContext ctx,
                         Texture texture)
Returns a texture to the shared pool.


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.