Skip to main content

ICubemapMethods

Trait ICubemapMethods 

Source
pub trait ICubemapMethods: ICubemap {
Show 42 methods // Provided methods fn get_format(self) -> TextureFormat { ... } fn apply_impl( self, update_mipmaps: impl Into<bool>, make_no_longer_readable: impl Into<bool>, ) { ... } fn update_external_texture(self, native_texture: impl Into<IntPtr>) { ... } fn get_is_readable(self) -> bool { ... } fn set_pixel_impl( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, color: impl Into<Color>, ) { ... } fn get_pixel_impl( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color { ... } fn smooth_edges(self, smooth_region_width_in_pixels: impl Into<i32>) { ... } fn smooth_edges_2(self) { ... } fn get_pixels( self, face: impl Into<CubemapFace>, miplevel: impl Into<i32>, ) -> Array<Color> { ... } fn get_pixels_2(self, face: impl Into<CubemapFace>) -> Array<Color> { ... } fn set_pixels( self, colors: impl Into<Array<Color>>, face: impl Into<CubemapFace>, miplevel: impl Into<i32>, ) { ... } fn set_pixel_data_impl_array( self, data: impl Into<IlInstance>, mip_level: impl Into<i32>, face: impl Into<i32>, element_size: impl Into<i32>, data_array_size: impl Into<i32>, source_data_start_index: impl Into<i32>, ) -> bool { ... } fn set_pixel_data_impl( self, data: impl Into<IntPtr>, mip_level: impl Into<i32>, face: impl Into<i32>, element_size: impl Into<i32>, data_array_size: impl Into<i32>, source_data_start_index: impl Into<i32>, ) -> bool { ... } fn set_pixels_2( self, colors: impl Into<Array<Color>>, face: impl Into<CubemapFace>, ) { ... } fn get_writable_image_data(self, frame: impl Into<i32>) -> IntPtr { ... } fn get_is_pre_processed(self) -> bool { ... } fn get_streaming_mipmaps(self) -> bool { ... } fn get_streaming_mipmaps_priority(self) -> i32 { ... } fn get_requested_mipmap_level(self) -> i32 { ... } fn set_requested_mipmap_level(self, value: impl Into<i32>) { ... } fn get_load_all_mips(self) -> bool { ... } fn set_load_all_mips(self, value: impl Into<bool>) { ... } fn get_desired_mipmap_level(self) -> i32 { ... } fn get_loading_mipmap_level(self) -> i32 { ... } fn get_loaded_mipmap_level(self) -> i32 { ... } fn clear_requested_mipmap_level(self) { ... } fn is_requested_mipmap_level_loaded(self) -> bool { ... } fn ctor( self, width: impl Into<i32>, format: impl Into<DefaultFormat>, flags: impl Into<TextureCreationFlags>, ) { ... } fn ctor_2( self, width: impl Into<i32>, format: impl Into<GraphicsFormat>, flags: impl Into<TextureCreationFlags>, ) { ... } fn ctor_3( self, width: impl Into<i32>, format: impl Into<TextureFormat>, mip_count: impl Into<i32>, ) { ... } fn ctor_4( self, width: impl Into<i32>, format: impl Into<GraphicsFormat>, flags: impl Into<TextureCreationFlags>, mip_count: impl Into<i32>, ) { ... } fn ctor_5( self, width: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_count: impl Into<i32>, native_tex: impl Into<IntPtr>, ) { ... } fn ctor_6( self, width: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_chain: impl Into<bool>, native_tex: impl Into<IntPtr>, ) { ... } fn ctor_7( self, width: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_chain: impl Into<bool>, ) { ... } fn set_pixel_data<M0: IlType + Copy + ClassIdentity>( self, data: impl Into<Array<M0>>, mip_level: impl Into<i32>, face: impl Into<CubemapFace>, source_data_start_index: impl Into<i32>, ) { ... } fn set_pixel( self, face: impl Into<CubemapFace>, x: impl Into<i32>, y: impl Into<i32>, color: impl Into<Color>, ) { ... } fn get_pixel( self, face: impl Into<CubemapFace>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color { ... } fn apply( self, update_mipmaps: impl Into<bool>, make_no_longer_readable: impl Into<bool>, ) { ... } fn apply_2(self, update_mipmaps: impl Into<bool>) { ... } fn apply_3(self) { ... } fn set_pixel_impl_injected( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color { ... } fn get_pixel_impl_injected( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color { ... }
}

Provided Methods§

Source

fn get_format(self) -> TextureFormat

get_format() overload

Source

fn apply_impl( self, update_mipmaps: impl Into<bool>, make_no_longer_readable: impl Into<bool>, )

ApplyImpl(bool, bool) overload

Source

fn update_external_texture(self, native_texture: impl Into<IntPtr>)

UpdateExternalTexture(::unity::IntPtr) overload

Source

fn get_is_readable(self) -> bool

get_isReadable() overload

Source

fn set_pixel_impl( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, color: impl Into<Color>, )

SetPixelImpl(i32, i32, i32, crate::unity_engine::color::Color) overload

Source

fn get_pixel_impl( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color

GetPixelImpl(i32, i32, i32) overload

Source

fn smooth_edges(self, smooth_region_width_in_pixels: impl Into<i32>)

SmoothEdges(i32) overload

Source

fn smooth_edges_2(self)

SmoothEdges() overload

Source

fn get_pixels( self, face: impl Into<CubemapFace>, miplevel: impl Into<i32>, ) -> Array<Color>

GetPixels(crate::unity_engine::cubemapface::CubemapFace, i32) overload

Source

fn get_pixels_2(self, face: impl Into<CubemapFace>) -> Array<Color>

GetPixels(crate::unity_engine::cubemapface::CubemapFace) overload

Source

fn set_pixels( self, colors: impl Into<Array<Color>>, face: impl Into<CubemapFace>, miplevel: impl Into<i32>, )

SetPixels(::unity::Array<crate::unity_engine::color::Color>, crate::unity_engine::cubemapface::CubemapFace, i32) overload

Source

fn set_pixel_data_impl_array( self, data: impl Into<IlInstance>, mip_level: impl Into<i32>, face: impl Into<i32>, element_size: impl Into<i32>, data_array_size: impl Into<i32>, source_data_start_index: impl Into<i32>, ) -> bool

SetPixelDataImplArray(::unity::IlInstance, i32, i32, i32, i32, i32) overload

Source

fn set_pixel_data_impl( self, data: impl Into<IntPtr>, mip_level: impl Into<i32>, face: impl Into<i32>, element_size: impl Into<i32>, data_array_size: impl Into<i32>, source_data_start_index: impl Into<i32>, ) -> bool

SetPixelDataImpl(::unity::IntPtr, i32, i32, i32, i32, i32) overload

Source

fn set_pixels_2( self, colors: impl Into<Array<Color>>, face: impl Into<CubemapFace>, )

SetPixels(::unity::Array<crate::unity_engine::color::Color>, crate::unity_engine::cubemapface::CubemapFace) overload

Source

fn get_writable_image_data(self, frame: impl Into<i32>) -> IntPtr

GetWritableImageData(i32) overload

Source

fn get_is_pre_processed(self) -> bool

get_isPreProcessed() overload

Source

fn get_streaming_mipmaps(self) -> bool

get_streamingMipmaps() overload

Source

fn get_streaming_mipmaps_priority(self) -> i32

get_streamingMipmapsPriority() overload

Source

fn get_requested_mipmap_level(self) -> i32

get_requestedMipmapLevel() overload

Source

fn set_requested_mipmap_level(self, value: impl Into<i32>)

set_requestedMipmapLevel(i32) overload

Source

fn get_load_all_mips(self) -> bool

get_loadAllMips() overload

Source

fn set_load_all_mips(self, value: impl Into<bool>)

set_loadAllMips(bool) overload

Source

fn get_desired_mipmap_level(self) -> i32

get_desiredMipmapLevel() overload

Source

fn get_loading_mipmap_level(self) -> i32

get_loadingMipmapLevel() overload

Source

fn get_loaded_mipmap_level(self) -> i32

get_loadedMipmapLevel() overload

Source

fn clear_requested_mipmap_level(self)

ClearRequestedMipmapLevel() overload

Source

fn is_requested_mipmap_level_loaded(self) -> bool

IsRequestedMipmapLevelLoaded() overload

Source

fn ctor( self, width: impl Into<i32>, format: impl Into<DefaultFormat>, flags: impl Into<TextureCreationFlags>, )

.ctor(i32, crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags) overload

Source

fn ctor_2( self, width: impl Into<i32>, format: impl Into<GraphicsFormat>, flags: impl Into<TextureCreationFlags>, )

.ctor(i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags) overload

Source

fn ctor_3( self, width: impl Into<i32>, format: impl Into<TextureFormat>, mip_count: impl Into<i32>, )

.ctor(i32, crate::unity_engine::textureformat::TextureFormat, i32) overload

Source

fn ctor_4( self, width: impl Into<i32>, format: impl Into<GraphicsFormat>, flags: impl Into<TextureCreationFlags>, mip_count: impl Into<i32>, )

.ctor(i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, i32) overload

Source

fn ctor_5( self, width: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_count: impl Into<i32>, native_tex: impl Into<IntPtr>, )

.ctor(i32, crate::unity_engine::textureformat::TextureFormat, i32, ::unity::IntPtr) overload

Source

fn ctor_6( self, width: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_chain: impl Into<bool>, native_tex: impl Into<IntPtr>, )

.ctor(i32, crate::unity_engine::textureformat::TextureFormat, bool, ::unity::IntPtr) overload

Source

fn ctor_7( self, width: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_chain: impl Into<bool>, )

.ctor(i32, crate::unity_engine::textureformat::TextureFormat, bool) overload

Source

fn set_pixel_data<M0: IlType + Copy + ClassIdentity>( self, data: impl Into<Array<M0>>, mip_level: impl Into<i32>, face: impl Into<CubemapFace>, source_data_start_index: impl Into<i32>, )

Source

fn set_pixel( self, face: impl Into<CubemapFace>, x: impl Into<i32>, y: impl Into<i32>, color: impl Into<Color>, )

SetPixel(crate::unity_engine::cubemapface::CubemapFace, i32, i32, crate::unity_engine::color::Color) overload

Source

fn get_pixel( self, face: impl Into<CubemapFace>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color

GetPixel(crate::unity_engine::cubemapface::CubemapFace, i32, i32) overload

Source

fn apply( self, update_mipmaps: impl Into<bool>, make_no_longer_readable: impl Into<bool>, )

Apply(bool, bool) overload

Source

fn apply_2(self, update_mipmaps: impl Into<bool>)

Apply(bool) overload

Source

fn apply_3(self)

Apply() overload

Source

fn set_pixel_impl_injected( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color

SetPixelImpl_Injected(i32, i32, i32, *mutcrate::unity_engine::color::Color) overload

Source

fn get_pixel_impl_injected( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color

GetPixelImpl_Injected(i32, i32, i32, *mutcrate::unity_engine::color::Color) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: ICubemap> ICubemapMethods for __T

Available on crate feature unity_engine-cubemap only.