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