TextureLayered

Base class for 3D texture types.

Base class for Texture3D and TextureArray. Cannot be used directly, but contains all the functions necessary for accessing and using Texture3D and TextureArray. Data is set on a per-layer basis. For Texture3Ds, the layer specifies the depth or Z-index, they can be treated as a bunch of 2D slices. Similarly, for TextureArrays, the layer specifies the array layer.

Members

Aliases

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

Enums

Constants
enum Constants
Flags
enum Flags

Functions

_getData
Dictionary _getData()
_setData
void _setData(Dictionary data)
create
void create(long width, long height, long depth, long format, long flags)

Creates the Texture3D or TextureArray with specified width, height, and depth. See Image.format for format options. See flags enumerator for flags options.

getDepth
long getDepth()

Returns the depth of the texture. Depth is the 3rd dimension (typically Z-axis).

getFlags
long getFlags()
getFormat
Image.Format getFormat()

Returns the current format being used by this texture. See Image.format for details.

getHeight
long getHeight()

Returns the height of the texture. Height is typically represented by the Y-axis.

getLayerData
Ref!Image getLayerData(long layer)

Returns an Image resource with the data from specified layer.

getWidth
long getWidth()

Returns the width of the texture. Width is typically represented by the X-axis.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(TextureLayered other)
opEquals
bool opEquals(typeof(null) n)
setDataPartial
void setDataPartial(Image image, long x_offset, long y_offset, long layer, long mipmap)

Partially sets the data for a specified layer by overwriting using the data of the specified image. x_offset and y_offset determine where the Image is "stamped" over the texture. The image must fit within the texture.

setFlags
void setFlags(long flags)
setLayerData
void setLayerData(Image image, long layer)

Sets the data for the specified layer. Data takes the form of a 2-dimensional Image resource.

toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

data
Dictionary data [@property getter]
Dictionary data [@property setter]

Returns a dictionary with all the data used by this texture.

flags
long flags [@property getter]
long flags [@property setter]

Specifies which flags apply to this texture.

Static functions

_new
TextureLayered _new()

Construct a new instance of TextureLayered. Note: use memnew!TextureLayered 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