pub struct WebGlTextureWithDimensions {
pub texture: WebGlTexture,
pub width: u16,
pub height: u16,
}Expand description
Wrapper for WebGlTexture with known dimensions.
Fields§
§texture: WebGlTextureThe WebGL texture.
width: u16The width of the texture.
height: u16The height of the texture.
Trait Implementations§
Source§impl Debug for WebGlTextureWithDimensions
impl Debug for WebGlTextureWithDimensions
Source§impl WebGlAtlasWriter for WebGlTextureWithDimensions
impl WebGlAtlasWriter for WebGlTextureWithDimensions
Source§fn write_to_atlas(
&self,
gl: &WebGl2RenderingContext,
atlas_texture: &WebGlTexture,
offset: [u16; 2],
width: u16,
height: u16,
) -> Result<(), WebGlError>
fn write_to_atlas( &self, gl: &WebGl2RenderingContext, atlas_texture: &WebGlTexture, offset: [u16; 2], width: u16, height: u16, ) -> Result<(), WebGlError>
Write image data to an atlas texture at the specified offset.
Auto Trait Implementations§
impl Freeze for WebGlTextureWithDimensions
impl RefUnwindSafe for WebGlTextureWithDimensions
impl Send for WebGlTextureWithDimensions
impl Sync for WebGlTextureWithDimensions
impl Unpin for WebGlTextureWithDimensions
impl UnsafeUnpin for WebGlTextureWithDimensions
impl UnwindSafe for WebGlTextureWithDimensions
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