Example usage for com.badlogic.gdx.backends.headless.mock.graphics MockGraphics MockGraphics

List of usage examples for com.badlogic.gdx.backends.headless.mock.graphics MockGraphics MockGraphics

Introduction

In this page you can find the example usage for com.badlogic.gdx.backends.headless.mock.graphics MockGraphics MockGraphics.

Prototype

MockGraphics

Source Link

Usage

From source file:tdt4240.chess.GdxTestRunner.java

License:Apache License

public GdxTestRunner(Class<?> klass) throws InitializationError {
    super(klass);

    Gdx.gl = mock(GL20.class);
    Gdx.audio = new MockAudio();
    Gdx.graphics = new MockGraphics();

    HeadlessApplicationConfiguration conf = new HeadlessApplicationConfiguration();
    new HeadlessApplication(this, conf);
}