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

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.Original
              extended by com.threerings.opengl.renderer.config.TextureConfig.Original2D
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
TextureConfig.OriginalRectangle
Enclosing class:
TextureConfig

public static class TextureConfig.Original2D
extends TextureConfig.Original

A 2D texture.


Nested Class Summary
static class TextureConfig.Original2D.Blank
          Creates a blank texture.
static class TextureConfig.Original2D.Contents
          The initial contents of the texture.
static class TextureConfig.Original2D.ImageFile
          Creates a texture from the specified image.
 
Field Summary
 TextureConfig.Original2D.Contents contents
          The initial contents of the texture.
 
Fields inherited from class com.threerings.opengl.renderer.config.TextureConfig.Original
_pool, _texture, border, borderColor, compareFunc, compareMode, depthMode, format, identity, magFilter, maxAnisotropy, minFilter, wrapR, wrapS, wrapT
 
Constructor Summary
TextureConfig.Original2D()
           
 
Method Summary
protected  Texture createTexture(GlContext ctx)
          Creates the texture for this configuration.
 void getUpdateResources(HashSet<String> paths)
          Adds the implementation's update resources to the provided set.
 
Methods inherited from class com.threerings.opengl.renderer.config.TextureConfig.Original
configureTexture, getFromPool, getPool, getTexture, invalidate, isSupported, returnToPool
 
Methods inherited from class com.threerings.opengl.renderer.config.TextureConfig.Implementation
getTexture, getUpdateReferences
 
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

contents

@Editable(category="data")
public TextureConfig.Original2D.Contents contents
The initial contents of the texture.

Constructor Detail

TextureConfig.Original2D

public TextureConfig.Original2D()
Method Detail

getUpdateResources

public void getUpdateResources(HashSet<String> paths)
Description copied from class: TextureConfig.Implementation
Adds the implementation's update resources to the provided set.

Overrides:
getUpdateResources in class TextureConfig.Implementation

createTexture

protected Texture createTexture(GlContext ctx)
Description copied from class: TextureConfig.Original
Creates the texture for this configuration.

Specified by:
createTexture in class TextureConfig.Original