AtlasTexture

Packs multiple small textures in a single, bigger one. Helps to optimize video memory costs and render calls.

Texture resource aimed at managing big textures files that pack multiple smaller textures. Consists of a Texture, a margin that defines the border width, and a region that defines the actual area of the AtlasTexture.

Members

Aliases

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

Functions

getAtlas
Ref!Texture getAtlas()
getMargin
Rect2 getMargin()
getRegion
Rect2 getRegion()
hasFilterClip
bool hasFilterClip()
opAssign
AtlasTexture opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(AtlasTexture 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.
setAtlas
void setAtlas(Texture atlas)
setFilterClip
void setFilterClip(bool enable)
setMargin
void setMargin(Rect2 margin)
setRegion
void setRegion(Rect2 region)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

atlas
Texture atlas [@property getter]
Texture atlas [@property setter]

The texture that contains the atlas. Can be any Texture subtype.

filterClip
bool filterClip [@property getter]
bool filterClip [@property setter]

If true clips the area outside of the region to avoid bleeding of the surrounding texture pixels.

margin
Rect2 margin [@property getter]
Rect2 margin [@property setter]

The margin around the region. The Rect2's 'size' parameter ('w' and 'h' in the editor) resizes the texture so it fits within the margin.

region
Rect2 region [@property getter]
Rect2 region [@property setter]

The AtlasTexture's used region.

Static functions

_new
AtlasTexture _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