Struct radiant_rs::support::TextureBuilder
[−]
[src]
#[must_use]pub struct TextureBuilder<'a> { /* fields omitted */ }
A Texture builder.
Methods
impl<'a> TextureBuilder<'a>
[src]
pub fn width(self, width: u32) -> Self
[src]
Sets a width for the texture.
pub fn height(self, height: u32) -> Self
[src]
Sets a height for the texture.
pub fn dimensions<T>(self, dimensions: T) -> Self where
(u32, u32): From<T>,
[src]
(u32, u32): From<T>,
Sets dimensions for the texture.
pub fn minify(self, minify: TextureFilter) -> Self
[src]
Sets a minification filter for the texture.
pub fn magnify(self, magnify: TextureFilter) -> Self
[src]
Sets a magnification filter for the texture.
pub fn wrap(self, wrap: TextureWrap) -> Self
[src]
Sets a wrapping type for the texture.
pub fn format(self, format: TextureFormat) -> Self
[src]
Sets an internal format for the texture.
pub fn file(self, file: &'a str) -> Self
[src]
pub fn build(self) -> Result<Texture>
[src]
Returns the constructed Texture instance.
Trait Implementations
impl<'a> Clone for TextureBuilder<'a>
[src]
fn clone(&self) -> TextureBuilder<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more