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 TypeMethodDescriptionvoid
clear()
clone()
void
createImage
(int width, int height, int imageType) void
void
void
getBufferedImage
(float scaleFactor) boolean
isEqualTexture
(GaiaTexture compareTexture) It's a slow comparison of two textures, but it's accurate.boolean
isEqualTexture
(GaiaTexture compareTexture, float scaleFactor) void
void
loadImage
(float scaleFactor) void
resizeImage
(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
-