Skip to main content

TextureLayer

Struct TextureLayer 

Source
pub struct TextureLayer { /* private fields */ }
Expand description

LAYR — Texture layer (v0–v26, 352–464 bytes)

A single texture binding with animated color tint, UV transforms, flipbook parameters, fresnel settings, and AVI video playback controls. Materials embed multiple optional TextureLayer instances for diffuse, specular, emissive, normal, and other texture slots.

Implementations§

Source§

impl TextureLayer

Source

pub fn new() -> Self

§Panics

Panics if the native allocation fails.

Source

pub fn id(&self) -> u32

Layer identifier

Source

pub fn set_id(&mut self, value: u32)

Source

pub fn texture_path(&self) -> String

Texture file path (Ref<CHAR>)

Source

pub fn set_texture_path(&mut self, value: &str)

Source

pub fn color(&self) -> Ref<'_, AnimRefM3ColorBGRA>

Animated color tint Borrows the field in place — no copy, no allocation.

Source

pub fn color_mut(&mut self) -> RefMut<'_, AnimRefM3ColorBGRA>

Source

pub fn flags(&self) -> TextureLayerFlag

Layer flags (wrap, flipbook, video, etc.)

Source

pub fn set_flags(&mut self, value: TextureLayerFlag)

Source

pub fn uv_mapping(&self) -> UVMappingMode

UV mapping source

Source

pub fn set_uv_mapping(&mut self, value: UVMappingMode)

Source

pub fn color_type(&self) -> ColorChannelSelect

Channel selection

Source

pub fn set_color_type(&mut self, value: ColorChannelSelect)

Source

pub fn rgb_multiply(&self) -> Ref<'_, AnimRefF32>

RGB multiply factor Borrows the field in place — no copy, no allocation.

Source

pub fn rgb_multiply_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn rgb_add(&self) -> Ref<'_, AnimRefF32>

RGB additive factor Borrows the field in place — no copy, no allocation.

Source

pub fn rgb_add_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn poc_texture(&self) -> u32

POC texture reference

Source

pub fn set_poc_texture(&mut self, value: u32)

Source

pub fn noise_amplitude(&self) -> f32

Noise amplitude (v24+)

Source

pub fn set_noise_amplitude(&mut self, value: f32)

Source

pub fn noise_frequency(&self) -> f32

Noise frequency (v24+)

Source

pub fn set_noise_frequency(&mut self, value: f32)

Source

pub fn texture_source(&self) -> u32

Texture source override

Source

pub fn set_texture_source(&mut self, value: u32)

Source

pub fn avi_frame_rate(&self) -> u32

AVI playback frame rate

Source

pub fn set_avi_frame_rate(&mut self, value: u32)

Source

pub fn avi_start(&self) -> u32

AVI start frame

Source

pub fn set_avi_start(&mut self, value: u32)

Source

pub fn avi_stop(&self) -> u32

AVI stop frame

Source

pub fn set_avi_stop(&mut self, value: u32)

Source

pub fn avi_loop(&self) -> u32

AVI loop mode

Source

pub fn set_avi_loop(&mut self, value: u32)

Source

pub fn avi_sync(&self) -> u32

AVI sync mode

Source

pub fn set_avi_sync(&mut self, value: u32)

Source

pub fn avi_play(&self) -> Ref<'_, AnimRefU32>

AVI play control Borrows the field in place — no copy, no allocation.

Source

pub fn avi_play_mut(&mut self) -> RefMut<'_, AnimRefU32>

Source

pub fn avi_restart(&self) -> Ref<'_, AnimRefU32>

AVI restart control Borrows the field in place — no copy, no allocation.

Source

pub fn avi_restart_mut(&mut self) -> RefMut<'_, AnimRefU32>

Source

pub fn flipbook_rows(&self) -> u32

Flipbook grid rows

Source

pub fn set_flipbook_rows(&mut self, value: u32)

Source

pub fn flipbook_columns(&self) -> u32

Flipbook grid columns

Source

pub fn set_flipbook_columns(&mut self, value: u32)

Source

pub fn current_frame(&self) -> Ref<'_, AnimRefU16>

Animated flipbook frame index Borrows the field in place — no copy, no allocation.

Source

pub fn current_frame_mut(&mut self) -> RefMut<'_, AnimRefU16>

Source

pub fn uv_offset(&self) -> Ref<'_, AnimRefVector2f>

Animated UV offset Borrows the field in place — no copy, no allocation.

Source

pub fn uv_offset_mut(&mut self) -> RefMut<'_, AnimRefVector2f>

Source

pub fn uv_angle(&self) -> Ref<'_, AnimRefVector3f>

Animated UV rotation angles Borrows the field in place — no copy, no allocation.

Source

pub fn uv_angle_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

Source

pub fn uv_tiling(&self) -> Ref<'_, AnimRefVector2f>

Animated UV tiling Borrows the field in place — no copy, no allocation.

Source

pub fn uv_tiling_mut(&mut self) -> RefMut<'_, AnimRefVector2f>

Source

pub fn w_offset(&self) -> Ref<'_, AnimRefF32>

Animated W offset (3D textures) Borrows the field in place — no copy, no allocation.

Source

pub fn w_offset_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn w_tiling(&self) -> Ref<'_, AnimRefF32>

Animated W tiling (3D textures) Borrows the field in place — no copy, no allocation.

Source

pub fn w_tiling_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn map_alpha(&self) -> Ref<'_, AnimRefF32>

Animated map alpha Borrows the field in place — no copy, no allocation.

Source

pub fn map_alpha_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn triplanar_offset(&self) -> Ref<'_, AnimRefVector3f>

Tri-planar UV offset (v23+) Borrows the field in place — no copy, no allocation.

Source

pub fn triplanar_offset_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

Source

pub fn triplanar_scale(&self) -> Ref<'_, AnimRefVector3f>

Tri-planar UV scale (v23+) Borrows the field in place — no copy, no allocation.

Source

pub fn triplanar_scale_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

UV source related field

Source

pub fn fresnel_mode(&self) -> FresnelMode

Fresnel effect mode

Source

pub fn set_fresnel_mode(&mut self, value: FresnelMode)

Source

pub fn fresnel_exponent(&self) -> f32

Fresnel exponent (edge sharpness)

Source

pub fn set_fresnel_exponent(&mut self, value: f32)

Source

pub fn fresnel_min(&self) -> f32

Fresnel minimum intensity

Source

pub fn set_fresnel_min(&mut self, value: f32)

Source

pub fn fresnel_max(&self) -> f32

Fresnel maximum intensity

Source

pub fn set_fresnel_max(&mut self, value: f32)

Source

pub fn fresnel_translation(&self) -> Vector3f

Fresnel UV translation (v25+)

Source

pub fn set_fresnel_translation(&mut self, value: Vector3f)

Source

pub fn fresnel_mask(&self) -> Vector3f

Fresnel mask vector (v25+)

Source

pub fn set_fresnel_mask(&mut self, value: Vector3f)

Source

pub fn fresnel_rotation(&self) -> Vector2f

Fresnel UV rotation (v25+)

Source

pub fn set_fresnel_rotation(&mut self, value: Vector2f)

Source

pub fn uv_density(&self) -> u32

UV density hint (v0–v25, absent in v26)

Source

pub fn set_uv_density(&mut self, value: u32)

Trait Implementations§

Source§

impl Debug for TextureLayer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TextureLayer

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for TextureLayer

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Send for TextureLayer

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.