Package de.coreengine.asset
Class TextureData
- java.lang.Object
-
- de.coreengine.asset.TextureData
-
- All Implemented Interfaces:
Serializable
public class TextureData extends Object implements Serializable
Class that stores image data and represent and drive image- Author:
- Darius Dinger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TextureData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateKey(String key, boolean genMipmap, int filtering)Generating key to acces texture in asset databaseByteBuffergetData()IntegergetHeight()StringgetKey()IntegergetWidth()
-
-
-
Field Detail
-
data
public ByteBuffer data
-
width
public Integer width
-
height
public Integer height
-
key
public String key
-
-
Method Detail
-
generateKey
public void generateKey(String key, boolean genMipmap, int filtering)
Generating key to acces texture in asset database- Parameters:
key- Name of the key to generate (If key exist, this method returns)genMipmap- Generate mipmapfiltering- Filtering
-
getWidth
public Integer getWidth()
- Returns:
- Texture width in pixels
-
getHeight
public Integer getHeight()
- Returns:
- Texture height in pixels
-
getData
public ByteBuffer getData()
- Returns:
- Texture data
-
getKey
public String getKey()
- Returns:
- Texture key in asset database or null, if no loaded
-
-