MCPcopy Create free account
hub / github.com/Var3D/var3dframe / getTextureAtlas

Method getTextureAtlas

core/src/core/java/var3d/net/center/VGame.java:1869–1879  ·  view source on GitHub ↗

获取TextureAtlas

(String name)

Source from the content-addressed store, hash-verified

1867 * 获取TextureAtlas
1868 */
1869 public TextureAtlas getTextureAtlas(String name) {
1870 TextureAtlas textureAtlas;
1871 if (assets.isLoaded(name, TextureAtlas.class)) {
1872 textureAtlas = assets.get(name, TextureAtlas.class);
1873 } else {
1874 assets.load(name, TextureAtlas.class);
1875 assets.finishLoading();
1876 textureAtlas = assets.get(name, TextureAtlas.class);
1877 }
1878 return textureAtlas;
1879 }
1880
1881 /**
1882 * 获取TextureRegion

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected