Home
last modified time | relevance | path

Searched refs:atlas (Results 1 – 25 of 54) sorted by relevance

123

/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/
DTextureAtlasPanel.java23 TextureAtlas atlas; field in TextureAtlasPanel
45 if(atlas == null) return; in initializeComponents()
54 if(atlas == null) return; in initializeComponents()
61 public void setAtlas(TextureAtlas atlas){ in setAtlas() argument
62 if(atlas == this.atlas) return; in setAtlas()
64 Array<AtlasRegion> atlasRegions = atlas.getRegions(); in setAtlas()
67 for(Texture texture : atlas.getTextures()){ in setAtlas()
72 this.atlas = atlas; in setAtlas()
DRegionInfluencerPanel.java49 TextureAtlas atlas = editor.getAtlas(); in initializeComponents()
50 if(atlas != null) in initializeComponents()
51 regionPickerPanel.setAtlas(atlas); in initializeComponents()
DTextureLoaderPanel.java54 TextureAtlas atlas = editor.load(file.getAbsolutePath(), TextureAtlas.class, null, null); in initializeComponents()
55 if(atlas != null){ in initializeComponents()
56 editor.setAtlas(atlas); in initializeComponents()
/external/skia/experimental/GLFWTest/
Dglfw_main.cpp79 SkAutoTUnref<SkImage> atlas; in main() local
87 atlas.reset(SkImage::NewFromEncoded(imageData)); in main()
88 if (!atlas) { in main()
97 SkScalar anchorX = atlas->width()*0.5f; in main()
98 SkScalar anchorY = atlas->height()*0.5f; in main()
105 tex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, atlas->width(), atlas->height()); in main()
111 tex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, atlas->width(), atlas->height()); in main()
161 canvas->drawAtlas(atlas, xform, tex, nullptr, kGrid*kGrid+1, SkXfermode::kSrcOver_Mode, in main()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DTextureAtlasTest.java36 TextureAtlas atlas; field in TextureAtlasTest
47 atlas = new TextureAtlas(Gdx.files.internal("data/pack")); in create()
52 badlogic = atlas.createSprite("badlogicslice"); in create()
56 badlogicSmall = atlas.createSprite("badlogicsmall-rotated"); in create()
59 AtlasRegion region = atlas.findRegion("badlogicsmall"); in create()
63 star = atlas.createSprite("particle-star"); in create()
66 font = new BitmapFont(Gdx.files.internal("data/font.fnt"), atlas.findRegion("font"), false); in create()
104 atlas.dispose(); in dispose()
DPixmapPackerTest.java42 TextureAtlas atlas; field in PixmapPackerTest
67 atlas = packer.generateTextureAtlas(TextureFilter.Nearest, TextureFilter.Nearest, false); in create()
68 Gdx.app.log("PixmapPackerTest", "Number of initial textures: " + atlas.getTextures().size); in create()
82 packer.updateTextureAtlas(atlas, TextureFilter.Nearest, TextureFilter.Nearest, false); in create()
85 Gdx.app.log("PixmapPackerTest", "Number of updated textures: " + atlas.getTextures().size); in create()
116 atlas.dispose(); in dispose()
DAtlasIssueTest.java31 TextureAtlas atlas; field in AtlasIssueTest
37 atlas = new TextureAtlas(Gdx.files.internal("data/issue_pack"), Gdx.files.internal("data/")); in create()
38 sprite = atlas.createSprite("map"); in create()
58 atlas.dispose(); in dispose()
DFilterPerformanceTest.java35 TextureAtlas atlas; field in FilterPerformanceTest
47 atlas.findRegion("map").getTexture().bind(); in setTextureFilter()
62 atlas = new TextureAtlas(Gdx.files.internal("data/issue_pack"), Gdx.files.internal("data/")); in create()
68 sprite = atlas.createSprite("map"); in create()
86 atlas.dispose(); in dispose()
DYDownTest.java43 TextureAtlas atlas; field in YDownTest
59 atlas = new TextureAtlas(Gdx.files.internal("data/pack"), true); in create()
62 sprite = atlas.createSprite("badlogicsmall"); in create()
110 batch.draw(atlas.findRegion("badlogicsmall"), 360, 100); in render()
174 atlas.dispose(); in dispose()
DBitmapFontMetricsTest.java32 private TextureAtlas atlas; field in BitmapFontMetricsTest
39 atlas = new TextureAtlas("data/pack"); in create()
41 …font = new BitmapFont(Gdx.files.internal("data/verdana39.fnt"), atlas.findRegion("verdana39"), fal… in create()
118 atlas.dispose(); in dispose()
/external/libgdx/gdx/src/com/badlogic/gdx/maps/
DImageResolver.java59 private final TextureAtlas atlas; field in ImageResolver.TextureAtlasImageResolver
61 public TextureAtlasImageResolver (TextureAtlas atlas) { in TextureAtlasImageResolver() argument
62 this.atlas = atlas; in TextureAtlasImageResolver()
67 return atlas.findRegion(name); in getImage()
/external/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp88 GrTexture* atlas = dfTexEffect.textureAccess(0).getTexture(); in onEmitCode() local
89 SkASSERT(atlas && SkIsPow2(atlas->width()) && SkIsPow2(atlas->height())); in onEmitCode()
94 atlas->width(), atlas->height(), in onEmitCode()
181 GrTexture* atlas = gp.textureAccess(0).getTexture(); in GenKey() local
182 SkASSERT(atlas); in GenKey()
183 b->add32(atlas->width()); in GenKey()
184 b->add32(atlas->height()); in GenKey()
529 GrTexture* atlas = dfTexEffect.textureAccess(0).getTexture(); in onEmitCode() local
530 SkASSERT(atlas && SkIsPow2(atlas->width()) && SkIsPow2(atlas->height())); in onEmitCode()
535 atlas->width(), atlas->height(), in onEmitCode()
[all …]
DGrBitmapTextGeoProc.cpp34 SkDEBUGCODE(GrTexture* atlas = cte.textureAccess(0).getTexture()); in onEmitCode()
35 SkASSERT(atlas && SkIsPow2(atlas->width()) && SkIsPow2(atlas->height())); in onEmitCode()
116 GrTexture* atlas = gp.textureAccess(0).getTexture(); in GenKey() local
117 SkASSERT(atlas); in GenKey()
118 b->add32(atlas->width()); in GenKey()
119 b->add32(atlas->height()); in GenKey()
/external/skia/src/gpu/batches/
DGrAADistanceFieldPathRenderer.cpp152 GrBatchAtlas* atlas, PathCache* pathCache, PathDataList* pathList) { in Create() argument
153 return new AADistanceFieldPathBatch(geometry, viewMatrix, atlas, pathCache, pathList); in Create()
201 GrBatchAtlas* atlas = fAtlas; in onPrepareDraws() local
205 atlas->getTexture(), in onPrepareDraws()
251 if (nullptr == pathData || !atlas->hasID(pathData->fID)) { in onPrepareDraws()
264 atlas, in onPrepareDraws()
277 atlas->setLastUseToken(pathData->fID, target->currentToken()); in onPrepareDraws()
283 atlas, in onPrepareDraws()
302 GrBatchAtlas* atlas, in AADistanceFieldPathBatch() argument
308 fAtlas = atlas; in AADistanceFieldPathBatch()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
DSkin.java59 TextureAtlas atlas; field in Skin
71 atlas = new TextureAtlas(atlasFile); in Skin()
72 addRegions(atlas); in Skin()
80 public Skin (FileHandle skinFile, TextureAtlas atlas) { in Skin() argument
81 this.atlas = atlas; in Skin()
82 addRegions(atlas); in Skin()
88 public Skin (TextureAtlas atlas) { in Skin() argument
89 this.atlas = atlas; in Skin()
90 addRegions(atlas); in Skin()
103 public void addRegions (TextureAtlas atlas) { in addRegions() argument
[all …]
/external/skia/src/effects/
DSkTableColorFilter.cpp351 const GrTextureStripAtlas* atlas() const { return fAtlas; } in atlas() function in ColorTableEffect
363 ColorTableEffect(GrTexture* texture, GrTextureStripAtlas* atlas, int row, unsigned flags);
396 if (cte.atlas()) { in onSetData()
397 SkScalar yDelta = cte.atlas()->getNormalizedTexelHeight(); in onSetData()
398 rgbaYValues[3] = cte.atlas()->getYOffset(cte.atlasRow()) + SK_ScalarHalf * yDelta; in onSetData()
470 GrTextureStripAtlas* atlas = GrTextureStripAtlas::GetAtlas(desc); in Create() local
471 int row = atlas->lockRow(bitmap); in Create()
474 atlas = nullptr; in Create()
477 texture.reset(SkRef(atlas->getTexture())); in Create()
480 return new ColorTableEffect(texture, atlas, row, flags); in Create()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
DParticleEffect.java141 public void load (FileHandle effectFile, TextureAtlas atlas) { in load() argument
142 load(effectFile, atlas, null); in load()
145 public void load (FileHandle effectFile, TextureAtlas atlas, String atlasPrefix) { in load() argument
147 loadEmitterImages(atlas, atlasPrefix); in load()
169 public void loadEmitterImages (TextureAtlas atlas) { in loadEmitterImages() argument
170 loadEmitterImages(atlas, null); in loadEmitterImages()
173 public void loadEmitterImages (TextureAtlas atlas, String atlasPrefix) { in loadEmitterImages() argument
182 Sprite sprite = atlas.createSprite(imageName); in loadEmitterImages()
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
DTextureAtlas.java468 TextureAtlas atlas = new TextureAtlas(atlasSize, atlasSize); in createAtlas() local
470 if (!atlas.addGeometry(geometry)) { in createAtlas()
475 return atlas; in createAtlas()
489 TextureAtlas atlas = createAtlas(spat, atlasSize); in makeAtlasBatch() local
490 if (atlas == null) { in makeAtlasBatch()
496 applyAtlasCoords(geometries, mesh, atlas); in makeAtlasBatch()
503 Texture diffuseMap = atlas.getAtlasTexture("DiffuseMap"); in makeAtlasBatch()
504 Texture normalMap = atlas.getAtlasTexture("NormalMap"); in makeAtlasBatch()
505 Texture specularMap = atlas.getAtlasTexture("SpecularMap"); in makeAtlasBatch()
521 …private static void applyAtlasCoords(List<Geometry> geometries, Mesh outMesh, TextureAtlas atlas) { in applyAtlasCoords() argument
[all …]
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/
DTextureRegion3DTest.java36 TextureAtlas atlas; field in TextureRegion3DTest
46 atlas = new TextureAtlas(Gdx.files.internal("data/testpack")); in create()
47 regions = atlas.getRegions(); in create()
93 atlas.dispose(); in dispose()
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/
DTextureUnpacker.java73 public void splitAtlas (TextureAtlasData atlas, String outputDir) { in splitAtlas() argument
81 for (Page page : atlas.getPages()) { in splitAtlas()
89 for (Region region : atlas.getRegions()) { in splitAtlas()
222 …TextureAtlasData atlas = new TextureAtlasData(new FileHandle(atlasFile), new FileHandle(imageDir),… in main() local
223 unpacker.splitAtlas(atlas, outputDir); in main()
/external/skia/samplecode/
DSampleShip.cpp26 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas() argument
29 canvas->drawAtlas(atlas, xform, tex, colors, count, SkXfermode::kModulate_Mode, cull, paint); in draw_atlas()
32 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim() argument
41 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint, in draw_atlas_sim()
DSampleAtlas.cpp21 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas() argument
24 canvas->drawAtlas(atlas, xform, tex, colors, count, SkXfermode::kModulate_Mode, cull, paint); in draw_atlas()
27 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim() argument
36 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint, in draw_atlas_sim()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/gwt/
DGwtTest.java54 TextureAtlas atlas; field in GwtTest
90 atlas = new TextureAtlas(Gdx.files.internal("data/pack")); in create()
105 batch.draw(atlas.findRegion("font"), 0, 100); in render()
/external/eigen/bench/btl/cmake/
DFindATLAS.cmake7 find_library(ATLAS_LIB atlas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
16 find_file(ATLAS_LAPACK liblapack.so.3 PATHS /usr/lib/atlas $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/extensions/
DFreeTypeMetricsTest.java36 private TextureAtlas atlas; field in FreeTypeMetricsTest
43 atlas = new TextureAtlas("data/pack"); in create()
128 atlas.dispose(); in dispose()

123