Class Texture

java.lang.Object
org.collebol.client.gui.graphics.Texture

public class Texture extends Object
The Texture class represents a texture in the EJGEngine. It is responsible for loading a texture file (.png) and creating a OpenGL texture from it.

Usage:

     Texture texture = new Texture(
         "path/to/texture.png", //from resources
         0 //id = unique texture number/id
     );
 
Since:
1.0-dev
Author:
ColleBol - contact@collebol.org
  • Constructor Details

    • Texture

      public Texture(String filePath, int id)
      This method you can construct your Texture object.
      Parameters:
      filePath - path to your .png file.
      id - unique texture number/ID.
  • Method Details

    • bind

      public void bind()
    • getId

      public int getId()