/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/ |
FileTextureArrayData.java | 22 import com.badlogic.gdx.graphics.Pixmap; 32 private Pixmap.Format format; 36 public FileTextureArrayData (Pixmap.Format format, boolean useMipMaps, FileHandle[] files) { 76 Pixmap pixmap = texData.consumePixmap(); local 78 if (texData.getFormat() != pixmap.getFormat()) { 79 Pixmap temp = new Pixmap(pixmap.getWidth(), pixmap.getHeight(), texData.getFormat()) [all...] |
PixmapTextureData.java | 19 import com.badlogic.gdx.graphics.Pixmap;
20 import com.badlogic.gdx.graphics.Pixmap.Format;
25 final Pixmap pixmap;
field in class:PixmapTextureData 31 public PixmapTextureData (Pixmap pixmap, Format format, boolean useMipMaps, boolean disposePixmap) {
32 this(pixmap, format, useMipMaps, disposePixmap, false);
35 public PixmapTextureData (Pixmap pixmap, Format format, boolean useMipMaps, boolean disposePixmap, boolean managed) {
36 this.pixmap = pixmap; [all...] |
FileTextureData.java | 21 import com.badlogic.gdx.graphics.Pixmap;
22 import com.badlogic.gdx.graphics.Pixmap.Format;
35 Pixmap pixmap;
field in class:FileTextureData 39 public FileTextureData (FileHandle file, Pixmap preloadedPixmap, Format format, boolean useMipMaps) {
41 this.pixmap = preloadedPixmap;
44 if (pixmap != null) {
45 pixmap = ensurePot(pixmap);
46 width = pixmap.getWidth(); 92 Pixmap pixmap = this.pixmap; local [all...] |
FacedCubemapData.java | 11 import com.badlogic.gdx.graphics.Pixmap;
12 import com.badlogic.gdx.graphics.Pixmap.Blending;
13 import com.badlogic.gdx.graphics.Pixmap.Format;
49 /** Construct a Cubemap with the specified {@link Pixmap}s for the sides, does not generate mipmaps. */
50 public FacedCubemapData (Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ,
51 Pixmap negativeZ) { 163 Pixmap pixmap = data[i].consumePixmap(); local [all...] |
FrameBuffer.java | 19 import com.badlogic.gdx.graphics.Pixmap;
44 public FrameBuffer (Pixmap.Format format, int width, int height, boolean hasDepth) {
56 public FrameBuffer (Pixmap.Format format, int width, int height, boolean hasDepth, boolean hasStencil) {
62 int glFormat = Pixmap.Format.toGlFormat(format);
63 int glType = Pixmap.Format.toGlType(format);
|
MipMapGenerator.java | 22 import com.badlogic.gdx.graphics.Pixmap;
23 import com.badlogic.gdx.graphics.Pixmap.Blending;
39 /** Sets the image data of the {@link Texture} based on the {@link Pixmap}. The texture must be bound for this to work. If
40 * <code>disposePixmap</code> is true, the pixmap will be disposed at the end of the method.
41 * @param pixmap the Pixmap */
42 public static void generateMipMap (Pixmap pixmap, int textureWidth, int textureHeight) {
43 generateMipMap(GL20.GL_TEXTURE_2D, pixmap, textureWidth, textureHeight);
46 /** Sets the image data of the {@link Texture} based on the {@link Pixmap}. The texture must be bound for this to work. If [all...] |
FrameBufferCubemap.java | 22 import com.badlogic.gdx.graphics.Pixmap; 74 public FrameBufferCubemap (Pixmap.Format format, int width, int height, boolean hasDepth) { 87 public FrameBufferCubemap (Pixmap.Format format, int width, int height, boolean hasDepth, boolean hasStencil) { 93 int glFormat = Pixmap.Format.toGlFormat(format); 94 int glType = Pixmap.Format.toGlType(format);
|
/external/libgdx/gdx/src/com/badlogic/gdx/assets/loaders/ |
PixmapLoader.java | 23 import com.badlogic.gdx.graphics.Pixmap;
26 /** {@link AssetLoader} for {@link Pixmap} instances. The Pixmap is loaded asynchronously.
28 public class PixmapLoader extends AsynchronousAssetLoader<Pixmap, PixmapLoader.PixmapParameter> {
33 Pixmap pixmap;
field in class:PixmapLoader 37 pixmap = null;
38 pixmap = new Pixmap(file);
42 public Pixmap loadSync (AssetManager manager, String fileName, FileHandle file, PixmapParameter parameter) { 43 Pixmap pixmap = this.pixmap; local [all...] |
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/graphics/glutils/ |
FileTextureData.java | 21 import com.badlogic.gdx.graphics.Pixmap;
22 import com.badlogic.gdx.graphics.Pixmap.Format;
34 Pixmap pixmap;
field in class:FileTextureData 38 public FileTextureData (FileHandle file, Pixmap preloadedPixmap, Format format, boolean useMipMaps) {
40 this.pixmap = preloadedPixmap;
43 if (pixmap != null) {
44 pixmap = ensurePot(pixmap);
45 width = pixmap.getWidth(); 88 Pixmap pixmap = this.pixmap; local [all...] |
ETC1TextureData.java | 20 import com.badlogic.gdx.graphics.Pixmap; 21 import com.badlogic.gdx.graphics.Pixmap.Format; 50 public Pixmap consumePixmap () {
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/graphics/ |
TextureData.java | 4 import com.badlogic.gdx.graphics.Pixmap.Format; 8 /** Used by a {@link Texture} to load the pixel data. A TextureData can either return a {@link Pixmap} or upload the pixel data 26 Pixmap, Custom 39 /** Returns the {@link Pixmap} for upload by Texture. A call to {@link #prepare()} must precede a call to this method. Any 42 * @return the pixmap. */ 43 public Pixmap consumePixmap (); 45 /** @return whether the caller of {@link #consumePixmap()} should dispose the Pixmap returned by {@link #consumePixmap()} */ 67 /** Provides static method to instantiate the right implementation (Pixmap, ETC1, KTX). 77 return new FileTextureData(file, new Pixmap(file), format, useMipMaps);
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
CursorTest.java | 24 import com.badlogic.gdx.graphics.Pixmap; 25 import com.badlogic.gdx.graphics.Pixmap.Format; 42 Pixmap pixmap1 = new Pixmap(Gdx.files.internal("data/bobargb8888-32x32.png")); 45 Pixmap pixmap2 = new Pixmap(32, 32, Format.RGBA8888); 50 Pixmap pixmap3 = new Pixmap(32, 32, Format.RGBA8888);
|
PixmapTest.java | 21 import com.badlogic.gdx.graphics.Pixmap;
28 Pixmap pixmap;
field in class:PixmapTest 34 // Create an empty dynamic pixmap
35 pixmap = new Pixmap(800, 480, Pixmap.Format.RGBA8888); // Pixmap.Format.RGBA8888);
37 // Create a texture to contain the pixmap
38 texture = new Texture(1024, 1024, Pixmap.Format.RGBA8888); // Pixmap.Format.RGBA8888); 59 Pixmap pixmap = new Pixmap(512, 1024, Pixmap.Format.RGBA8888); local [all...] |
PixmapBlendingTest.java | 23 import com.badlogic.gdx.graphics.Pixmap;
34 private Pixmap pixD, pixS1, pixS2;
48 pixS1 = new Pixmap(Gdx.files.getFileHandle("data/test4.png", Files.FileType.Internal));
49 pixS2 = new Pixmap(Gdx.files.getFileHandle("data/test3.png", Files.FileType.Internal));
50 pixD = new Pixmap(64, 128, Pixmap.Format.RGBA8888);
|
PixelPerfectTest.java | 23 import com.badlogic.gdx.graphics.Pixmap;
35 Pixmap pixmap = new Pixmap(16, 16, Pixmap.Format.RGBA8888);
local 36 pixmap.setColor(Color.BLUE);
37 pixmap.fill();
38 pixmap.setColor(Color.RED);
39 pixmap.drawLine(0, 0, 15, 15);
40 pixmap.drawLine(0, 15, 15, 0); [all...] |
AlphaTest.java | 21 import com.badlogic.gdx.graphics.Pixmap;
22 import com.badlogic.gdx.graphics.Pixmap.Format;
35 Pixmap pixmap = new Pixmap(256, 256, Format.RGBA8888);
local 36 pixmap.setColor(1, 0, 0, 1);
37 pixmap.fill();
39 texture = new Texture(pixmap, false);
42 pixmap.dispose();
52 Pixmap pixmap = ScreenUtils.getFrameBufferPixmap(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight( (…) local [all...] |
PixmapPackerTest.java | 25 import com.badlogic.gdx.graphics.Pixmap;
26 import com.badlogic.gdx.graphics.Pixmap.Format;
56 Pixmap pixmap1 = new Pixmap(Gdx.files.internal("data/badlogic.jpg"));
57 Pixmap pixmap2 = new Pixmap(Gdx.files.internal("data/particle-fire.png"));
58 Pixmap pixmap3 = new Pixmap(Gdx.files.internal("data/isotile.png"));
|
Bresenham2Test.java | 22 import com.badlogic.gdx.graphics.Pixmap;
24 import com.badlogic.gdx.graphics.Pixmap.Format;
37 Pixmap pixmap = new Pixmap(512, 512, Format.RGBA8888);
local 38 pixmap.setColor(Color.WHITE);
42 pixmap.drawPixel(point.x, point.y);
44 pixmap.drawPixel(point.x, point.y);
46 pixmap.drawPixel(point.x, point.y);
48 pixmap.drawPixel(point.x, point.y); [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/etc1/ |
ETC1Compressor.java | 23 import com.badlogic.gdx.graphics.Pixmap;
24 import com.badlogic.gdx.graphics.Pixmap.Format;
42 Pixmap pixmap = new Pixmap(new FileHandle(entry.inputFile));
local 43 if (pixmap.getFormat() != Format.RGB888 && pixmap.getFormat() != Format.RGB565) {
44 System.out.println("Converting from " + pixmap.getFormat() + " to RGB888!");
45 Pixmap tmp = new Pixmap(pixmap.getWidth(), pixmap.getHeight(), Format.RGB888); [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
ScreenUtils.java | 23 import com.badlogic.gdx.graphics.Pixmap;
24 import com.badlogic.gdx.graphics.Pixmap.Format;
59 final Pixmap pixmap = getFrameBufferPixmap(x, y, w, h);
local 60 final Pixmap potPixmap = new Pixmap(potW, potH, Format.RGBA8888);
61 potPixmap.drawPixmap(pixmap, 0, 0);
65 pixmap.dispose();
70 public static Pixmap getFrameBufferPixmap (int x, int y, int w, int h) {
73 final Pixmap pixmap = new Pixmap(w, h, Format.RGBA8888); local [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
CubemapData.java | 4 import com.badlogic.gdx.graphics.Pixmap.Format;
|
TextureData.java | 20 import com.badlogic.gdx.graphics.Pixmap.Format;
26 /** Used by a {@link Texture} to load the pixel data. A TextureData can either return a {@link Pixmap} or upload the pixel data
44 Pixmap, Custom
57 /** Returns the {@link Pixmap} for upload by Texture. A call to {@link #prepare()} must precede a call to this method. Any
60 * @return the pixmap. */
61 public Pixmap consumePixmap ();
63 /** @return whether the caller of {@link #consumePixmap()} should dispose the Pixmap returned by {@link #consumePixmap()} */
85 /** Provides static method to instantiate the right implementation (Pixmap, ETC1, KTX).
98 return new FileTextureData(file, new Pixmap(file), format, useMipMaps);
|
Cubemap.java | 29 import com.badlogic.gdx.graphics.Pixmap.Format;
114 /** Construct a Cubemap with the specified {@link Pixmap}s for the sides, does not generate mipmaps. */
115 public Cubemap (Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ) {
119 /** Construct a Cubemap with the specified {@link Pixmap}s for the sides, optionally generating mipmaps. */
120 public Cubemap (Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negative (…) [all...] |
TextureArrayData.java | 67 public static TextureArrayData loadFromFiles (Pixmap.Format format, boolean useMipMaps, FileHandle... files) {
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/ |
ScreenUtils.java | 24 import com.badlogic.gdx.graphics.Pixmap;
25 import com.badlogic.gdx.graphics.Pixmap.Format;
62 final Pixmap pixmap = getFrameBufferPixmap(x, y, w, h);
local 63 final Pixmap potPixmap = new Pixmap(potW, potH, Format.RGBA8888);
64 potPixmap.drawPixmap(pixmap, 0, 0);
68 pixmap.dispose();
73 public static Pixmap getFrameBufferPixmap (int x, int y, int w, int h) {
76 final Pixmap pixmap = new Pixmap(w, h, Format.RGBA8888); local [all...] |