MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / reloadFrom

Method reloadFrom

src/main/java/field/graphics/Texture.java:105–110  ·  view source on GitHub ↗
(String filename)

Source from the content-addressed store, hash-verified

103 texture.reloadFrom(file.getAbsolutePath());
104 }
105 }
106 });
107 ws.addObserver(o);
108 }
109 }
110
111 private void reloadFrom(String filename) {
112 int[] wh = FastJPEG.j.dimensions(filename);
113 if (wh[0] == specification.width && wh[1] == specification.height)

Callers 1

onFileChangeMethod · 0.80

Calls 3

uploadMethod · 0.95
dimensionsMethod · 0.65
decompressMethod · 0.65

Tested by

no test coverage detected