Docs.rs
ugli-0.17.2
ugli 0.17.2
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
kuviman
Dependencies
batbox-color ^0.16
normal
batbox-la ^0.16
normal
batbox-range ^0.16
normal
derive_more ^0.99
normal
field-offset ^0.3
normal
image ^0.24
normal
log ^0.4
normal
num_enum ^0.7
normal
serde ^1
normal
thiserror ^1
normal
ugli-derive ^0.17
normal
ugli-raw ^0.17
normal
glutin ^0.31
normal
serde-wasm-bindgen ^0.6
normal
wasm-bindgen ^0.2
normal
web-sys ^0.3
normal
Versions
Platform
wasm32-unknown-unknown
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
ugli
0.17.2
Texture
Aliased type
Methods
from_html_image_element
from_image_image
gen_mipmaps
new_with
In crate ugli
?
Type Alias
ugli
::
Texture
source
·
[
−
]
pub type Texture =
Texture2d
<
Rgba
<
f32
>>;
Aliased Type
§
struct Texture {
/* private fields */
}
Implementations
§
source
§
impl
Texture
source
pub fn
gen_mipmaps
(&mut self)
source
pub fn
new_with
<F:
FnMut
(
vec2
<
usize
>) ->
Rgba
<
f32
>>( ugli: &
Ugli
, size:
vec2
<
usize
>, f: F ) -> Self
source
pub fn
from_image_image
(ugli: &
Ugli
, image:
RgbaImage
) -> Self
source
pub fn
from_html_image_element
( ugli: &
Ugli
, image: &
HtmlImageElement
, premultiply_alpha:
bool
) -> Self