Package com.badlogic.gdx.graphics.glutils

Examples of com.badlogic.gdx.graphics.glutils.ImmediateModeRenderer20


  public void drawDebug (SpriteBatch batch) {
    if (getDebug() == DEBUG_NONE || debugRects == null) return;
    if (debugRenderer == null) {
      if (Gdx.graphics.isGL20Available())
        debugRenderer = new ImmediateModeRenderer20(64, false, true, 0);
      else
        debugRenderer = new ImmediateModeRenderer10(64);
    }

    Table table = getTable();
View Full Code Here


      if (table.debugRects == null) table.debugRects = new Array();
      table.debugRects.add(new DebugRect(type, x, table.getHeight() - y, w, h));
    }

    static void draw (Stage stage) {
      if (app != Gdx.app) debugRenderer = new ImmediateModeRenderer20(128, false, true, 0);

      debugRenderer.begin(stage.getBatch().getProjectionMatrix(), GL20.GL_LINES);
      draw(stage.getActors());
      debugRenderer.end();
    }
View Full Code Here

  public void drawDebug (SpriteBatch batch) {
    if (getDebug() == Debug.none || debugRects == null) return;
    if (debugRenderer == null) {
      if (Gdx.graphics.isGL20Available())
        debugRenderer = new ImmediateModeRenderer20(64, false, true, 0);
      else
        debugRenderer = new ImmediateModeRenderer10(64);
    }

    float x = 0, y = 0;
View Full Code Here

    this(5000);
  }

  public ShapeRenderer (int maxVertices) {
    if (Gdx.graphics.isGL20Available())
      renderer = new ImmediateModeRenderer20(maxVertices, false, true, 0);
    else
      renderer = new ImmediateModeRenderer10(maxVertices);
    projView.setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
    matrixDirty = true;
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.glutils.ImmediateModeRenderer20

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.