Struct sdl2::video::WindowRef
[−]
[src]
pub struct WindowRef { // some fields omitted }
An unsized Window reference.
This type is used whenever Windows need to be borrowed from the SDL library, without concern for freeing the Window.
Methods
impl WindowRef
[src]
fn raw(&self) -> *mut SDL_Window
unsafe fn from_ll<'a>(raw: *mut SDL_Window) -> &'a WindowRef
unsafe fn from_ll_mut<'a>(raw: *mut SDL_Window) -> &'a mut WindowRef
fn id(&self) -> u32
fn gl_create_context(&self) -> Result<GLContext, String>
fn gl_set_context_to_current(&self) -> Result<(), String>
Set the window's OpenGL context to the current context on the thread.