pub struct TextureBuilder<'a> { /* private fields */ }
Expand description
WebGL2 texture builder.
This builder object is used to create a new WebGL2 texture with a given set of parameters.
Implementations§
Source§impl TextureBuilder<'_>
impl TextureBuilder<'_>
Sourcepub fn set_parameter(self, parameter: TextureParameter) -> Self
pub fn set_parameter(self, parameter: TextureParameter) -> Self
Applies a parameter to the texture.
Sourcepub fn build(self) -> Rc<WebGlTexture>
pub fn build(self) -> Rc<WebGlTexture>
Builds and returns the new texture.
Auto Trait Implementations§
impl<'a> Freeze for TextureBuilder<'a>
impl<'a> !RefUnwindSafe for TextureBuilder<'a>
impl<'a> !Send for TextureBuilder<'a>
impl<'a> !Sync for TextureBuilder<'a>
impl<'a> Unpin for TextureBuilder<'a>
impl<'a> !UnwindSafe for TextureBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more