pub struct GLPlatformContext {
pub display: *mut Display,
pub glx_pixmap: XID,
pub pixmap: XID,
pub framebuffer_id: GLuint,
pub texture_id: GLuint,
pub depth_stencil_renderbuffer_id: GLuint,
/* private fields */
}
Fields§
§display: *mut Display
§glx_pixmap: XID
§pixmap: XID
§framebuffer_id: GLuint
§texture_id: GLuint
§depth_stencil_renderbuffer_id: GLuint
Implementations§
Source§impl GLPlatformContext
impl GLPlatformContext
pub fn new( gl: Rc<dyn Gl>, platform_display_data: PlatformDisplayData, size: Size2D<i32>, ) -> Option<GLPlatformContext>
pub fn drop_current_context(&self)
pub fn make_current(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GLPlatformContext
impl !RefUnwindSafe for GLPlatformContext
impl !Send for GLPlatformContext
impl !Sync for GLPlatformContext
impl Unpin for GLPlatformContext
impl !UnwindSafe for GLPlatformContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more