// Path: 1.3.09-Solution-DrawTheDragonCurve/core/src/com/udacity/gamedev/dragoncurve/DragonCurve.java
// public class DragonCurve extends ApplicationAdapter {
// 
//     private float[] dragonCurve;
//     // Any more than 10 and we'll need to break up the polyline into multiple lines
//     private static final int RECURSIONS = 10;
// 
//     private ShapeRenderer shapeRenderer;
// 
//     @Override
//     public void create () {
//         dragonCurve = DragonCurveGenerator.generateDragonCurve(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), RECURSIONS);
//         shapeRenderer = new ShapeRenderer();
//     }
// 
//     @Override
//     public void render () {
//         Gdx.gl.glClearColor(0, 0, 0, 1);
//         Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
//         shapeRenderer.begin(ShapeType.Line);
//         shapeRenderer.polyline(dragonCurve);
//         shapeRenderer.end();
//     }
// }


import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.gwt.GwtApplication;
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration;
import com.udacity.gamedev.dragoncurve.DragonCurve;
package com.udacity.gamedev.dragoncurve.client;


public class HtmlLauncher extends GwtApplication {

        @Override
        public GwtApplicationConfiguration getConfig () {
                return new GwtApplicationConfiguration(480, 320);
        }

        @Override
        public ApplicationListener getApplicationListener () {
// Path: 1.3.09-Solution-DrawTheDragonCurve/core/src/com/udacity/gamedev/dragoncurve/DragonCurve.java
// public class DragonCurve extends ApplicationAdapter {
// 
//     private float[] dragonCurve;
//     // Any more than 10 and we'll need to break up the polyline into multiple lines
//     private static final int RECURSIONS = 10;
// 
//     private ShapeRenderer shapeRenderer;
// 
//     @Override
//     public void create () {
//         dragonCurve = DragonCurveGenerator.generateDragonCurve(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), RECURSIONS);
//         shapeRenderer = new ShapeRenderer();
//     }
// 
//     @Override
//     public void render () {
//         Gdx.gl.glClearColor(0, 0, 0, 1);
//         Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
//         shapeRenderer.begin(ShapeType.Line);
//         shapeRenderer.polyline(dragonCurve);
//         shapeRenderer.end();
//     }
// }


// Path: 1.3.09-Solution-DrawTheDragonCurve/html/src/com/udacity/gamedev/dragoncurve/client/HtmlLauncher.java
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.gwt.GwtApplication;
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration;
import com.udacity.gamedev.dragoncurve.DragonCurve;

package com.udacity.gamedev.dragoncurve.client;


public class HtmlLauncher extends GwtApplication {

        @Override
        public GwtApplicationConfiguration getConfig () {
                return new GwtApplicationConfiguration(480, 320);
        }

        @Override
        public ApplicationListener getApplicationListener () {
                return new DragonCurve();