Struct rokol::glue::sdl::WindowHandle[][src]

pub struct WindowHandle {
    pub sdl: Sdl,
    pub vid: VideoSubsystem,
    pub win: Window,
    pub gcx: GLContext,
}
Expand description

Set of SDL objects

Call sg_sthudown on end of your application.

Fields

sdl: Sdl

SDL lifetime (calls SDL_QUIT on drop)

vid: VideoSubsystem

Lifetime of graphics (?)

win: Window

SDL window lifetime (calls SDL_DestroyWindow on drop)

gcx: GLContext

SDL graphics lifetime (calls SDL_GL_DeleteContext on drop)

Implementations

Call at the end of a frame to swap frame buffers

Trait Implementations

Formats the value using the given formatter. 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.