Welcome to the Godot Reference Fork and the Godot Proposals Fork alternatives. Why?

LargeTexture

0 0 vote
Article Rating

Inherits: Texture < Resource < Reference < Object

A Texture capable of storing many smaller textures with offsets.

Description

A Texture capable of storing many smaller textures with offsets.

You can dynamically add pieces (Textures) to this LargeTexture using different offsets.

Properties

intflagsO: 0

Methods

intadd_piece ( Vector2 ofs, Texture texture )
voidclear ( )
intget_piece_count ( ) const
Vector2get_piece_offset ( int idx ) const
Textureget_piece_texture ( int idx ) const
voidset_piece_offset ( int idx, Vector2 ofs )
voidset_piece_texture ( int idx, Texture texture )
voidset_size ( Vector2 size )

Method Descriptions

Adds texture to this LargeTexture, starting on offset ofs.


  • void clear ( )

Clears the LargeTexture.


  • int get_piece_count ( ) const

Returns the number of pieces currently in this LargeTexture.


Returns the offset of the piece with the index idx.


Returns the Texture of the piece with the index idx.


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


  • void set_piece_texture ( int idx, Texture texture )

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


Sets the size of this LargeTexture.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x