Struct glutin::HeadlessRendererBuilder [] [src]

pub struct HeadlessRendererBuilder<'a> {
    pub dimensions: (u32, u32),
    pub opengl: GlAttributes<&'a HeadlessContext>,
    // some fields omitted
}

Object that allows you to build headless contexts.

Fields

The dimensions to use.

The OpenGL attributes to build the context with.

Methods

impl<'a> HeadlessRendererBuilder<'a>
[src]

[src]

Initializes a new HeadlessRendererBuilder with default values.

[src]

Sets how the backend should choose the OpenGL API and version.

[src]

Sets the desired OpenGL context profile.

[src]

Sets the debug flag for the OpenGL context.

The default value for this flag is cfg!(ndebug), which means that it's enabled when you run cargo build and disabled when you run cargo build --release.

[src]

Sets the robustness of the OpenGL context. See the docs of Robustness.

[src]

Builds the headless context.

Error should be very rare and only occur in case of permission denied, incompatible system, out of memory, etc.

[src]

Builds the headless context.

The context is build in a strict way. That means that if the backend couldn't give you what you requested, an Err will be returned.

Trait Implementations

impl<'a> Clone for HeadlessRendererBuilder<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more