#[repr(u32)]pub enum BackendGraphics {
None = 0,
D3D11 = 1,
OpenGLGLX = 2,
OpenGLWGL = 3,
OpenGLESEGL = 4,
WebGL = 5,
}
Expand description
This describes the graphics API thatStereoKit is using for rendering. https://stereokit.net/Pages/StereoKit/BackendGraphics.html
see also Backend::graphics
Variants§
None = 0
An invalid default value.
D3D11 = 1
DirectX’s Direct3D11 is used for rendering! This is used by default on Windows.
OpenGLGLX = 2
OpenGL is used for rendering, using GLX (OpenGL Extension to the X Window System) for loading. This is used by default on Linux.
OpenGLWGL = 3
OpenGL is used for rendering, using WGL (Windows Extensions to OpenGL) for loading. Native developers can configure SK to use this on Windows.
OpenGLESEGL = 4
OpenGL ES is used for rendering, using EGL (EGL Native Platform Graphics Interface) for loading. This is used by default on Android, and native developers can configure SK to use this on Linux.
WebGL = 5
WebGL is used for rendering. This is used by default on Web.
Trait Implementations§
Source§impl Clone for BackendGraphics
impl Clone for BackendGraphics
Source§fn clone(&self) -> BackendGraphics
fn clone(&self) -> BackendGraphics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BackendGraphics
impl Debug for BackendGraphics
Source§impl PartialEq for BackendGraphics
impl PartialEq for BackendGraphics
impl Copy for BackendGraphics
impl Eq for BackendGraphics
impl StructuralPartialEq for BackendGraphics
Auto Trait Implementations§
impl Freeze for BackendGraphics
impl RefUnwindSafe for BackendGraphics
impl Send for BackendGraphics
impl Sync for BackendGraphics
impl Unpin for BackendGraphics
impl UnwindSafe for BackendGraphics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.