pub struct FramebufferCreateContext { /* private fields */ }Expand description
Context used when creating a Framebuffer object–passed into the callback as the first argument
Implementations§
Source§impl FramebufferCreateContext
impl FramebufferCreateContext
Sourcepub fn new(
gl: WebGl2RenderingContext,
now: f64,
webgl_texture: Option<WebGlTexture>,
) -> Self
pub fn new( gl: WebGl2RenderingContext, now: f64, webgl_texture: Option<WebGlTexture>, ) -> Self
@todo: make this into a builder pattern
pub fn gl(&self) -> &WebGl2RenderingContext
pub fn now(&self) -> f64
pub fn webgl_texture(&self) -> &Option<WebGlTexture>
Trait Implementations§
Source§impl Clone for FramebufferCreateContext
impl Clone for FramebufferCreateContext
Source§fn clone(&self) -> FramebufferCreateContext
fn clone(&self) -> FramebufferCreateContext
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 FramebufferCreateContext
impl Debug for FramebufferCreateContext
Source§impl From<&FramebufferCreateContext> for FramebufferCreateContextJs
impl From<&FramebufferCreateContext> for FramebufferCreateContextJs
Source§fn from(attribute_create_context: &FramebufferCreateContext) -> Self
fn from(attribute_create_context: &FramebufferCreateContext) -> Self
Converts to this type from the input type.
Source§impl From<FramebufferCreateContext> for FramebufferCreateContextJs
impl From<FramebufferCreateContext> for FramebufferCreateContextJs
Source§fn from(attribute_create_context: FramebufferCreateContext) -> Self
fn from(attribute_create_context: FramebufferCreateContext) -> Self
Converts to this type from the input type.
Source§impl IntoJsWrapper for &FramebufferCreateContext
impl IntoJsWrapper for &FramebufferCreateContext
Source§type Result = FramebufferCreateContextJs
type Result = FramebufferCreateContextJs
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 FramebufferCreateContext
impl IntoJsWrapper for FramebufferCreateContext
Source§type Result = FramebufferCreateContextJs
type Result = FramebufferCreateContextJs
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 FramebufferCreateContext
impl RefUnwindSafe for FramebufferCreateContext
impl !Send for FramebufferCreateContext
impl !Sync for FramebufferCreateContext
impl Unpin for FramebufferCreateContext
impl UnwindSafe for FramebufferCreateContext
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