[][src]Enum azul_core::window::RendererType

pub enum RendererType {
    Default,
    ForceHardware,
    ForceSoftware,
    Custom(Rc<dyn Gl>),
}

Force a specific renderer. By default, Azul will try to use the hardware renderer and fall back to the software renderer if it can't create an OpenGL 3.2 context. However, in some cases a hardware renderer might create problems or you want to force either a software or hardware renderer.

If the field renderer_type on the WindowCreateOptions is not RendererType::Default, the create_window method will try to create a window with the specific renderer type and crash if the renderer is not available for whatever reason.

If you don't know what any of this means, leave it at Default.

Variants

Default

Use the hardware renderer first, then fall back to OSMesa

ForceHardware

Force hardware rendering

ForceSoftware

Force software rendering

Custom(Rc<dyn Gl>)

Render using a custom OpenGL implementation

Trait Implementations

impl Clone for RendererType[src]

impl Debug for RendererType[src]

impl Default for RendererType[src]

impl Eq for RendererType[src]

impl Hash for RendererType[src]

impl Ord for RendererType[src]

impl PartialEq<RendererType> for RendererType[src]

impl PartialOrd<RendererType> for RendererType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.