|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.renderer.config.TextureConfig.Original2D.Contents
com.threerings.opengl.renderer.config.TextureConfig.Original2D.ImageFile
public static class TextureConfig.Original2D.ImageFile
Creates a texture from the specified image.
| Field Summary | |
|---|---|
ColorizationConfig[] |
colorizations
The colorizations to apply to the texture. |
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.Original2D.ImageFile()
|
|
| Method Summary | |
|---|---|
void |
getUpdateResources(HashSet<String> paths)
Adds the contents' update resources to the provided set. |
void |
load(GlContext ctx,
Texture2D 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 |
|---|
@Editable(editor="resource",
nullable=true)
@FileConstraints(description="m.image_files_desc",
extensions={".png",".jpg",".dds"},
directory="image_dir")
public String file
@Editable public ColorizationConfig[] colorizations
@Editable public boolean premultiply
| Constructor Detail |
|---|
public TextureConfig.Original2D.ImageFile()
| Method Detail |
|---|
public void getUpdateResources(HashSet<String> paths)
TextureConfig.Original2D.Contents
getUpdateResources in class TextureConfig.Original2D.Contents
public void load(GlContext ctx,
Texture2D texture,
TextureConfig.Format format,
boolean border,
boolean mipmap)
TextureConfig.Original2D.Contents
load in class TextureConfig.Original2D.Contents
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||