Lines Matching refs:texture
36 import com.jme3.texture.Image;
37 import com.jme3.texture.Texture.MagFilter;
38 import com.jme3.texture.Texture.MinFilter;
39 import com.jme3.texture.Texture2D;
44 private Texture2D texture;
56 texture = (Texture2D) display.getAssetManager().loadTexture(key);
57 texture.setMagFilter(linear ? MagFilter.Bilinear : MagFilter.Nearest);
58 texture.setMinFilter(linear ? MinFilter.BilinearNoMipMaps : MinFilter.NearestNoMipMaps);
59 image = texture.getImage();
65 public RenderImageJme(Texture2D texture){
66 if (texture.getImage() == null)
67 throw new IllegalArgumentException("texture.getImage() cannot be null");
69 this.texture = texture;
70 this.image = texture.getImage();
76 return texture;