Home
last modified time | relevance | path

Searched refs:assets (Results 1 – 25 of 184) sorted by relevance

12345678

/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
DAndroidFileHandle.java37 final private AssetManager assets; field in AndroidFileHandle
39 AndroidFileHandle (AssetManager assets, String fileName, FileType type) { in AndroidFileHandle() argument
41 this.assets = assets; in AndroidFileHandle()
44 AndroidFileHandle (AssetManager assets, File file, FileType type) { in AndroidFileHandle() argument
46 this.assets = assets; in AndroidFileHandle()
51 if (file.getPath().length() == 0) return new AndroidFileHandle(assets, new File(name), type); in child()
52 return new AndroidFileHandle(assets, new File(file, name), type); in child()
69 return new AndroidFileHandle(assets, parent, type); in parent()
75 return assets.open(file.getPath()); in read()
86 String[] relativePaths = assets.list(file.getPath()); in list()
[all …]
DAndroidFiles.java35 protected final AssetManager assets; field in AndroidFiles
38 public AndroidFiles (AssetManager assets) { in AndroidFiles() argument
39 this.assets = assets; in AndroidFiles()
43 public AndroidFiles (AssetManager assets, String localpath) { in AndroidFiles() argument
44 this.assets = assets; in AndroidFiles()
50 FileHandle handle = new AndroidFileHandle(type == FileType.Internal ? assets : null, path, type); in getFileHandle()
57 assets.open(path).close(); // Check if file exists. in getZipFileHandleIfExists()
76 FileHandle handle = new AndroidFileHandle(assets, path, FileType.Internal); in internal()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DBitmapFontAtlasRegionTest.java5 import com.badlogic.gdx.assets.AssetManager;
6 import com.badlogic.gdx.assets.loaders.BitmapFontLoader.BitmapFontParameter;
17 private AssetManager assets; field in BitmapFontAtlasRegionTest
30 this.assets = new AssetManager(); in create()
35 this.assets.load(FONT_1, BitmapFont.class, params); in create()
36 this.assets.load(FONT_2, BitmapFont.class, params); in create()
37 this.assets.load(FONT_3, BitmapFont.class, params); in create()
38 this.assets.finishLoading(); in create()
41 this.fonts[0] = assets.get(FONT_1); in create()
42 this.fonts[1] = assets.get(FONT_2); in create()
[all …]
DAssetManagerTest.java24 import com.badlogic.gdx.assets.AssetDescriptor;
25 import com.badlogic.gdx.assets.AssetErrorListener;
26 import com.badlogic.gdx.assets.AssetManager;
27 import com.badlogic.gdx.assets.loaders.I18NBundleLoader;
28 import com.badlogic.gdx.assets.loaders.TextureLoader;
29 import com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver;
30 import com.badlogic.gdx.assets.loaders.resolvers.ResolutionFileResolver;
31 import com.badlogic.gdx.assets.loaders.resolvers.ResolutionFileResolver.Resolution;
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/
DModelLoaderTest.java20 import com.badlogic.gdx.assets.AssetManager;
31 AssetManager assets; field in ModelLoaderTest
44 assets = new AssetManager(); in create()
45 assets.load("data/g3d/cube.g3dj", Model.class); in create()
52 instance = new ModelInstance(assets.get("data/g3d/cube.g3dj", Model.class)); in doneLoading()
62 assets.unload("data/g3d/cube.g3dj"); in render()
63 assets.load("data/g3d/cube.g3dj", Model.class); in render()
64 assets.finishLoading(); in render()
71 if (assets.update()) { in render()
80 spriteBatch.draw(assets.get("data/g3d/checkboard.png", Texture.class), 0, 0, 100, 100); in render()
[all …]
DBaseG3dTest.java20 import com.badlogic.gdx.assets.AssetManager;
36 public AssetManager assets; field in BaseG3dTest
49 if (assets == null) assets = new AssetManager(); in create()
105 if (loading && assets.update()) { in render()
121 assets.dispose(); in dispose()
122 assets = null; in dispose()
DBasic3DSceneTest.java21 import com.badlogic.gdx.assets.AssetManager;
39 public AssetManager assets; field in Basic3DSceneTest
66 assets = new AssetManager(); in create()
67 assets.load("data/g3d/invaders.g3dj", Model.class); in create()
72 Model model = assets.get("data/g3d/invaders.g3dj", Model.class); in doneLoading()
103 if (loading && assets.update()) doneLoading(); in render()
120 assets.dispose(); in dispose()
DAnimation3DTest.java72 assets.load("data/g3d/skydome.g3db", Model.class); in create()
73 assets.load("data/g3d/concrete.png", Texture.class); in create()
74 assets.load("data/tree.png", Texture.class); in create()
75 assets.load("data/g3d/ship.obj", Model.class); in create()
188 skydome = new ModelInstance(assets.get("data/g3d/skydome.g3db", Model.class)); in onLoaded()
189 …floorModel.getMaterial("concrete").set(TextureAttribute.createDiffuse(assets.get("data/g3d/concret… in onLoaded()
191 TextureAttribute.createDiffuse(assets.get("data/tree.png", Texture.class)), in onLoaded()
196 assets.load("data/g3d/knight.g3db", Model.class); in onLoaded()
199 character = new ModelInstance(assets.get("data/g3d/knight.g3db", Model.class)); in onLoaded()
210 ship = assets.get("data/g3d/ship.obj", Model.class).nodes.get(0).copy(); in onLoaded()
/external/chromium-trace/catapult/devil/devil/android/sdk/
Daapt.py32 def Dump(what, apk, assets=None): argument
40 assets = assets or []
41 if isinstance(assets, basestring):
42 assets = [assets]
43 return _RunAaptCmd(['dump', what, apk] + assets).splitlines()
/external/skia/platform_tools/android/apps/canvasproof/src/main/java/org/skia/canvasproof/
DCanvasProofActivity.java39 private PictureAsset[] assets; field in CanvasProofActivity
72 this.assets = new PictureAsset[resources.length]; in getAssetPaths()
75 this.assets[i] = new PictureAsset(); in getAssetPaths()
76 this.assets[i].path = path; in getAssetPaths()
78 this.assets[i].ptr = CreateSkiaPicture.create(mgr.open(path)); in getAssetPaths()
79 if (0 == this.assets[i].ptr) { in getAssetPaths()
91 this.assets[i].picture = p; in getAssetPaths()
132 if (this.assets == null) { in nextPicture()
136 assert (this.assets.length > 0); in nextPicture()
137 resourcesIndex = (resourcesIndex + d) % this.assets.length; in nextPicture()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/assets/
DAssetManager.java17 package com.badlogic.gdx.assets;
22 import com.badlogic.gdx.assets.loaders.AssetLoader;
23 import com.badlogic.gdx.assets.loaders.BitmapFontLoader;
24 import com.badlogic.gdx.assets.loaders.FileHandleResolver;
25 import com.badlogic.gdx.assets.loaders.I18NBundleLoader;
26 import com.badlogic.gdx.assets.loaders.MusicLoader;
27 import com.badlogic.gdx.assets.loaders.ParticleEffectLoader;
28 import com.badlogic.gdx.assets.loaders.PixmapLoader;
29 import com.badlogic.gdx.assets.loaders.SkinLoader;
30 import com.badlogic.gdx.assets.loaders.SoundLoader;
[all …]
/external/libgdx/extensions/gdx-freetype/src/com/badlogic/gdx/graphics/g2d/freetype/
DFreeTypeFontGeneratorLoader.java19 import com.badlogic.gdx.assets.AssetDescriptor;
20 import com.badlogic.gdx.assets.AssetLoaderParameters;
21 import com.badlogic.gdx.assets.AssetManager;
22 import com.badlogic.gdx.assets.loaders.FileHandleResolver;
23 import com.badlogic.gdx.assets.loaders.SynchronousAssetLoader;
DFreetypeFontLoader.java3 import com.badlogic.gdx.assets.AssetDescriptor;
4 import com.badlogic.gdx.assets.AssetLoaderParameters;
5 import com.badlogic.gdx.assets.AssetManager;
6 import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader;
7 import com.badlogic.gdx.assets.loaders.FileHandleResolver;
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/
DResourceData.java3 import com.badlogic.gdx.assets.AssetDescriptor;
4 import com.badlogic.gdx.assets.AssetManager;
40 IntArray assets; field in ResourceData.SaveData
46 assets = new IntArray(); in SaveData()
52 assets = new IntArray(); in SaveData()
63 assets.add(i); in saveAsset()
71 if(loadIndex == assets.size) return null; in loadAsset()
72 AssetData data = (AssetData)resources.sharedAssets.get(assets.get(loadIndex++)); in loadAsset()
83 json.writeValue("indices", assets.toArray(), int[].class); in write()
89 assets.addAll(json.readValue("indices", int[].class, jsonData)); in read()
DParticleEffectLoader.java11 import com.badlogic.gdx.assets.AssetDescriptor;
12 import com.badlogic.gdx.assets.AssetLoaderParameters;
13 import com.badlogic.gdx.assets.AssetManager;
14 import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader;
15 import com.badlogic.gdx.assets.loaders.FileHandleResolver;
47 Array<AssetData> assets = null; in getDependencies() local
53 assets = data.getAssets(); in getDependencies()
57 for (AssetData<?> assetData : assets) { in getDependencies()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/preloader/
DPreloader.java72 public PreloaderState(Array<Asset> assets) { in PreloaderState() argument
73 this.assets = assets; in PreloaderState()
78 for (int i = 0; i < assets.size; i++) { in getDownloadedSize()
79 Asset asset = assets.get(i); in getDownloadedSize()
87 for (int i = 0; i < assets.size; i++) { in getTotalSize()
88 Asset asset = assets.get(i); in getTotalSize()
103 public final Array<Asset> assets; field in Preloader.PreloaderState
132 Array<Asset> assets = new Array<Asset>(lines.length); in preload()
147 assets.add(new Asset(tokens[1].trim(), type, size, tokens[3])); in preload()
149 final PreloaderState state = new PreloaderState(assets); in preload()
[all …]
DPreloaderBundleGenerator.java85 ArrayList<Asset> assets = new ArrayList<Asset>(); in generate() local
86 copyDirectory(source, target, assetFilter, assets); in generate()
96 assets.add(new Asset(dest, assetFilter.getType(dest.path()))); in generate()
105 for (Asset asset : assets) { in generate()
138 …void copyFile (FileWrapper source, FileWrapper dest, AssetFilter filter, ArrayList<Asset> assets) { in copyFile() argument
141 assets.add(new Asset(dest, filter.getType(dest.path()))); in copyFile()
149 …rectory (FileWrapper sourceDir, FileWrapper destDir, AssetFilter filter, ArrayList<Asset> assets) { in copyDirectory() argument
151 assets.add(new Asset(destDir, AssetType.Directory)); in copyDirectory()
158 copyDirectory(srcFile, destFile, filter, assets); in copyDirectory()
160 copyFile(srcFile, destFile, filter, assets); in copyDirectory()
/external/libgdx/gdx/src/com/badlogic/gdx/assets/loaders/
DPixmapLoader.java17 package com.badlogic.gdx.assets.loaders;
19 import com.badlogic.gdx.assets.AssetDescriptor;
20 import com.badlogic.gdx.assets.AssetLoaderParameters;
21 import com.badlogic.gdx.assets.AssetManager;
DTextureAtlasLoader.java17 package com.badlogic.gdx.assets.loaders;
19 import com.badlogic.gdx.assets.AssetDescriptor;
20 import com.badlogic.gdx.assets.AssetLoaderParameters;
21 import com.badlogic.gdx.assets.AssetManager;
22 import com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter;
DMusicLoader.java17 package com.badlogic.gdx.assets.loaders;
20 import com.badlogic.gdx.assets.AssetDescriptor;
21 import com.badlogic.gdx.assets.AssetLoaderParameters;
22 import com.badlogic.gdx.assets.AssetManager;
DSoundLoader.java17 package com.badlogic.gdx.assets.loaders;
20 import com.badlogic.gdx.assets.AssetDescriptor;
21 import com.badlogic.gdx.assets.AssetLoaderParameters;
22 import com.badlogic.gdx.assets.AssetManager;
DParticleEffectLoader.java17 package com.badlogic.gdx.assets.loaders;
19 import com.badlogic.gdx.assets.AssetDescriptor;
20 import com.badlogic.gdx.assets.AssetLoaderParameters;
21 import com.badlogic.gdx.assets.AssetManager;
DSynchronousAssetLoader.java17 package com.badlogic.gdx.assets.loaders;
19 import com.badlogic.gdx.assets.AssetLoaderParameters;
20 import com.badlogic.gdx.assets.AssetManager;
DAsynchronousAssetLoader.java17 package com.badlogic.gdx.assets.loaders;
19 import com.badlogic.gdx.assets.AssetLoaderParameters;
20 import com.badlogic.gdx.assets.AssetManager;
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
DPolygonRegionLoader.java23 import com.badlogic.gdx.assets.AssetDescriptor;
24 import com.badlogic.gdx.assets.AssetLoaderParameters;
25 import com.badlogic.gdx.assets.AssetManager;
26 import com.badlogic.gdx.assets.loaders.FileHandleResolver;
27 import com.badlogic.gdx.assets.loaders.SynchronousAssetLoader;
28 import com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver;

12345678