Example usage for com.badlogic.gdx.graphics.g3d ModelBatch begin

List of usage examples for com.badlogic.gdx.graphics.g3d ModelBatch begin

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g3d ModelBatch begin.

Prototype

public void begin(final Camera cam) 

Source Link

Document

Start rendering one or more Renderable s.

Usage

From source file:com.mbrlabs.mundus.editor.tools.picker.ToolHandlePicker.java

License:Apache License

private void renderPickableScene(ToolHandle[] handles, ModelBatch batch, PerspectiveCamera cam) {
    batch.begin(cam);
    for (ToolHandle handle : handles) {
        handle.renderPick(batch);/*w  w  w.j  a v  a  2  s  .c  o  m*/
    }
    batch.end();
}

From source file:com.mbrlabs.mundus.utils.Compass.java

License:Apache License

public void render(ModelBatch batch) {
    update();
    batch.begin(ownCam);
    batch.render(compassInstance);
    batch.end();
}