LargeTexture

Inherits: Texture < Resource < Reference < Object

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

Descripción

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.

Propiedades

int

flags

0 (overrides Texture)

Métodos

int

add_piece ( Vector2 ofs, Texture texture )

void

clear ( )

int

get_piece_count ( ) const

Vector2

get_piece_offset ( int idx ) const

Texture

get_piece_texture ( int idx ) const

void

set_piece_offset ( int idx, Vector2 ofs )

void

set_piece_texture ( int idx, Texture texture )

void

set_size ( Vector2 size )

Descripciones de Métodos

Añade texture a esta LargeTexture, empezando por el desplazamiento ofs.


  • void clear ( )

Limpia la LargeTexture.


  • int get_piece_count ( ) const

Devuelve el número de piezas que hay actualmente en este LargeTexture.


Devuelve el desplazamiento de la pieza con el índice idx.


Returns the Texture of the piece with the index idx.


Establece el desplazamiento de la pieza con el índice idx a ofs.


  • void set_piece_texture ( int idx, Texture texture )

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


Establece el tamaño de este LargeTexture.