Docs.rs
grafix-toolbox-0.8.33
grafix-toolbox 0.8.33
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
installgentoo
Dependencies
bitflags ^2
normal
faster-hex ^0.10
normal
optional
fastrand ^2
normal
optional
futures-lite ^2
normal
gl ^0.14
normal
grafix-toolbox-macros ^1
normal
half ^2
normal
image ^0.25
normal
nalgebra ^0.34
normal
notify ^8
normal
optional
parking_lot ^0.12
normal
rusttype ^0.9
normal
optional
sdl2 ^0.38
normal
serde ^1
normal
optional
serde_json ^1
normal
optional
tobj ^4
normal
optional
tokio ^1
normal
tokio-stream ^0.1
normal
yansi ^1
normal
zstd ^0.13
normal
optional
Versions
1.88%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Tex2d
grafix_
toolbox
0.8.33
Tex2d
Aliased Type
Methods
Cast
Cut
from_type
Trait Implementations
From<T>
In grafix_
toolbox::
GL
grafix_toolbox
::
GL
Type Alias
Tex2d
Copy item path
Source
pub type Tex2d<S, F> =
Tex
<S, F,
GL_TEXTURE_2D
>;
Aliased Type
§
pub struct Tex2d<S, F> {
/* private fields */
}
Implementations
§
Source
§
impl<S:
TexSize
, F:
TexFmt
>
Tex2d
<S, F>
Source
pub fn
Cut
(&self, region:
iVec4
) ->
Tex2d
<S, F>
Source
pub fn
Cast
<RS:
TexSize
, RF:
TexFmt
>(&self, minification:
i32
) ->
Tex2d
<RS, RF>
Source
§
impl<S:
TexSize
, F:
TexFmt
>
Tex2d
<S, F>
Source
pub fn
from_type
<RS:
TexSize
, RF:
TexFmt
>(img: &
Image
<RS, RF>) -> Self
Trait Implementations
§
Source
§
impl<S:
TexSize
, F:
TexFmt
, T:
Borrow
<
Image
<S, F>>>
From
<T> for
Tex2d
<S, F>
Source
§
fn
from
(img: T) -> Self
Converts to this type from the input type.