|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loaders.texture.TextureCreator
public class TextureCreator
The TextureCreator is capable of creating (empty) Textures.
| Nested Class Summary | |
|---|---|
static class |
TextureCreator.TextMetrics
|
| Field Summary | |
|---|---|
static int |
TEXT_ALIGNMENT_HORIZONTAL_CENTER
|
static int |
TEXT_ALIGNMENT_HORIZONTAL_LEFT
|
static int |
TEXT_ALIGNMENT_HORIZONTAL_RIGHT
|
| Constructor Summary | |
|---|---|
TextureCreator()
|
|
| Method Summary | |
|---|---|
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
Texture.MipmapMode mipmapMode)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
Texture.MipmapMode mipmapMode,
int width,
int height)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode,
int width,
int height)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
Texture.MipmapMode mipmapMode)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
Texture.MipmapMode mipmapMode,
int width,
int height)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode,
boolean allowStreching)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode,
int width,
int height)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode,
int width,
int height,
Texture2D tex)
Creates a Texture from the given BufferedImage. |
static Texture2D |
createTexture(java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int horizontalAlignment)
Creates a new transparent Texture with a String drawn on it. |
static Texture2D |
createTexture(java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int horizontalAlignment,
boolean paddSizetoPower2)
Creates a new transparent Texture with a String drawn on it. |
static Texture2D |
createTexture(org.jagatoo.opengl.enums.TextureFormat format,
int width,
int height)
Creates a new Texture2D with the given color. |
static Texture2D |
createTexture(org.jagatoo.opengl.enums.TextureFormat format,
int width,
int height,
org.openmali.vecmath2.Colorf color)
Creates a new Texture2D with the given color. |
static TextureCreator |
getInstance()
Deprecated. this class has static method only now! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TEXT_ALIGNMENT_HORIZONTAL_LEFT
public static final int TEXT_ALIGNMENT_HORIZONTAL_CENTER
public static final int TEXT_ALIGNMENT_HORIZONTAL_RIGHT
| Constructor Detail |
|---|
public TextureCreator()
| Method Detail |
|---|
@Deprecated public static TextureCreator getInstance()
public static Texture2D createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode,
int width,
int height,
Texture2D tex)
img - The BufferedImage which should be converted.format - The desired Texture format.mipmapMode - Should the texture contain mipmaps ?width - The desired texture width.height - The desired texture height.
public static Texture2D createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode,
int width,
int height)
img - The BufferedImage which should be converted.format - The desired Texture format.mipmapMode - Should the texture contain mipmaps ?width - The desired texture width.height - The desired texture height.
public static Texture2D createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode,
boolean allowStreching)
img - The BufferedImage which should be converted.flipVertically - flip the image vertically or notformat - The desired Texture format.mipmapMode - Should the texture contain mipmaps ?allowStreching -
public static Texture2D createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode)
img - The BufferedImage which should be converted.flipVertically - flip the image vertically or notformat - The desired Texture format.mipmapMode - Should the texture contain mipmaps ?
public static Texture2D createTexture(java.awt.image.BufferedImage img,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode)
img - The BufferedImage which should be converted.format - The desired Texture format.mipmapMode - Should the texture contain mipmaps ?
public static Texture2D createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
Texture.MipmapMode mipmapMode)
img - The BufferedImage which should be converted.flipVertically - flip the image vertically or notmipmapMode - Should the texture contain mipmaps ?
public static Texture2D createTexture(java.awt.image.BufferedImage img,
Texture.MipmapMode mipmapMode)
img - The BufferedImage which should be converted.mipmapMode - Should the texture contain mipmaps ?
public static Texture2D createTexture(java.awt.image.BufferedImage img,
org.jagatoo.opengl.enums.TextureFormat format,
Texture.MipmapMode mipmapMode,
int width,
int height)
img - The BufferedImage which should be converted.format - The desired Texture format.mipmapMode - Should the texture contain mipmaps ?width - The desired texture width.height - The desired texture height.
public static Texture2D createTexture(java.awt.image.BufferedImage img,
TextureLoader.FlipMode flipVertically,
Texture.MipmapMode mipmapMode,
int width,
int height)
img - The BufferedImage which should be converted.flipVertically - flip the image vertically or notmipmapMode - Should the texture contain mipmaps ?width - The desired texture width.height - The desired texture height.
public static Texture2D createTexture(java.awt.image.BufferedImage img,
Texture.MipmapMode mipmapMode,
int width,
int height)
img - The BufferedImage which should be converted.mipmapMode - Should the texture contain mipmaps ?width - The desired texture width.height - The desired texture height.
public static Texture2D createTexture(org.jagatoo.opengl.enums.TextureFormat format,
int width,
int height,
org.openmali.vecmath2.Colorf color)
format - width - height - color -
public static Texture2D createTexture(org.jagatoo.opengl.enums.TextureFormat format,
int width,
int height)
format - width - height -
public static Texture2D createTexture(java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int horizontalAlignment,
boolean paddSizetoPower2)
text - the text to draw on the Texture (inline '\n' for line wrapping).color - text color (null for transparent)font - the font to usehorizontalAlignment - horizontal alignment indicatorpaddSizetoPower2 - if true, the Texture's size is padded up to the next power of 2 to avoid resizings
TEXT_ALIGNMENT_HORIZONTAL_LEFT,
TEXT_ALIGNMENT_HORIZONTAL_CENTER,
TEXT_ALIGNMENT_HORIZONTAL_RIGHT
public static Texture2D createTexture(java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int horizontalAlignment)
text - the text to draw on the Texture (inline '\n' for line wrapping).color - text color (null for transparent)font - the font to usehorizontalAlignment - horizontal alignment indicator
TEXT_ALIGNMENT_HORIZONTAL_LEFT,
TEXT_ALIGNMENT_HORIZONTAL_CENTER,
TEXT_ALIGNMENT_HORIZONTAL_RIGHT
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||