pub struct TextureCreateContext { /* private fields */ }Expand description
This is the context object that is passed to the create_texture callback function
Implementations§
Source§impl TextureCreateContext
impl TextureCreateContext
pub fn new( gl: WebGl2RenderingContext, now: f64, canvas: HtmlCanvasElement, ) -> Self
pub fn gl(&self) -> &WebGl2RenderingContext
pub fn now(&self) -> f64
pub fn canvas(&self) -> &HtmlCanvasElement
Trait Implementations§
Source§impl Clone for TextureCreateContext
impl Clone for TextureCreateContext
Source§fn clone(&self) -> TextureCreateContext
fn clone(&self) -> TextureCreateContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureCreateContext
impl Debug for TextureCreateContext
Source§impl From<&TextureCreateContext> for TextureCreateContextJs
impl From<&TextureCreateContext> for TextureCreateContextJs
Source§fn from(attribute_create_context: &TextureCreateContext) -> Self
fn from(attribute_create_context: &TextureCreateContext) -> Self
Converts to this type from the input type.
Source§impl From<TextureCreateContext> for TextureCreateContextJs
impl From<TextureCreateContext> for TextureCreateContextJs
Source§fn from(attribute_create_context: TextureCreateContext) -> Self
fn from(attribute_create_context: TextureCreateContext) -> Self
Converts to this type from the input type.
Source§impl IntoJsWrapper for &TextureCreateContext
impl IntoJsWrapper for &TextureCreateContext
Source§type Result = TextureCreateContextJs
type Result = TextureCreateContextJs
This is the type that should returned from
into_js_wrapperSource§fn into_js_wrapper(self) -> Self::Result
fn into_js_wrapper(self) -> Self::Result
Converts a value into another value that can be converted into a
JsValueSource§impl IntoJsWrapper for TextureCreateContext
impl IntoJsWrapper for TextureCreateContext
Source§type Result = TextureCreateContextJs
type Result = TextureCreateContextJs
This is the type that should returned from
into_js_wrapperSource§fn into_js_wrapper(self) -> Self::Result
fn into_js_wrapper(self) -> Self::Result
Converts a value into another value that can be converted into a
JsValueAuto Trait Implementations§
impl Freeze for TextureCreateContext
impl RefUnwindSafe for TextureCreateContext
impl !Send for TextureCreateContext
impl !Sync for TextureCreateContext
impl Unpin for TextureCreateContext
impl UnwindSafe for TextureCreateContext
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