Struct radiant_rs::support::TextureBuilder
[−]
[src]
#[must_use]pub struct TextureBuilder<'a> { /* fields omitted */ }
A Texture builder.
Methods
impl<'a> TextureBuilder<'a>
[src]
fn width(self, width: u32) -> Self
[src]
Sets a width for the texture.
fn height(self, height: u32) -> Self
[src]
Sets a height for the texture.
fn dimensions<T>(self, dimensions: T) -> Self where
Point2<u32>: From<T>,
[src]
Point2<u32>: From<T>,
Sets dimensions for the texture.
fn minify(self, minify: TextureFilter) -> Self
[src]
Sets a minification filter for the texture.
fn magnify(self, magnify: TextureFilter) -> Self
[src]
Sets a magnification filter for the texture.
fn wrap(self, wrap: TextureWrap) -> Self
[src]
Sets a wrapping type for the texture.
fn format(self, format: TextureFormat) -> Self
[src]
Sets an internal format for the texture.
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