Package engine.textures
Class Texture
java.lang.Object
engine.textures.Texture
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getWidth()
static Texture
loadTexture
(String path) Converts the texture image to a byteBuffer
-
Constructor Details
-
Texture
-
-
Method Details
-
getTextureID
public int getTextureID()- Returns:
- the ID of the Texture as stored in OpenGL
-
getBuffer
- Returns:
- the buffer created from the image
-
getWidth
public int getWidth()- Returns:
- the width of the texture
-
getHeight
public int getHeight()- Returns:
- the height of the texture
-
loadTexture
Converts the texture image to a byteBuffer- Parameters:
path
- is the name of the texture image- Returns:
- a Texture object
-