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

Method getTextureRegions

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

获取TextureRegions

(String name, int maxSize)

Source from the content-addressed store, hash-verified

1940 * 获取TextureRegions
1941 */
1942 public TextureRegion[] getTextureRegions(String name, int maxSize) {
1943 TextureRegion[] texs = new TextureRegion[maxSize];
1944 String path = name.substring(0, name.lastIndexOf("."));
1945 String ext = name.substring(name.lastIndexOf("."));
1946 for (int i = 0; i < maxSize; i++) {
1947 texs[i] = getTextureRegion(path + i + ext);
1948 }
1949 return texs;
1950 }
1951
1952 /**
1953 * 获取TextureRegions

Callers

nothing calls this directly

Calls 1

getTextureRegionMethod · 0.95

Tested by

no test coverage detected