pub struct EGLSurface<N: NativeSurface> { /* private fields */ }
Expand description
EGL surface of a given EGL context for rendering
Implementations§
source§impl<N: NativeSurface> EGLSurface<N>
impl<N: NativeSurface> EGLSurface<N>
sourcepub fn swap_buffers(&self) -> Result<(), SwapBuffersError>
pub fn swap_buffers(&self) -> Result<(), SwapBuffersError>
Swaps buffers at the end of a frame.
sourcepub unsafe fn make_current(&self) -> Result<(), SwapBuffersError>
pub unsafe fn make_current(&self) -> Result<(), SwapBuffersError>
Makes the OpenGL context the current context in the current thread.
Unsafety
This function is marked unsafe, because the context cannot be made current on multiple threads.
sourcepub fn is_current(&self) -> bool
pub fn is_current(&self) -> bool
Returns true if the OpenGL surface is the current one in the thread.