LargeTexture

Deprecated. A Texture capable of storing many smaller textures with offsets.

Deprecated (will be removed in Godot 4.0). A Texture capable of storing many smaller textures with offsets. You can dynamically add pieces (Textures) to this LargeTexture using different offsets.

Members

Aliases

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

Functions

_getData
Array _getData()
_setData
void _setData(Array data)
addPiece
long addPiece(Vector2 ofs, Texture texture)

Adds texture to this LargeTexture, starting on offset ofs.

clear
void clear()

Clears the LargeTexture.

getPieceCount
long getPieceCount()

Returns the number of pieces currently in this LargeTexture.

getPieceOffset
Vector2 getPieceOffset(long idx)

Returns the offset of the piece with the index idx.

getPieceTexture
Ref!Texture getPieceTexture(long idx)

Returns the Texture of the piece with the index idx.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(LargeTexture other)
opEquals
bool opEquals(typeof(null) n)
setPieceOffset
void setPieceOffset(long idx, Vector2 ofs)

Sets the offset of the piece with the index idx to ofs.

setPieceTexture
void setPieceTexture(long idx, Texture texture)

Sets the Texture of the piece with index idx to texture.

setSize
void setSize(Vector2 size)

Sets the size of this LargeTexture.

toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

_data
Array _data [@property getter]
Array _data [@property setter]

Static functions

_new
LargeTexture _new()

Construct a new instance of LargeTexture. Note: use memnew!LargeTexture instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
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
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(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