ImageTexture

A Texture based on an Image.

Can be created from an Image with createFromImage.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
Storage
enum Storage

Functions

_reloadHook
void _reloadHook(RID rid)
create
void create(long width, long height, long format, long flags)

Create a new ImageTexture with "width" and "height". "format" one of Image.FORMAT_*. "flags" one or more of Texture.FLAG_*.

createFromImage
void createFromImage(Image image, long flags)

Create a new ImageTexture from an Image with "flags" from Texture.FLAG_*. An sRGB to linear color space conversion can take place, according to Image.FORMAT_*.

getFormat
Image.Format getFormat()

Return the format of the ImageTexture, one of Image.FORMAT_*.

getLossyStorageQuality
double getLossyStorageQuality()
getStorage
ImageTexture.Storage getStorage()
load
GodotError load(StringArg0 path)

Load an ImageTexture from a file path.

opAssign
ImageTexture opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(ImageTexture other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setData
void setData(Image image)

Set the Image of this ImageTexture.

setLossyStorageQuality
void setLossyStorageQuality(double quality)
setSizeOverride
void setSizeOverride(Vector2 size)

Resizes the ImageTexture to the specified dimensions.

setStorage
void setStorage(long mode)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

lossyQuality
double lossyQuality [@property setter]

The storage quality for ImageTexture.STORAGE_COMPRESS_LOSSY.

lossyQuality
double lossyQuality [@property getter]

The storage quality for ImageTexture.STORAGE_COMPRESS_LOSSY.

storage
ImageTexture.Storage storage [@property getter]
long storage [@property setter]

The storage type (raw, lossy, or compressed).

Static functions

_new
ImageTexture _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta