public void DrawObject(ObjectOnDisplay obj, OpenGL gl) { ShipTexturesHelper.GetShipTexture(gl, ((MapEnemy)obj.GameObject).Data.ShipName).Bind(gl); var size = new Size(80, 80); DrawHelper.Draw(obj, gl, size, ((MapEnemy)obj.GameObject).Angle); }
public void DrawObject(ObjectOnDisplay obj, OpenGL gl) { ShipTexturesHelper.GetShipTexture(gl, ((Player)obj.GameObject).Data.ShipName).Bind(gl); DrawHelper.Draw(obj, gl, obj.GameObject.Size, ((Player)obj.GameObject).Angle); }
public void DrawObject(ObjectOnDisplay obj, OpenGL gl) { ShipTexturesHelper.GetShipTexture(gl, ((BattleEnemy)obj.GameObject).Data.ShipName).Bind(gl); DrawHelper.Draw(obj, gl, new Size(100, 110), ((BattleEnemy)obj.GameObject).Angle); }