Package com.gaia3d.basic.model
Class GaiaTexture
java.lang.Object
com.gaia3d.basic.model.structure.TextureStructure
com.gaia3d.basic.model.GaiaTexture
- All Implemented Interfaces:
Serializable
A class that represents a texture of a Gaia object.
It contains the texture name, path, type, width, height, format, byteLength, and byteBuffer.
The byteBuffer is used to create a texture.
The byteBuffer is created by reading the texture file.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()voidcreateImage(int width, int height, int imageType) voidvoidvoidgetBufferedImage(float scaleFactor) booleanisEqualTexture(GaiaTexture compareTexture) It's a slow comparison of two textures, but it's accurate.booleanisEqualTexture(GaiaTexture compareTexture, float scaleFactor) voidvoidloadImage(float scaleFactor) voidresizeImage(int width, int height) void
-
Constructor Details
-
GaiaTexture
public GaiaTexture()
-
-
Method Details
-
loadImage
public void loadImage() -
saveImage
-
flipImageY
public void flipImageY() -
getFullPath
-
createImage
public void createImage(int width, int height, int imageType) -
fillImage
-
loadImage
public void loadImage(float scaleFactor) -
resizeImage
public void resizeImage(int width, int height) -
getBufferedImage
-
getBufferedImageWithCache
-
getBufferedImage
-
deleteObjects
public void deleteObjects() -
isEqualTexture
It's a slow comparison of two textures, but it's accurate. -
isEqualTexture
-
clear
public void clear() -
clone
-