pub struct OpenglCx {
pub display: *mut Display,
pub context: GLXContext,
pub visual_info: XVisualInfo,
pub hidden_window: Window,
}
Fields§
§display: *mut Display
§context: GLXContext
§visual_info: XVisualInfo
Implementations§
Source§impl OpenglCx
impl OpenglCx
pub fn new(display: *mut Display) -> OpenglCx
pub fn set_uniform_buffer(&self, locs: &Vec<OpenglUniform>, uni: &[f32])
pub fn update_platform_texture_image2d(&self, cxtexture: &mut CxTexture)
pub fn update_platform_render_target( &self, cxtexture: &mut CxTexture, dpi_factor: f32, size: Vec2, is_depth: bool, ) -> bool
Auto Trait Implementations§
impl Freeze for OpenglCx
impl RefUnwindSafe for OpenglCx
impl !Send for OpenglCx
impl !Sync for OpenglCx
impl Unpin for OpenglCx
impl UnwindSafe for OpenglCx
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