LargeTexture

A Texture capable of storing many smaller Textures with offsets.

You can dynamically add pieces(Texture) 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)

Add another 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 index "idx".

getPieceTexture
Ref!Texture getPieceTexture(long idx)

Returns the Texture of the piece with index "idx".

opAssign
LargeTexture opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(LargeTexture 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.
setPieceOffset
void setPieceOffset(long idx, Vector2 ofs)

Sets the offset of the piece with 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.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

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

Static functions

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