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

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

public static class TextureConfig.Animated
extends TextureConfig.Implementation

Switches between subtextures according to an expression.


Field Summary
 FloatExpression frame
          The expression that determines the frame index.
 TextureConfig.Frame[] frames
          The list of frames.
 
Constructor Summary
TextureConfig.Animated()
           
 
Method Summary
 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 invalidate()
          Invalidates any cached data.
 boolean isSupported(GlContext ctx, boolean fallback)
          Determines whether this configuration is supported by the hardware.
 
Methods inherited from class com.threerings.opengl.renderer.config.TextureConfig.Implementation
getFromPool, getTexture, getUpdateResources, returnToPool
 
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
 

Field Detail

frame

@Editable
public FloatExpression frame
The expression that determines the frame index.


frames

@Editable
public TextureConfig.Frame[] frames
The list of frames.

Constructor Detail

TextureConfig.Animated

public TextureConfig.Animated()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: TextureConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class TextureConfig.Implementation

isSupported

public boolean isSupported(GlContext ctx,
                           boolean fallback)
Description copied from class: TextureConfig.Implementation
Determines whether this configuration is supported by the hardware.

Specified by:
isSupported in class TextureConfig.Implementation

getTexture

public Texture getTexture(GlContext ctx,
                          TextureState state,
                          TextureUnit unit,
                          Scope scope,
                          List<Dependency.Adder> adders,
                          List<Updater> updaters)
Description copied from class: TextureConfig.Implementation
Returns the (possibly dynamic) texture corresponding to this configuration.

Specified by:
getTexture in class TextureConfig.Implementation

invalidate

public void invalidate()
Description copied from class: TextureConfig.Implementation
Invalidates any cached data.

Overrides:
invalidate in class TextureConfig.Implementation


Copyright © 2011. All Rights Reserved.