Struct luminance_glutin::GlutinSurface[][src]

pub struct GlutinSurface {
    pub ctx: WindowedContext<PossiblyCurrent>,
    // some fields omitted
}
Expand description

The Glutin surface.

You want to create such an object in order to use any luminance construct.

Fields

ctx: WindowedContext<PossiblyCurrent>

The windowed context.

Implementations

Create a new GlutinSurface by consuming a [WindowBuilder].

This is an alternative method to new_gl33 that is more flexible as you have access to the whole glutin types.

window_builder is the default object when passed to your closure and ctx_builder is already initialized for the OpenGL context (you’re not supposed to change it!).

Create a new GlutinSurface from scratch.

Get the underlying size (in physical pixels) of the surface.

This is equivalent to getting the inner size of the windowed context and converting it to a physical size by using the HiDPI factor of the windowed context.

Get access to the back buffer.

Swap the back and front buffers.

Trait Implementations

Internal type used by the backend to cache, optimize and store data. This roughly represents the GPU data / context a backend implementation needs to work correctly. Read more

Access the underlying backend.

Access the query API.

Create a new pipeline gate

Create a new buffer. Read more

Create a new buffer from a slice. Read more

Create a new buffer by repeating a value. Read more

Create a new framebuffer. Read more

Create a new shader stage. Read more

Create a new shader program. Read more

Create a TessBuilder with deinterleaved memory. Read more

Create a new texture by reserving space for texels. Read more

Create a new texture from texels. Read more

Create a new texture from raw texels. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.