pub struct GlPlatformSurfaceRenderTarget { /* private fields */ }Expand description
The OpenGL render target of a top-level.
Trait Implementations§
Source§impl IGlPlatformSurfaceRenderTarget for GlPlatformSurfaceRenderTarget
impl IGlPlatformSurfaceRenderTarget for GlPlatformSurfaceRenderTarget
Source§fn begin_draw(
&self,
_scene_info: &RenderTargetSceneInfo,
) -> Rc<dyn IGlPlatformSurfaceRenderingSession>
fn begin_draw( &self, _scene_info: &RenderTargetSceneInfo, ) -> Rc<dyn IGlPlatformSurfaceRenderingSession>
§Panics
Panics when the render target is disposed and when the native target cannot begin a frame.
Source§fn try_begin_draw(
&self,
scene_info: &RenderTargetSceneInfo,
) -> Result<Rc<dyn IGlPlatformSurfaceRenderingSession>, RenderTargetError>
fn try_begin_draw( &self, scene_info: &RenderTargetSceneInfo, ) -> Result<Rc<dyn IGlPlatformSurfaceRenderingSession>, RenderTargetError>
Starts rendering a frame, or says that the target is not ready or is
corrupted: what the reference reports by throwing
RenderTargetNotReadyException or RenderTargetCorruptedException
out of BeginDraw, and its compositor catches. A renderer calls
this member. A target that cannot report either keeps the default.Source§impl IPlatformRenderSurfaceRenderTarget for GlPlatformSurfaceRenderTarget
impl IPlatformRenderSurfaceRenderTarget for GlPlatformSurfaceRenderTarget
Source§fn state(&self) -> PlatformRenderTargetState
fn state(&self) -> PlatformRenderTargetState
The state of the platform render target.
Auto Trait Implementations§
impl !Freeze for GlPlatformSurfaceRenderTarget
impl !RefUnwindSafe for GlPlatformSurfaceRenderTarget
impl !Send for GlPlatformSurfaceRenderTarget
impl !Sync for GlPlatformSurfaceRenderTarget
impl !UnwindSafe for GlPlatformSurfaceRenderTarget
impl Unpin for GlPlatformSurfaceRenderTarget
impl UnsafeUnpin for GlPlatformSurfaceRenderTarget
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more