// Path: jastroblast-core/src/org/doublelong/jastroblast/entity/Asteroid.java
// public class Asteroid
// {
// 
// 	private final Space space;
// 	public final Space getSpace() {return this.space; }
// 
// 	// TODO fix Height/Width, should be associated with the sprite
// 	private static final float WIDTH = 136f;
// 	private static final float HEIGHT = 111f;
// 
// 	private final Vector2 position;
// 	public Vector2 getPosition() { return this.position; }
// 
// 	private final Rectangle bounds;
// 	public Rectangle getBounds() { return this.bounds; }
// 
// 	public float getWidth() { return this.bounds.width; }
// 	public float getHeight() { return this.bounds.height; }
// 
// 	private final Vector2 velocity;
// 
// 	private float angle;
// 	public float getAngle() { return this.angle; }
// 	public void setAngle(float angle) { this.angle = angle; }
// 
// 	private final float spin;
// 	private final int direction;
// 
// 	public AsteroidRenderer renderer;
// 
// 	public Asteroid(Space space, Vector2 position)
// 	{
// 		this.space = space;
// 		this.position = position;
// 		this.velocity = new Vector2();
// 		this.bounds = new Rectangle(this.position.x, this.position.y, Asteroid.WIDTH, Asteroid.HEIGHT);
// 
// 		this.spin = (float) Math.random() * 100;
// 		this.direction = new Random().nextBoolean() ? 1 : -1;
// 
// 		this.renderer = new AsteroidRenderer(this);
// 	}
// 
// 	public void render(SpriteBatch batch, OrthographicCamera cam)
// 	{
// 		this.renderer.render(batch, cam);
// 	}
// 
// 	public void update(float delta)
// 	{
// 		//System.out.println(this.angle);
// 		if (Math.abs(this.angle) > 360)
// 		{
// 			this.angle = 0;
// 		}
// 		if(Math.abs(this.angle) < 0)
// 		{
// 			this.angle = 360 * this.direction;
// 		}
// 		this.angle += this.direction * this.spin * delta;
// 		//this.setAngle(this.direction * this.spin * delta);
// 
// 		float scale_x = this.direction * (delta * 10f);
// 		float scale_y = this.direction * (delta * 10f);
// 
// 		this.position.add(new Vector2(scale_x, scale_y));
// 	}
// 
// 	public void dispose()
// 	{
// 		this.renderer.dispose();
// 	}
// }


import org.doublelong.jastroblast.entity.Asteroid;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.Mesh;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.VertexAttribute;
import com.badlogic.gdx.graphics.VertexAttributes.Usage;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
package org.doublelong.jastroblast.renderer;



public class AsteroidRenderer extends BaseRenderer
{

	private final Asteroid asteroid;
	private final Texture texture;

	public final Sprite sprite;

	public Mesh mesh;
// Path: jastroblast-core/src/org/doublelong/jastroblast/entity/Asteroid.java
// public class Asteroid
// {
// 
// 	private final Space space;
// 	public final Space getSpace() {return this.space; }
// 
// 	// TODO fix Height/Width, should be associated with the sprite
// 	private static final float WIDTH = 136f;
// 	private static final float HEIGHT = 111f;
// 
// 	private final Vector2 position;
// 	public Vector2 getPosition() { return this.position; }
// 
// 	private final Rectangle bounds;
// 	public Rectangle getBounds() { return this.bounds; }
// 
// 	public float getWidth() { return this.bounds.width; }
// 	public float getHeight() { return this.bounds.height; }
// 
// 	private final Vector2 velocity;
// 
// 	private float angle;
// 	public float getAngle() { return this.angle; }
// 	public void setAngle(float angle) { this.angle = angle; }
// 
// 	private final float spin;
// 	private final int direction;
// 
// 	public AsteroidRenderer renderer;
// 
// 	public Asteroid(Space space, Vector2 position)
// 	{
// 		this.space = space;
// 		this.position = position;
// 		this.velocity = new Vector2();
// 		this.bounds = new Rectangle(this.position.x, this.position.y, Asteroid.WIDTH, Asteroid.HEIGHT);
// 
// 		this.spin = (float) Math.random() * 100;
// 		this.direction = new Random().nextBoolean() ? 1 : -1;
// 
// 		this.renderer = new AsteroidRenderer(this);
// 	}
// 
// 	public void render(SpriteBatch batch, OrthographicCamera cam)
// 	{
// 		this.renderer.render(batch, cam);
// 	}
// 
// 	public void update(float delta)
// 	{
// 		//System.out.println(this.angle);
// 		if (Math.abs(this.angle) > 360)
// 		{
// 			this.angle = 0;
// 		}
// 		if(Math.abs(this.angle) < 0)
// 		{
// 			this.angle = 360 * this.direction;
// 		}
// 		this.angle += this.direction * this.spin * delta;
// 		//this.setAngle(this.direction * this.spin * delta);
// 
// 		float scale_x = this.direction * (delta * 10f);
// 		float scale_y = this.direction * (delta * 10f);
// 
// 		this.position.add(new Vector2(scale_x, scale_y));
// 	}
// 
// 	public void dispose()
// 	{
// 		this.renderer.dispose();
// 	}
// }


// Path: jastroblast-core/src/org/doublelong/jastroblast/renderer/AsteroidRenderer.java
import org.doublelong.jastroblast.entity.Asteroid;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.Mesh;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.VertexAttribute;
import com.badlogic.gdx.graphics.VertexAttributes.Usage;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;

package org.doublelong.jastroblast.renderer;



public class AsteroidRenderer extends BaseRenderer
{

	private final Asteroid asteroid;
	private final Texture texture;

	public final Sprite sprite;

	public Mesh mesh;
	public Mesh squareMesh;