|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.util.TextureManager
TextureManager provides static methods for building a
Texture object. Typically, the information supplied is the
filename and the texture properties.
| Method Summary | |
static void |
clearCache()
|
static boolean |
hasAlpha(java.awt.Image image)
hasAlpha returns true if the specified image has
transparent pixels |
static Image |
loadImage(java.awt.Image image,
boolean flipImage)
loadImage sets the image data. |
static Texture |
loadTexture(java.awt.Image image,
int minFilter,
int magFilter,
boolean flipped)
|
static Texture |
loadTexture(java.awt.Image image,
int minFilter,
int magFilter,
float anisoLevel,
boolean flipped)
|
static Texture |
loadTexture(java.lang.String file,
int minFilter,
int magFilter)
loadTexture loads a new texture defined by the parameter
string. |
static Texture |
loadTexture(java.lang.String file,
int minFilter,
int magFilter,
float anisoLevel,
boolean flipped)
loadTexture loads a new texture defined by the parameter
string. |
static Texture |
loadTexture(java.lang.String file,
int minFilter,
int magFilter,
int imageType,
float anisoLevel,
boolean flipped)
|
static Texture |
loadTexture(java.net.URL file,
int minFilter,
int magFilter)
loadTexture loads a new texture defined by the parameter
url. |
static Texture |
loadTexture(java.net.URL file,
int minFilter,
int magFilter,
float anisoLevel,
boolean flipped)
|
static Texture |
loadTexture(java.net.URL file,
int minFilter,
int magFilter,
int imageType,
float anisoLevel,
boolean flipped)
loadTexture loads a new texture defined by the parameter
url. |
static boolean |
releaseTexture(Texture texture)
|
static boolean |
releaseTexture(TextureKey tKey)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Texture loadTexture(java.lang.String file,
int minFilter,
int magFilter)
loadTexture loads a new texture defined by the parameter
string. Filter parameters are used to define the filtering of the
texture. If there is an error loading the file, null is returned.
file - the filename of the texture image.minFilter - the filter for the near values.magFilter - the filter for the far values.
public static Texture loadTexture(java.lang.String file,
int minFilter,
int magFilter,
float anisoLevel,
boolean flipped)
loadTexture loads a new texture defined by the parameter
string. Filter parameters are used to define the filtering of the
texture. If there is an error loading the file, null is returned.
file - the filename of the texture image.minFilter - the filter for the near values.magFilter - the filter for the far values.flipped - If true, the images Y values are flipped.
public static Texture loadTexture(java.lang.String file,
int minFilter,
int magFilter,
int imageType,
float anisoLevel,
boolean flipped)
public static Texture loadTexture(java.net.URL file,
int minFilter,
int magFilter)
loadTexture loads a new texture defined by the parameter
url. Filter parameters are used to define the filtering of the texture.
If there is an error loading the file, null is returned.
file - the url of the texture image.minFilter - the filter for the near values.magFilter - the filter for the far values.
public static Texture loadTexture(java.net.URL file,
int minFilter,
int magFilter,
float anisoLevel,
boolean flipped)
public static Texture loadTexture(java.net.URL file,
int minFilter,
int magFilter,
int imageType,
float anisoLevel,
boolean flipped)
loadTexture loads a new texture defined by the parameter
url. Filter parameters are used to define the filtering of the texture.
If there is an error loading the file, null is returned.
file - the url of the texture image.minFilter - the filter for the near values.magFilter - the filter for the far values.imageType - the image type to use. if -1, the type is determined by jME.
If S3TC/DXT1[A] is available we use that. if -2, the type is
determined by jME without using S3TC, even if available.
See com.jme.image.Image for possible types.flipped - If true, the images Y values are flipped.
public static Texture loadTexture(java.awt.Image image,
int minFilter,
int magFilter,
boolean flipped)
public static Texture loadTexture(java.awt.Image image,
int minFilter,
int magFilter,
float anisoLevel,
boolean flipped)
public static Image loadImage(java.awt.Image image,
boolean flipImage)
loadImage sets the image data.
image - The image data.flipImage - if true will flip the image's y values.
public static boolean hasAlpha(java.awt.Image image)
hasAlpha returns true if the specified image has
transparent pixels
image - Image to check
public static boolean releaseTexture(Texture texture)
public static boolean releaseTexture(TextureKey tKey)
public static void clearCache()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||