Example usage for com.badlogic.gdx.graphics.glutils FileTextureData FileTextureData

List of usage examples for com.badlogic.gdx.graphics.glutils FileTextureData FileTextureData

Introduction

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

Prototype

public FileTextureData(FileHandle file, Pixmap preloadedPixmap, Format format, boolean useMipMaps) 

Source Link

Usage

From source file:org.teavm.gdx.emu.TextureDataEmulator.java

License:Apache License

public static TextureData loadFromFile(FileHandle file, Format format, boolean useMipMaps) {
    if (file == null) {
        return null;
    }//  ww  w  . jav a 2s  .com
    return new FileTextureData(file, new Pixmap(file), format, useMipMaps);
}