Package org.collebol.engine.gui.graphics
Class Texture
java.lang.Object
org.collebol.engine.gui.graphics.Texture
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
Texture
This method you can construct your Texture object.- Parameters:
filePath- path to your.pngfile.id- unique texture number/ID.
-
-
Method Details
-
bind
public void bind() -
getId
public int getId()
-