com.threerings.opengl.renderer.config
Class TextureConfig.OriginalCubeMap.ImageFiles

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

public static class TextureConfig.OriginalCubeMap.ImageFiles
extends TextureConfig.OriginalCubeMap.Contents

Creates a texture from the specified images.


Field Summary
 ColorizationConfig[] colorizations
          The colorizations to apply to the textures.
 TextureConfig.OriginalCubeMap.FileTrio negative
          The negative x, y, and z face files.
 TextureConfig.OriginalCubeMap.FileTrio positive
          The positive x, y, and z face files.
 boolean premultiply
          Whether or not the image alpha should be premultiplied.
 
Constructor Summary
TextureConfig.OriginalCubeMap.ImageFiles()
           
 
Method Summary
 void getUpdateResources(HashSet<String> paths)
          Adds the contents' update resources to the provided set.
 void load(GlContext ctx, TextureCubeMap texture, TextureConfig.Format format, boolean border, boolean mipmap)
          Loads the texture with the contents.
 
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

negative

@Editable
public TextureConfig.OriginalCubeMap.FileTrio negative
The negative x, y, and z face files.


positive

@Editable
public TextureConfig.OriginalCubeMap.FileTrio positive
The positive x, y, and z face files.


colorizations

@Editable
public ColorizationConfig[] colorizations
The colorizations to apply to the textures.


premultiply

@Editable
public boolean premultiply
Whether or not the image alpha should be premultiplied.

Constructor Detail

TextureConfig.OriginalCubeMap.ImageFiles

public TextureConfig.OriginalCubeMap.ImageFiles()
Method Detail

getUpdateResources

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

Overrides:
getUpdateResources in class TextureConfig.OriginalCubeMap.Contents

load

public void load(GlContext ctx,
                 TextureCubeMap texture,
                 TextureConfig.Format format,
                 boolean border,
                 boolean mipmap)
Description copied from class: TextureConfig.OriginalCubeMap.Contents
Loads the texture with the contents.

Specified by:
load in class TextureConfig.OriginalCubeMap.Contents


Copyright © 2011. All Rights Reserved.