Open Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
_getLayers
Called when the number of layers in the TextureLayered
is queried.
func _getLayers() -> Int32
Other members in extension
Types
Type members
Instance members
func getFormat(
) -> Image.Format Returns the current format being used by this texture. See
Image.Format
for details.func getHeight(
) -> Int32 Returns the height of the texture in pixels. Height is typically represented by the Y axis.
func getLayerData(layer: Int32
) -> Image? Returns an
Image
resource with the data from specifiedlayer
.func getLayeredType(
) -> TextureLayered.LayeredType Returns the
TextureLayered
’s type. The type determines how the data is accessed, with cubemaps having special types.func getLayers(
) -> Int32 Returns the number of referenced
Image
s.func getWidth(
) -> Int32 Returns the width of the texture in pixels. Width is typically represented by the X axis.
func hasMipmaps(
) -> Bool Returns
true
if the layers have generated mipmaps.
Show implementation details (6)
Hide implementation details
func _getFormat(
) -> Image.Format Called when the
TextureLayered
’s format is queried.func _getHeight(
) -> Int32 Called when the
TextureLayered
’s height is queried.func _getLayerData(layerIndex: Int32
) -> Image? Called when the data for a layer in the
TextureLayered
is queried.func _getLayeredType(
) -> UInt32 Called when the layers’ type in the
TextureLayered
is queried.func _getWidth(
) -> Int32 Called when the
TextureLayered
’s width queried.func _hasMipmaps(
) -> Bool Called when the presence of mipmaps in the
TextureLayered
is queried.