MCPcopy
hub / github.com/libgdx/libgdx / create

Method create

tests/gdx-tests/src/com/badlogic/gdx/tests/ImageTest.java:36–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 TextureRegion image2;
35
36 @Override
37 public void create () {
38 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
39 image2 = new TextureRegion(new Texture(Gdx.files.internal("data/badlogic.jpg")));
40 ui = new Stage();
41 Gdx.input.setInputProcessor(ui);
42
43 root = new Table();
44 root.setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
45 ui.addActor(root);
46 root.debug();
47
48 Image image = new Image(image2);
49 image.setScaling(Scaling.fill);
50 root.add(image).width(image2.getRegionWidth()).height(image2.getRegionHeight());
51 }
52
53 @Override
54 public void dispose () {

Callers

nothing calls this directly

Calls 13

setScalingMethod · 0.95
getRegionWidthMethod · 0.80
getRegionHeightMethod · 0.80
internalMethod · 0.65
setInputProcessorMethod · 0.65
getWidthMethod · 0.65
getHeightMethod · 0.65
debugMethod · 0.65
addMethod · 0.65
setSizeMethod · 0.45
addActorMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected