HomeSort by relevance Sort by last modified time
    Searched defs:pixmap (Results 26 - 50 of 72) sorted by null

12 3

  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
SpriteBatchShaderTest.java 23 import com.badlogic.gdx.graphics.Pixmap;
24 import com.badlogic.gdx.graphics.Pixmap.Format;
100 Pixmap pixmap = new Pixmap(32, 32, Format.RGB565); local
101 pixmap.setColor(1, 1, 0, 0.7f);
102 pixmap.fill();
103 texture2 = new Texture(pixmap);
104 pixmap.dispose();
SpriteBatchTest.java 22 import com.badlogic.gdx.graphics.Pixmap;
23 import com.badlogic.gdx.graphics.Pixmap.Format;
179 Pixmap pixmap = new Pixmap(Gdx.files.internal("data/badlogicsmall.jpg")); local
182 texture.draw(pixmap, 0, 0);
183 pixmap.dispose();
185 pixmap = new Pixmap(32, 32, Format.RGBA8888);
186 pixmap.setColor(1, 1, 0, 0.5f);
    [all...]
SpriteCacheTest.java 23 import com.badlogic.gdx.graphics.Pixmap;
24 import com.badlogic.gdx.graphics.Pixmap.Format;
122 Pixmap pixmap = new Pixmap(32, 32, Format.RGBA8888); local
123 pixmap.setColor(1, 1, 0, 0.5f);
124 pixmap.fill();
125 texture2 = new Texture(pixmap);
126 pixmap.dispose();
PngTest.java 25 import com.badlogic.gdx.graphics.Pixmap;
53 Pixmap pixmap = ScreenUtils.getFrameBufferPixmap(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); local
55 PNG writer = new PNG((int)(pixmap.getWidth() * pixmap.getHeight() * 1.5f));
57 writer.write(file, pixmap);
58 writer.write(file, pixmap); // Write twice to make sure the object is reusable.
ViewportTest2.java 24 import com.badlogic.gdx.graphics.Pixmap;
25 import com.badlogic.gdx.graphics.Pixmap.Format;
54 Pixmap pixmap = new Pixmap(16, 16, Format.RGBA8888); local
55 pixmap.setColor(1, 1, 1, 1);
56 pixmap.fill();
57 texture = new Texture(pixmap);
Gdx2DTest.java 25 import com.badlogic.gdx.graphics.Pixmap.Format;
36 Texture textureFromPixmap (Gdx2DPixmap pixmap) {
37 Texture texture = new Texture(pixmap.getWidth(), pixmap.getHeight(), Format.RGB565);
39 Gdx.gl.glTexImage2D(GL20.GL_TEXTURE_2D, 0, pixmap.getGLInternalFormat(), pixmap.getWidth(), pixmap.getHeight(), 0,
40 pixmap.getGLFormat(), pixmap.getGLType(), pixmap.getPixels());
105 Gdx2DPixmap pixmap = new Gdx2DPixmap(64, 32, formats[i]); local
    [all...]
  /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/assets/loaders/
TextureLoader.java 23 import com.badlogic.gdx.graphics.Pixmap;
24 import com.badlogic.gdx.graphics.Pixmap.Format;
43 Pixmap pixmap = null; local
55 pixmap = new Pixmap(handle);
56 data = new FileTextureData(handle, pixmap, format, genMipMaps);
CubemapLoader.java 9 import com.badlogic.gdx.graphics.Pixmap;
10 import com.badlogic.gdx.graphics.Pixmap.Format;
38 Pixmap pixmap = null; local
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/
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...]
KTXTextureData.java 16 import com.badlogic.gdx.graphics.Pixmap;
17 import com.badlogic.gdx.graphics.Pixmap.Format;
251 Pixmap pixmap = ETC1.decodeImage(etcData, Format.RGB888); local
252 Gdx.gl.glTexImage2D(target + face, level, pixmap.getGLInternalFormat(), pixmap.getWidth(),
253 pixmap.getHeight(), 0, pixmap.getGLFormat(), pixmap.getGLType(), pixmap.getPixels());
    [all...]
ETC1.java 28 import com.badlogic.gdx.graphics.Pixmap;
29 import com.badlogic.gdx.graphics.Pixmap.Format;
149 * @param pixmap the {@link Pixmap}
151 public static ETC1Data encodeImage (Pixmap pixmap) {
152 int pixelSize = getPixelSize(pixmap.getFormat());
153 ByteBuffer compressedData = encodeImage(pixmap.getPixels(), 0, pixmap.getWidth(), pixmap.getHeight(), pixelSize);
190 Pixmap pixmap = new Pixmap(width, height, format); local
    [all...]
  /external/skia/tests/
TextureCompressionTest.cpp 57 SkAutoPixmapStorage pixmap; local
58 pixmap.alloc(SkImageInfo::MakeA8(kWidth, kHeight));
66 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt));
86 SkAutoPixmapStorage pixmap; local
87 pixmap.alloc(SkImageInfo::MakeN32Premul(kWidth, kHeight));
95 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt));
117 SkAutoPixmapStorage pixmap; local
118 pixmap.alloc(SkImageInfo::MakeA8(kWidth, kHeight));
122 uint8_t* pixels = reinterpret_cast<uint8_t*>(pixmap.writable_addr());
136 pixels += pixmap.rowBytes()
195 SkAutoPixmapStorage pixmap; local
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/
GLTexture.java 20 import com.badlogic.gdx.graphics.Pixmap.Blending;
198 Pixmap pixmap = data.consumePixmap(); local
200 if (data.getFormat() != pixmap.getFormat()) {
201 Pixmap tmp = new Pixmap(pixmap.getWidth(), pixmap.getHeight(), data.getFormat());
202 Blending blend = Pixmap.getBlending();
203 Pixmap.setBlending(Blending.None);
    [all...]
PixmapIO.java 33 import com.badlogic.gdx.graphics.Pixmap.Format;
43 /** Writes the {@link Pixmap} to the given file using a custom compression scheme. First three integers define the width, height
44 * and format, remaining bytes are zlib compressed pixels. To be able to load the Pixmap to a Texture, use ".cim" as the file
45 * suffix. Throws a GdxRuntimeException in case the Pixmap couldn't be written to the file.
46 * @param file the file to write the Pixmap to */
47 static public void writeCIM (FileHandle file, Pixmap pixmap) {
48 CIM.write(file, pixmap);
51 /** Reads the {@link Pixmap} from the given file, assuming the Pixmap was written with the
128 Pixmap pixmap = new Pixmap(width, height, format); local
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
Gdx2DPixmap.java 90 if (pixelPtr == null) throw new IOException("Error loading pixmap: " + getFailureReason());
113 if (pixelPtr == null) throw new IOException("Error loading pixmap: " + getFailureReason());
128 if (pixelPtr == null) throw new GdxRuntimeException("Error loading pixmap.");
145 Gdx2DPixmap pixmap = new Gdx2DPixmap(width, height, requestedFormat); local
146 pixmap.drawPixmap(this, 0, 0, 0, 0, width, height);
148 this.basePtr = pixmap.basePtr;
149 this.format = pixmap.format;
150 this.height = pixmap.height;
151 this.nativeData = pixmap.nativeData;
152 this.pixelPtr = pixmap.pixelPtr;
    [all...]
  /external/ImageMagick/coders/
dps.c 115 Pixmap
116 pixmap;
211 Create a pixmap the appropriate size for the image.
219 GetBlobFileHandle(image),visual_info->depth,pixels_per_point,&pixmap,
229 Rasterize the file into the pixmap.
231 status=XDPSImageFileIntoDrawable((DPSContext) NULL,screen,pixmap,
245 dps_image=XGetImage(display,pixmap,0,0,bits_per_pixel.width,
247 (void) XFreePixmap(display,pixmap);
470 GetBlobFileHandle(image),1,pixels_per_point,&pixmap,&bits_per_pixel,&page);
473 status=XDPSImageFileIntoDrawable((DPSContext) NULL,screen,pixmap,
114 pixmap; local
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/assets/loaders/
CubemapLoader.java 25 import com.badlogic.gdx.graphics.Pixmap;
26 import com.badlogic.gdx.graphics.Pixmap.Format;
59 Pixmap pixmap = null; local
TextureLoader.java 24 import com.badlogic.gdx.graphics.Pixmap;
25 import com.badlogic.gdx.graphics.Pixmap.Format;
58 Pixmap pixmap = null; local
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/voxel/
PerlinNoiseGenerator.java 20 import com.badlogic.gdx.graphics.Pixmap;
21 import com.badlogic.gdx.graphics.Pixmap.Format;
120 public static Pixmap generatePixmap (int width, int height, int min, int max, int octaveCount) {
122 Pixmap pixmap = new Pixmap(width, height, Format.RGBA8888); local
125 pixmap.getPixels().put(idx++, val);
126 pixmap.getPixels().put(idx++, val);
127 pixmap.getPixels().put(idx++, val);
128 pixmap.getPixels().put(idx++, (byte)255);
    [all...]
  /external/mesa3d/src/gallium/state_trackers/glx/xlib/
glx_usefont.c 116 * use only one reusable pixmap with the maximum dimensions.
117 * draw the entire font into a single pixmap (careful with
132 Pixmap pixmap; local
135 pixmap = XCreatePixmap(dpy, win, 8 * width, height, 1);
137 XFillRectangle(dpy, pixmap, gc, 0, 0, 8 * width, height);
143 XDrawString16(dpy, pixmap, gc, x0, y0, &char2b, 1);
145 image = XGetImage(dpy, pixmap, 0, 0, 8 * width, height, 1, XYPixmap);
156 XFreePixmap(dpy, pixmap);
214 Pixmap pixmap local
    [all...]
  /external/mesa3d/src/glx/apple/
apple_glx_drawable.h 71 GLXPbuffer xid; /* our pixmap */
108 struct apple_glx_pixmap pixmap; member in union:apple_glx_drawable::__anon19531
216 bool apple_glx_pixmap_create(Display * dpy, int screen, Pixmap pixmap,
220 bool apple_glx_pixmap_destroy(Display * dpy, Pixmap pixmap);
222 bool apple_glx_pixmap_query(GLXPixmap pixmap, int attribute,
  /external/mesa3d/src/glx/
glx_pbuffer.c 494 Pixmap pixmap; local
557 pixmap = XCreatePixmap(dpy, RootWindow(dpy, config->screen),
560 if (!CreateDRIDrawable(dpy, config, pixmap, id, attrib_list, i)) {
562 XFreePixmap(dpy, pixmap);
866 glXCreatePixmap(Display * dpy, GLXFBConfig config, Pixmap pixmap,
874 if (apple_glx_pixmap_create(dpy, modes->screen, pixmap, modes))
877 return pixmap;
880 (Drawable) pixmap, attrib_list, X_GLXCreatePixmap)
    [all...]
xfont.c 122 * use only one reusable pixmap with the maximum dimensions.
123 * draw the entire font into a single pixmap (careful with
138 Pixmap pixmap; local
141 pixmap = XCreatePixmap(dpy, win, 8 * width, height, 1);
143 XFillRectangle(dpy, pixmap, gc, 0, 0, 8 * width, height);
149 XDrawString16(dpy, pixmap, gc, x0, y0, &char2b, 1);
151 image = XGetImage(dpy, pixmap, 0, 0, 8 * width, height, 1, XYPixmap);
162 XFreePixmap(dpy, pixmap);
219 Pixmap pixmap local
    [all...]
  /external/mesa3d/src/mesa/drivers/x11/
xfonts.c 123 * use only one reusable pixmap with the maximum dimensions.
124 * draw the entire font into a single pixmap (careful with
139 Pixmap pixmap; local
142 pixmap = XCreatePixmap(dpy, win, 8 * width, height, 1);
144 XFillRectangle(dpy, pixmap, gc, 0, 0, 8 * width, height);
150 XDrawString16(dpy, pixmap, gc, x0, y0, &char2b, 1);
152 image = XGetImage(dpy, pixmap, 0, 0, 8 * width, height, 1, XYPixmap);
163 XFreePixmap(dpy, pixmap);
221 Pixmap pixmap local
    [all...]
  /external/skia/include/core/
SkPixmap.h 48 * If supported, set this pixmap to point to the pixels in the specified mask and return true.
49 * On failure, return false and set this pixmap to empty.
54 * Computes the intersection of area and this pixmap. If that intersection is non-empty,
164 * Copy the pixels from this pixmap into the dst pixmap, converting as needed into dst's
174 * will return false). If subset does not intersect the bounds of this pixmap, returns false.
197 * return true and fill out the pixmap to point to that memory. The storage will be freed
200 * On failure, return false and reset() the pixmap to empty.
205 * Allocate memory for the pixels needed to match the specified Info and fill out the pixmap
214 * Returns an SkData object wrapping the allocated pixels memory, and resets the pixmap
262 const SkPixmap& pixmap() const { function in class:SkAutoPixmapUnlock
    [all...]

Completed in 830 milliseconds

12 3