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

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.ImageFile
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
TextureConfig.OriginalCubeMap

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

Creates a texture from the specified image.


Field Summary
 ColorizationConfig[] colorizations
          The colorizations to apply to the texture.
 int divisionsS
          The number of divisions in the S direction.
 int divisionsT
          The number of divisions in the T direction.
 String file
          The image resource from which to load the texture.
 boolean premultiply
          Whether or not the image alpha should be premultiplied.
 
Constructor Summary
TextureConfig.OriginalCubeMap.ImageFile()
           
 
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

file

@Editable(editor="resource",
          nullable=true)
@FileConstraints(description="m.image_files_desc",
                 extensions={".png",".jpg",".dds"},
                 directory="image_dir")
public String file
The image resource from which to load the texture.


colorizations

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


premultiply

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


divisionsS

@Editable(min=1.0,
          max=6.0,
          hgroup="d")
public int divisionsS
The number of divisions in the S direction.


divisionsT

@Editable(min=1.0,
          max=6.0,
          hgroup="d")
public int divisionsT
The number of divisions in the T direction.

Constructor Detail

TextureConfig.OriginalCubeMap.ImageFile

public TextureConfig.OriginalCubeMap.ImageFile()
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.