pub struct GlWindowDevice {Show 13 fields
device: Device,
context: Context,
gl: Rc<Context>,
window: Rc<dyn GlWindow>,
grand_manager: LayerGrandManager<SurfmanGL>,
layer_manager: Option<LayerManager>,
target_swap_chain: Option<SwapChain<Device>>,
swap_chains: SwapChains<LayerId, Device>,
read_fbo: Option<NativeFramebuffer>,
events: EventBuffer,
clip_planes: ClipPlanes,
granted_features: Vec<String>,
shader: Option<GlWindowShader>,
}Fields§
§device: Device§context: Context§gl: Rc<Context>§window: Rc<dyn GlWindow>§grand_manager: LayerGrandManager<SurfmanGL>§layer_manager: Option<LayerManager>§target_swap_chain: Option<SwapChain<Device>>§swap_chains: SwapChains<LayerId, Device>§read_fbo: Option<NativeFramebuffer>§events: EventBuffer§clip_planes: ClipPlanes§granted_features: Vec<String>§shader: Option<GlWindowShader>Implementations§
Source§impl GlWindowDevice
impl GlWindowDevice
fn new( connection: Connection, adapter: Adapter, context_attributes: ContextAttributes, window: Rc<dyn GlWindow>, granted_features: Vec<String>, grand_manager: LayerGrandManager<SurfmanGL>, ) -> Result<GlWindowDevice, Error>
fn blit_texture( &self, texture_id: Option<NativeTexture>, texture_target: u32, texture_size: Size2D<i32, UnknownUnit>, window_size: Size2D<i32, Viewport>, )
fn layer_manager(&mut self) -> Result<&mut LayerManager, Error>
fn window_size(&self) -> Size2D<i32, Viewport>
fn viewport_size(&self) -> Size2D<i32, Viewport>
fn views(&self, viewer: RigidTransform3D<f32, Viewer, Native>) -> Views
fn view<Eye>( &self, viewer: RigidTransform3D<f32, Viewer, Native>, eye: SomeEye<Eye>, ) -> View<Eye>
fn perspective<Eye>(&self) -> Transform3D<f32, Eye, Display>
Trait Implementations§
Source§impl DeviceAPI for GlWindowDevice
impl DeviceAPI for GlWindowDevice
Source§fn floor_transform(&self) -> Option<RigidTransform3D<f32, Native, Floor>>
fn floor_transform(&self) -> Option<RigidTransform3D<f32, Native, Floor>>
The transform from native coordinates to the floor.
fn viewports(&self) -> Viewports
Source§fn create_layer(
&mut self,
context_id: ContextId,
init: LayerInit,
) -> Result<LayerId, Error>
fn create_layer( &mut self, context_id: ContextId, init: LayerInit, ) -> Result<LayerId, Error>
Create a new layer
Source§fn destroy_layer(&mut self, context_id: ContextId, layer_id: LayerId)
fn destroy_layer(&mut self, context_id: ContextId, layer_id: LayerId)
Destroy a layer
Source§fn begin_animation_frame(
&mut self,
layers: &[(ContextId, LayerId)],
) -> Option<Frame>
fn begin_animation_frame( &mut self, layers: &[(ContextId, LayerId)], ) -> Option<Frame>
Begin an animation frame.
Source§fn end_animation_frame(&mut self, layers: &[(ContextId, LayerId)])
fn end_animation_frame(&mut self, layers: &[(ContextId, LayerId)])
End an animation frame, render the layer to the device, and block waiting for the next frame.
Source§fn initial_inputs(&self) -> Vec<InputSource>
fn initial_inputs(&self) -> Vec<InputSource>
Inputs registered with the device on initialization. More may be added, which
should be communicated through a yet-undecided event mechanism
Source§fn set_event_dest(&mut self, dest: ProfileGenericCallback<Event>)
fn set_event_dest(&mut self, dest: ProfileGenericCallback<Event>)
Sets the event handling channel
fn set_quitter(&mut self, _: Quitter)
fn update_clip_planes(&mut self, near: f32, far: f32)
fn granted_features(&self) -> &[String]
fn environment_blend_mode(&self) -> EnvironmentBlendMode
fn request_hit_test(&mut self, _source: HitTestSource)
fn cancel_hit_test(&mut self, _id: HitTestId)
fn update_frame_rate(&mut self, rate: f32) -> f32
fn supported_frame_rates(&self) -> Vec<f32>
fn reference_space_bounds(&self) -> Option<Vec<Point2D<f32, Floor>>>
Auto Trait Implementations§
impl !Freeze for GlWindowDevice
impl !RefUnwindSafe for GlWindowDevice
impl !Send for GlWindowDevice
impl !Sync for GlWindowDevice
impl Unpin for GlWindowDevice
impl UnsafeUnpin for GlWindowDevice
impl !UnwindSafe for GlWindowDevice
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert