Example usage for com.badlogic.gdx.graphics Cubemap Cubemap

List of usage examples for com.badlogic.gdx.graphics Cubemap Cubemap

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics Cubemap Cubemap.

Prototype

public Cubemap(TextureData positiveX, TextureData negativeX, TextureData positiveY, TextureData negativeY,
        TextureData positiveZ, TextureData negativeZ) 

Source Link

Document

Construct a Cubemap with the specified TextureData 's for the sides

Usage

From source file:com.mbrlabs.mundus.commons.skybox.Skybox.java

License:Apache License

public void set(FileHandle positiveX, FileHandle negativeX, FileHandle positiveY, FileHandle negativeY,
        FileHandle positiveZ, FileHandle negativeZ) {
    if (cubemap != null) {
        cubemap.dispose();/*from   w  w w  . ja  v  a 2s.co m*/
    }
    cubemap = new Cubemap(positiveX, negativeX, positiveY, negativeY, positiveZ, negativeZ);
    this.positiveX = positiveX;
    this.negativeX = negativeX;
    this.positiveY = positiveY;
    this.negativeY = negativeY;
    this.positiveZ = positiveZ;
    this.negativeZ = negativeZ;
}