Struct glium_sdl2::SDL2WindowBackend
[−]
[src]
pub struct SDL2WindowBackend { /* fields omitted */ }
Methods
impl SDL2WindowBackend
[src]
pub fn new(
window_builder: &mut WindowBuilder
) -> Result<SDL2WindowBackend, GliumSdl2Error>
[src]
window_builder: &mut WindowBuilder
) -> Result<SDL2WindowBackend, GliumSdl2Error>
Trait Implementations
impl Backend for SDL2WindowBackend
[src]
fn swap_buffers(&self) -> Result<(), SwapBuffersError>
[src]
Swaps buffers at the end of a frame.
unsafe fn get_proc_address(&self, symbol: &str) -> *const c_void
[src]
Returns the address of an OpenGL function. Read more
fn get_framebuffer_dimensions(&self) -> (u32, u32)
[src]
Returns the dimensions of the window, or screen, etc.
fn is_current(&self) -> bool
[src]
Returns true if the OpenGL context is the current one in the thread.
unsafe fn make_current(&self)
[src]
Makes the OpenGL context the current context in the current thread.