/frameworks/base/libs/hwui/ |
AssetAtlas.h | 38 * An asset atlas holds a collection of framework bitmaps in a single OpenGL 40 * inside the atlas. The atlas is generated by the framework and bound as 47 * atlas 60 * correct range to sample this entry from the atlas. 66 * in the atlas. 69 return texture->blend ? &atlas.mBlendKey : &atlas.mOpaqueKey; 78 * The pixel ref that generated this atlas entry. 83 * Atlas this entry belongs to 85 const AssetAtlas& atlas; member in class:android::uirenderer::AssetAtlas::Entry [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/maps/ |
ImageResolver.java | 59 private final TextureAtlas atlas;
field in class:ImageResolver.TextureAtlasImageResolver 61 public TextureAtlasImageResolver (TextureAtlas atlas) {
62 this.atlas = atlas;
67 return atlas.findRegion(name);
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
TextureAtlasTest.java | 36 TextureAtlas atlas;
field in class:TextureAtlasTest 47 atlas = new TextureAtlas(Gdx.files.internal("data/pack"));
52 badlogic = atlas.createSprite("badlogicslice");
55 // badlogicSmall = atlas.createSprite("badlogicsmall");
56 badlogicSmall = atlas.createSprite("badlogicsmall-rotated");
59 AtlasRegion region = atlas.findRegion("badlogicsmall");
63 star = atlas.createSprite("particle-star");
66 font = new BitmapFont(Gdx.files.internal("data/font.fnt"), atlas.findRegion("font"), false);
104 atlas.dispose();
|
AtlasIssueTest.java | 31 TextureAtlas atlas;
field in class:AtlasIssueTest 37 atlas = new TextureAtlas(Gdx.files.internal("data/issue_pack"), Gdx.files.internal("data/"));
38 sprite = atlas.createSprite("map");
58 atlas.dispose();
|
PixmapPackerTest.java | 42 TextureAtlas atlas;
field in class:PixmapPackerTest 67 atlas = packer.generateTextureAtlas(TextureFilter.Nearest, TextureFilter.Nearest, false);
68 Gdx.app.log("PixmapPackerTest", "Number of initial textures: " + atlas.getTextures().size);
82 packer.updateTextureAtlas(atlas, TextureFilter.Nearest, TextureFilter.Nearest, false);
85 Gdx.app.log("PixmapPackerTest", "Number of updated textures: " + atlas.getTextures().size);
116 atlas.dispose();
|
FilterPerformanceTest.java | 35 TextureAtlas atlas;
field in class:FilterPerformanceTest 47 atlas.findRegion("map").getTexture().bind();
54 modeString = (mode % 2 == 0 ? "Sprite" : "Atlas") + " " + filterNames[mode / 2];
62 atlas = new TextureAtlas(Gdx.files.internal("data/issue_pack"), Gdx.files.internal("data/"));
68 sprite = atlas.createSprite("map");
86 atlas.dispose();
|
YDownTest.java | 43 TextureAtlas atlas;
field in class:YDownTest 58 // a texture atlas, note the boolean
59 atlas = new TextureAtlas(Gdx.files.internal("data/pack"), true);
61 // a sprite, created from a region in the atlas
62 sprite = atlas.createSprite("badlogicsmall");
108 // drawing regions from an atlas, x and y will be the top left corner.
110 batch.draw(atlas.findRegion("badlogicsmall"), 360, 100);
111 // drawing a sprite created from an atlas, FIXME wut?! AtlasSprite#setPosition seems to be wrong
174 atlas.dispose();
|
BitmapFontMetricsTest.java | 32 private TextureAtlas atlas; field in class:BitmapFontMetricsTest 39 atlas = new TextureAtlas("data/pack"); 41 font = new BitmapFont(Gdx.files.internal("data/verdana39.fnt"), atlas.findRegion("verdana39"), false); 118 atlas.dispose();
|
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/ |
TextureAtlasPanel.java | 23 TextureAtlas atlas; field in class:TextureAtlasPanel 45 if(atlas == null) return; 54 if(atlas == null) return; 61 public void setAtlas(TextureAtlas atlas){ 62 if(atlas == this.atlas) return; 64 Array<AtlasRegion> atlasRegions = atlas.getRegions(); 67 for(Texture texture : atlas.getTextures()){ 72 this.atlas = atlas; [all...] |
RegionInfluencerPanel.java | 45 JOptionPane.showMessageDialog(editor, "Load a Texture or an Atlas first."); 49 TextureAtlas atlas = editor.getAtlas(); 50 if(atlas != null) 51 regionPickerPanel.setAtlas(atlas);
|
TextureLoaderPanel.java | 30 JButton atlasButton = new JButton("Open Atlas"); 54 TextureAtlas atlas = editor.load(file.getAbsolutePath(), TextureAtlas.class, null, null); 55 if(atlas != null){ 56 editor.setAtlas(atlas);
|
/external/skia/experimental/GLFWTest/ |
glfw_main.cpp | 79 SkAutoTUnref<SkImage> atlas; local 87 atlas.reset(SkImage::NewFromEncoded(imageData)); 88 if (!atlas) { 97 SkScalar anchorX = atlas->width()*0.5f; 98 SkScalar anchorY = atlas->height()*0.5f; 105 tex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, atlas->width(), atlas->height()); 111 tex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, atlas->width(), atlas->height()); 161 canvas->drawAtlas(atlas, xform, tex, nullptr, kGrid*kGrid+1, SkXfermode::kSrcOver_Mode [all...] |
/external/skia/src/gpu/effects/ |
GrBitmapTextGeoProc.cpp | 34 SkDEBUGCODE(GrTexture* atlas = cte.textureAccess(0).getTexture()); 35 SkASSERT(atlas && SkIsPow2(atlas->width()) && SkIsPow2(atlas->height())); 114 // Currently we hardcode numbers to convert atlas coordinates to normalized floating point 116 GrTexture* atlas = gp.textureAccess(0).getTexture(); local 117 SkASSERT(atlas); 118 b->add32(atlas->width()); 119 b->add32(atlas->height());
|
GrDistanceFieldGeoProc.cpp | 88 GrTexture* atlas = dfTexEffect.textureAccess(0).getTexture(); variable 89 SkASSERT(atlas && SkIsPow2(atlas->width()) && SkIsPow2(atlas->height())); 94 atlas->width(), atlas->height(), 179 // Currently we hardcode numbers to convert atlas coordinates to normalized floating point 181 GrTexture* atlas = gp.textureAccess(0).getTexture(); local 182 SkASSERT(atlas); 183 b->add32(atlas->width()) 529 GrTexture* atlas = dfTexEffect.textureAccess(0).getTexture(); variable 671 GrTexture* atlas = gp.textureAccess(0).getTexture(); local [all...] |
/external/skia/src/gpu/batches/ |
GrAADistanceFieldPathRenderer.cpp | 152 GrBatchAtlas* atlas, PathCache* pathCache, PathDataList* pathList) { 153 return new AADistanceFieldPathBatch(geometry, viewMatrix, atlas, pathCache, pathList); 201 GrBatchAtlas* atlas = fAtlas; variable 205 atlas->getTexture(), 251 if (nullptr == pathData || !atlas->hasID(pathData->fID)) { 264 atlas, 277 atlas->setLastUseToken(pathData->fID, target->currentToken()); 283 atlas, 302 GrBatchAtlas* atlas, 308 fAtlas = atlas; [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/ |
TextureUnpacker.java | 34 /** Unpacks a texture atlas into individual image files. 43 private static final String ATLAS_FILE_EXTENSION = ".atlas"; 72 /** Splits an atlas into seperate image and ninepatch files. */ 73 public void splitAtlas (TextureAtlasData atlas, String outputDir) { 81 for (Page page : atlas.getPages()) { 89 for (Region region : atlas.getRegions()) { 126 /** Extract an image from a texture atlas. 162 /** Extract a ninepatch from a texture atlas, according to the android specification. 221 // Opens the atlas file from the specified filename 222 TextureAtlasData atlas = new TextureAtlasData(new FileHandle(atlasFile), new FileHandle(imageDir), false) local [all...] |
/external/skia/src/effects/ |
SkTableColorFilter.cpp | 351 const GrTextureStripAtlas* atlas() const { return fAtlas; } function in class:ColorTableEffect 363 ColorTableEffect(GrTexture* texture, GrTextureStripAtlas* atlas, int row, unsigned flags); 396 if (cte.atlas()) { 397 SkScalar yDelta = cte.atlas()->getNormalizedTexelHeight(); 398 rgbaYValues[3] = cte.atlas()->getYOffset(cte.atlasRow()) + SK_ScalarHalf * yDelta; 470 GrTextureStripAtlas* atlas = GrTextureStripAtlas::GetAtlas(desc); local 471 int row = atlas->lockRow(bitmap); 474 atlas = nullptr; 477 texture.reset(SkRef(atlas->getTexture())); 480 return new ColorTableEffect(texture, atlas, row, flags) [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/assets/loaders/ |
SkinLoader.java | 47 deps.add(new AssetDescriptor(file.pathWithoutExtension() + ".atlas", TextureAtlas.class));
58 String textureAtlasPath = file.pathWithoutExtension() + ".atlas";
68 TextureAtlas atlas = manager.get(textureAtlasPath, TextureAtlas.class);
local 69 Skin skin = new Skin(atlas);
|
BitmapFontLoader.java | 85 TextureAtlas atlas = manager.get(parameter.atlasName, TextureAtlas.class);
local 87 AtlasRegion region = atlas.findRegion(name);
90 throw new GdxRuntimeException("Could not find font region " + name + " in atlas " + parameter.atlasName);
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
ParticleEffect.java | 141 public void load (FileHandle effectFile, TextureAtlas atlas) {
142 load(effectFile, atlas, null);
145 public void load (FileHandle effectFile, TextureAtlas atlas, String atlasPrefix) {
147 loadEmitterImages(atlas, atlasPrefix);
169 public void loadEmitterImages (TextureAtlas atlas) {
170 loadEmitterImages(atlas, null);
173 public void loadEmitterImages (TextureAtlas atlas, String atlasPrefix) {
182 Sprite sprite = atlas.createSprite(imageName);
|
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/ |
Skin.java | 52 * regions in the atlas as ninepatches, sprites, drawables, etc. The get* methods return an instance of the object in the skin.
59 TextureAtlas atlas;
field in class:Skin 65 /** Creates a skin containing the resources in the specified skin JSON file. If a file in the same directory with a ".atlas"
66 * extension exists, it is loaded as a {@link TextureAtlas} and the texture regions added to the skin. The atlas is
69 FileHandle atlasFile = skinFile.sibling(skinFile.nameWithoutExtension() + ".atlas");
71 atlas = new TextureAtlas(atlasFile);
72 addRegions(atlas);
78 /** Creates a skin containing the resources in the specified skin JSON file and the texture regions from the specified atlas.
79 * The atlas is automatically disposed when the skin is disposed. */
80 public Skin (FileHandle skinFile, TextureAtlas atlas) {
[all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/ |
TextureRegion3DTest.java | 36 TextureAtlas atlas; field in class:TextureRegion3DTest 46 atlas = new TextureAtlas(Gdx.files.internal("data/testpack")); 47 regions = atlas.getRegions(); 93 atlas.dispose();
|
/external/skia/samplecode/ |
SampleShip.cpp | 26 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], 29 canvas->drawAtlas(atlas, xform, tex, colors, count, SkXfermode::kModulate_Mode, cull, paint); 32 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], 41 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint,
|
SampleAtlas.cpp | 21 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], 24 canvas->drawAtlas(atlas, xform, tex, colors, count, SkXfermode::kModulate_Mode, cull, paint); 27 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], 36 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint,
|
/external/libgdx/tests/gdx-tests-android/src/com/badlogic/gdx/tests/android/ |
APKExpansionTest.java | 81 TextureAtlas atlas = assetManager.get("data/" + extensionPrefix + "testpackobb"); local 82 atlasTextureRegion = new TextureRegion(atlas.findRegion("water"));
|