Struct ImageTexture
A Texture based on an Image.
struct ImageTexture
;
Can be created from an Image with createFromImage.
Properties
| Name | Type | Description |
|---|---|---|
lossyQuality[get, set]
|
double | The storage quality for constant STORAGE_COMPRESS_LOSSY.
|
storage[get, set]
|
ImageTexture | The storage type (raw, lossy, or compressed). |
Methods
| Name | Description |
|---|---|
_reloadHook
|
|
create
|
Create a new ImageTexture with width and height.
format is a value from Image, flags is any combination of Texture.
|
createFromImage
|
Create a new ImageTexture from an Image with flags from Texture. An sRGB to linear color space conversion can take place, according to Image.
|
getFormat
|
Returns the format of the ImageTexture, one of Image.
|
getLossyStorageQuality
|
|
getStorage
|
|
load
|
Load an ImageTexture from a file path.
|
setData
|
Sets the Image of this ImageTexture.
|
setLossyStorageQuality
|
|
setSizeOverride
|
Resizes the ImageTexture to the specified dimensions.
|
setStorage
|
Enums
| Name | Description |
|---|---|
Constants
|
|
Storage
|