Struct webxr::glwindow::GlWindowShader
source · struct GlWindowShader {
gl: Rc<Context>,
buffer: Option<NativeBuffer>,
vao: Option<NativeVertexArray>,
program: NativeProgram,
mode: GlWindowMode,
}
Fields§
§gl: Rc<Context>
§buffer: Option<NativeBuffer>
§vao: Option<NativeVertexArray>
§program: NativeProgram
§mode: GlWindowMode
Implementations§
source§impl GlWindowShader
impl GlWindowShader
fn new(gl: Rc<Gl>, mode: GlWindowMode) -> Option<GlWindowShader>
fn draw_texture( &self, texture_id: Option<NativeTexture>, texture_target: u32, texture_size: Size2D<i32, UnknownUnit>, viewport_size: Size2D<i32, Viewport>, window_size: Size2D<i32, Viewport>, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlWindowShader
impl RefUnwindSafe for GlWindowShader
impl !Send for GlWindowShader
impl !Sync for GlWindowShader
impl Unpin for GlWindowShader
impl UnwindSafe for GlWindowShader
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