List of usage examples for com.badlogic.gdx.graphics.glutils ShapeRenderer box
public void box(float x, float y, float z, float width, float height, float depth)
From source file:com.me.mygdxgame.WallActor.java
License:Apache License
public void drawBox(ShapeRenderer sr) { sr.setColor(wallColor); sr.box(bounds.x, bounds.y, 0, bounds.width, bounds.height, 0); }
From source file:vault.q_bounce.editor.props.BackgroundProp.java
License:Open Source License
/** * Draw the turret radius as bounds.//from w ww . ja va2 s. c o m * @param gizmo */ @Override public void draw(ShapeRenderer gizmo) { gizmo.setColor(Color.YELLOW); //gizmo.circle(position.x, position.y, radius); gizmo.box(position.x - r / 2, position.y - r / 2, zoomed, r, r, r); }
From source file:vault.q_bounce.editor.props.FinishProp.java
License:Open Source License
/** * Draw the turret radius as bounds.//from ww w .j av a2 s . c om * @param gizmo */ @Override public void draw(ShapeRenderer gizmo) { gizmo.setColor(Color.YELLOW); gizmo.box(position.x - 15, position.y - 15, zoomed, radius, radius, radius); }
From source file:vault.q_bounce.editor.props.GroundProp.java
License:Open Source License
/** * Draw the turret radius as bounds./* ww w.ja va2s . c om*/ * @param gizmo */ @Override public void draw(ShapeRenderer gizmo) { gizmo.setColor(Color.YELLOW); //gizmo.circle(position.x, position.y, radius); gizmo.box(position.x - r * 2, position.y - r / 2, zoomed, r * 4, r, r); }