com.blastedstudios.gdxworld.ui.drawable.BackgroundDrawable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of GDXWorld Show documentation
Show all versions of GDXWorld Show documentation
Uploads all artifacts belonging to configuration ':archives'
The newest version!
package com.blastedstudios.gdxworld.ui.drawable;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.blastedstudios.gdxworld.ui.GDXRenderer;
import com.blastedstudios.gdxworld.world.GDXBackground;
public class BackgroundDrawable extends Drawable {
public final GDXBackground background;
public BackgroundDrawable(GDXBackground background){
this.background = background;
}
@Override public void render(float dt, AssetManager assetManager, Batch batch, Camera camera, GDXRenderer renderer) {
renderer.drawBackground(assetManager, camera, background, batch);
}
}