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§
Sourcefn get_format(self) -> TextureFormat
fn get_format(self) -> TextureFormat
get_format() overload
Sourcefn apply_impl(
self,
update_mipmaps: impl Into<bool>,
make_no_longer_readable: impl Into<bool>,
)
fn apply_impl( self, update_mipmaps: impl Into<bool>, make_no_longer_readable: impl Into<bool>, )
ApplyImpl(bool, bool) overload
Sourcefn update_external_texture(self, native_texture: impl Into<IntPtr>)
fn update_external_texture(self, native_texture: impl Into<IntPtr>)
UpdateExternalTexture(::unity::IntPtr) overload
Sourcefn get_is_readable(self) -> bool
fn get_is_readable(self) -> bool
get_isReadable() overload
Sourcefn set_pixel_impl(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
color: impl Into<Color>,
)
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
Sourcefn get_pixel_impl(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
) -> Color
fn get_pixel_impl( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color
GetPixelImpl(i32, i32, i32) overload
Sourcefn smooth_edges(self, smooth_region_width_in_pixels: impl Into<i32>)
fn smooth_edges(self, smooth_region_width_in_pixels: impl Into<i32>)
SmoothEdges(i32) overload
Sourcefn smooth_edges_2(self)
fn smooth_edges_2(self)
SmoothEdges() overload
Sourcefn get_pixels(
self,
face: impl Into<CubemapFace>,
miplevel: impl Into<i32>,
) -> Array<Color>
fn get_pixels( self, face: impl Into<CubemapFace>, miplevel: impl Into<i32>, ) -> Array<Color>
GetPixels(crate::unity_engine::cubemapface::CubemapFace, i32) overload
Sourcefn get_pixels_2(self, face: impl Into<CubemapFace>) -> Array<Color>
fn get_pixels_2(self, face: impl Into<CubemapFace>) -> Array<Color>
GetPixels(crate::unity_engine::cubemapface::CubemapFace) overload
Sourcefn set_pixels(
self,
colors: impl Into<Array<Color>>,
face: impl Into<CubemapFace>,
miplevel: impl Into<i32>,
)
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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn set_pixels_2(
self,
colors: impl Into<Array<Color>>,
face: impl Into<CubemapFace>,
)
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
Sourcefn get_writable_image_data(self, frame: impl Into<i32>) -> IntPtr
fn get_writable_image_data(self, frame: impl Into<i32>) -> IntPtr
GetWritableImageData(i32) overload
Sourcefn get_is_pre_processed(self) -> bool
fn get_is_pre_processed(self) -> bool
get_isPreProcessed() overload
Sourcefn get_streaming_mipmaps(self) -> bool
fn get_streaming_mipmaps(self) -> bool
get_streamingMipmaps() overload
Sourcefn get_streaming_mipmaps_priority(self) -> i32
fn get_streaming_mipmaps_priority(self) -> i32
get_streamingMipmapsPriority() overload
Sourcefn get_requested_mipmap_level(self) -> i32
fn get_requested_mipmap_level(self) -> i32
get_requestedMipmapLevel() overload
Sourcefn set_requested_mipmap_level(self, value: impl Into<i32>)
fn set_requested_mipmap_level(self, value: impl Into<i32>)
set_requestedMipmapLevel(i32) overload
Sourcefn get_load_all_mips(self) -> bool
fn get_load_all_mips(self) -> bool
get_loadAllMips() overload
Sourcefn set_load_all_mips(self, value: impl Into<bool>)
fn set_load_all_mips(self, value: impl Into<bool>)
set_loadAllMips(bool) overload
Sourcefn get_desired_mipmap_level(self) -> i32
fn get_desired_mipmap_level(self) -> i32
get_desiredMipmapLevel() overload
Sourcefn get_loading_mipmap_level(self) -> i32
fn get_loading_mipmap_level(self) -> i32
get_loadingMipmapLevel() overload
Sourcefn get_loaded_mipmap_level(self) -> i32
fn get_loaded_mipmap_level(self) -> i32
get_loadedMipmapLevel() overload
Sourcefn clear_requested_mipmap_level(self)
fn clear_requested_mipmap_level(self)
ClearRequestedMipmapLevel() overload
Sourcefn is_requested_mipmap_level_loaded(self) -> bool
fn is_requested_mipmap_level_loaded(self) -> bool
IsRequestedMipmapLevelLoaded() overload
Sourcefn ctor(
self,
width: impl Into<i32>,
format: impl Into<DefaultFormat>,
flags: impl Into<TextureCreationFlags>,
)
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
Sourcefn ctor_2(
self,
width: impl Into<i32>,
format: impl Into<GraphicsFormat>,
flags: impl Into<TextureCreationFlags>,
)
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
Sourcefn ctor_3(
self,
width: impl Into<i32>,
format: impl Into<TextureFormat>,
mip_count: impl Into<i32>,
)
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
Sourcefn ctor_4(
self,
width: impl Into<i32>,
format: impl Into<GraphicsFormat>,
flags: impl Into<TextureCreationFlags>,
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>, )
.ctor(i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, i32) overload
Sourcefn ctor_5(
self,
width: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_count: impl Into<i32>,
native_tex: impl Into<IntPtr>,
)
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
Sourcefn ctor_6(
self,
width: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_chain: impl Into<bool>,
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>, )
.ctor(i32, crate::unity_engine::textureformat::TextureFormat, bool, ::unity::IntPtr) overload
Sourcefn ctor_7(
self,
width: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_chain: impl Into<bool>,
)
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
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>, )
Sourcefn set_pixel(
self,
face: impl Into<CubemapFace>,
x: impl Into<i32>,
y: impl Into<i32>,
color: impl Into<Color>,
)
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
Sourcefn get_pixel(
self,
face: impl Into<CubemapFace>,
x: impl Into<i32>,
y: impl Into<i32>,
) -> Color
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
Sourcefn apply(
self,
update_mipmaps: impl Into<bool>,
make_no_longer_readable: impl Into<bool>,
)
fn apply( self, update_mipmaps: impl Into<bool>, make_no_longer_readable: impl Into<bool>, )
Apply(bool, bool) overload
Sourcefn set_pixel_impl_injected(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
) -> Color
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
Sourcefn get_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
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§
impl<__T: ICubemap> ICubemapMethods for __T
unity_engine-cubemap only.