Home | History | Annotate | Download | only in texture

Lines Matching defs:Texture

33 package com.jme3.texture;
46 * <code>Texture</code> defines a texture object to be used to display an
48 * <code>Image</code> class. All attributes required for texture mapping are
55 * @see com.jme3.texture.Image
58 * @version $Id: Texture.java 4131 2009-03-19 20:15:28Z blaine.dev $
60 public abstract class Texture implements Asset, Savable, Cloneable {
65 * Two dimensional texture (default). A rectangle.
75 * Three dimensional texture. (A cube)
98 * sampled (at texture level 0), and their colors are combined by
107 * from texture level 0, the closest mipmap level is chosen based on
116 * texture level 0, the closest mipmap level is chosen based on
125 * samples from texture level 0, a sample is chosen from each of the
136 * texture lookup and bilinear filtering on the two closest mipmap
139 * texture quality as distance from the viewer increases, rather than a
162 * center for the pixel color. While fast, this results in texture
195 * mirrors and clamps the texture coordinate, where mirroring and
199 * is the size of the one-, two-, or three-dimensional texture image in
206 * is the size of the texture in the direction of clamping. Falls back
212 * texture coordinate, where mirroring and clamping to border a value f
215 * where N is the size of the one-, two-, or three-dimensional texture
222 * is the size of the texture in the direction of clamping. Falls back
227 * mirrors and clamps to edge the texture coordinate, where mirroring
230 * where N is the size of the one-, two-, or three-dimensional texture
253 * If this texture is a depth texture (the format is Depth*) then
254 * this value may be used to compare the texture depth to the R texture
265 * Compares the 3rd texture coordinate R to the value
266 * in this depth texture. If R <= texture value then result is 1.0,
268 * the implementation may sample the texture multiple times to provide
274 * Compares the 3rd texture coordinate R to the value
275 * in this depth texture. If R >= texture value then result is 1.0,
277 * the implementation may sample the texture multiple times to provide
284 * The name of the texture (if loaded as a resource).
289 * The image stored in the texture
294 * The texture key allows to reload a texture from a file
308 public Texture clone(){
310 return (Texture) super.clone();
317 * Constructor instantiates a new <code>Texture</code> object with default
320 public Texture() {
324 * @return the MinificationFilterMode of this texture.
332 * the new MinificationFilterMode for this texture.
345 * @return the MagnificationFilterMode of this texture.
353 * the new MagnificationFilter for this texture.
366 * @return The ShadowCompareMode of this texture.
375 * the new ShadowCompareMode for this texture.
389 * <code>setImage</code> sets the image object that defines the texture.
392 * the image that defines the texture.
399 * @param key The texture key that was used to load this texture
411 * texture. If no image data has been set, this will return null.
413 * @return the image data that makes up the texture.
420 * <code>setWrap</code> sets the wrap mode of this texture for a
424 * the texture axis to define a wrapmode on.
426 * the wrap mode for the given axis of the texture.
428 * if axis or mode are null or invalid for this type of texture
433 * <code>setWrap</code> sets the wrap mode of this texture for all axis.
436 * the wrap mode for the given axis of the texture.
438 * if mode is null or invalid for this type of texture
444 * on this texture.
448 * @return the wrap mode of the texture.
450 * if axis is null or invalid for this type of texture
465 * @return the anisotropic filtering level for this texture. Default value
474 texture.
504 final Texture other = (Texture) obj;
536 // public abstract Texture createSimpleClone();
539 /** Retrieve a basic clone of this Texture (ie, clone everything but the
542 * @return Texture
544 public Texture createSimpleClone(Texture rVal) {
561 public abstract Texture createSimpleClone();
568 // no texture key is set, try to save image instead then
586 // load texture from key, if available
588 // key is available, so try the texture from there.
590 Texture loadedTex = e.getAssetManager().loadTexture(key);
593 Logger.getLogger(Texture.class.getName()).log(Level.SEVERE, "Cannot locate texture {0}", key);
597 // no key is set on the texture. Attempt to load an embedded image
600 // TODO: what to print out here? the texture has no key or data, there's no useful information ..
601 // assume texture.name is set even though the key is null
602 Logger.getLogger(Texture.class.getName()).log(Level.SEVERE, "Cannot load embedded image {0}", toString() );