All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mathiewz.slick.opengl.ImageData Maven / Gradle / Ivy

Go to download

The main purpose of this libraryis to modernize and maintain the slick2D library.

The newest version!
package com.github.mathiewz.slick.opengl;

import java.nio.ByteBuffer;

/**
 * A description of any class providing ImageData in a form suitable for OpenGL texture
 * creation.
 *
 * @author kevin
 */
public interface ImageData {

    /**
     * Get the last bit depth read from a TGA
     *
     * @return The last bit depth read
     */
    public int getDepth();

    /**
     * Get the last width read from a TGA
     *
     * @return Get the last width in pixels fread from a TGA
     */
    public int getWidth();

    /**
     * Get the last height read from a TGA
     *
     * @return Get the last height in pixels fread from a TGA
     */
    public int getHeight();

    /**
     * Get the last required texture width for a loaded image
     *
     * @return Get the ast required texture width for a loaded image
     */
    public int getTexWidth();

    /**
     * Get the ast required texture height for a loaded image
     *
     * @return Get the ast required texture height for a loaded image
     */
    public int getTexHeight();

    /**
     * Get the store image
     *
     * @return The stored image
     */
    public ByteBuffer getImageBufferData();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy