pub fn new_left(
        context: &Context,
        pixmap: u32,
        automatic_updates: bool,
    ) -> Result<TexturePixmapX11, glib::Error> {
        unsafe {
            let mut error = ptr::null_mut();
            let ret = ffi::cogl_texture_pixmap_x11_new_left(
                context.to_glib_none().0,
                pixmap,
                automatic_updates as i32,
                &mut error,
            );
            if error.is_null() {
                Ok(from_glib_full(ret))
            } else {
                Err(from_glib_full(error))
            }
        }
    }
/// Creates one of a pair of textures to contain the contents of `pixmap`,
/// which has stereo content. (Different images for the right and left eyes.)
/// The left image is drawn using this texture; the right image is drawn
/// using a texture created by calling
/// `TexturePixmapX11::new_right` and passing in this texture as an
/// argument.
///
/// In general, you should not use this function unless you have
/// queried the `GLX_STEREO_TREE_EXT` attribute of the corresponding
/// window using glXQueryDrawable() and determined that the window is
/// stereo. Note that this attribute can change over time and
/// notification is also provided through events defined in the
/// EXT_stereo_tree GLX extension. As long as the system has support for
/// stereo content, drawing using the left and right pixmaps will not
/// produce an error even if the window doesn't have stereo
/// content any more, but drawing with the right pixmap will produce
/// undefined output, so you need to listen for these events and
/// re-render to avoid race conditions. (Recreating a non-stereo
/// pixmap is not necessary, but may save resources.)
/// ## `context`
/// A `Context`
/// ## `pixmap`
/// A X11 pixmap ID
/// ## `automatic_updates`
/// Whether to automatically copy the contents of
/// the pixmap to the texture.
///
/// # Returns
///
/// a new `TexturePixmapX11` instance
Creates one of a pair of textures to contain the contents of `pixmap`,
which has stereo content. (Different images for the right and left eyes.)
The left image is drawn using this texture; the right image is drawn
using a texture created by calling
`TexturePixmapX11::new_right` and passing in this texture as an
argument.

In general, you should not use this function unless you have
queried the `GLX_STEREO_TREE_EXT` attribute of the corresponding
window using glXQueryDrawable() and determined that the window is
stereo. Note that this attribute can change over time and
notification is also provided through events defined in the
EXT_stereo_tree GLX extension. As long as the system has support for
stereo content, drawing using the left and right pixmaps will not
produce an error even if the window doesn't have stereo
content any more, but drawing with the right pixmap will produce
undefined output, so you need to listen for these events and
re-render to avoid race conditions. (Recreating a non-stereo
pixmap is not necessary, but may save resources.)
Creates one of a pair of textures to contain the contents of ` pixmap ` which has stereo content . ( Different images for the right and left eyes . ) The left image is drawn using this texture ; the right image is drawn using a texture created by calling ` TexturePixmapX11 :: new_right ` and passing in this texture as an argument . In general you should not use this function unless you have queried the ` GLX_STEREO_TREE_EXT ` attribute of the corresponding window using glXQueryDrawable () and determined that the window is stereo . Note that this attribute can change over time and notification is also provided through events defined in the EXT_stereo_tree GLX extension . As long as the system has support for stereo content drawing using the left and right pixmaps will not produce an error even if the window doesn ' t have stereo content any more but drawing with the right pixmap will produce undefined output so you need to listen for these events and re - render to avoid race conditions . ( Recreating a non - stereo pixmap is not necessary but may save resources . )
pub fn new_left(
        context: &Context,
        pixmap: u32,
        automatic_updates: bool,
    ) -> Result<TexturePixmapX11, glib::Error> {
        unsafe {
            let mut error = ptr::null_mut();
            let ret = ffi::cogl_texture_pixmap_x11_new_left(
                context.to_glib_none().0,
                pixmap,
                automatic_updates as i32,
                &mut error,
            );
            if error.is_null() {
                Ok(from_glib_full(ret))
            } else {
                Err(from_glib_full(error))
            }
        }
    }
pub fn new_left ( context : & Context , pixmap : u32 , automatic_updates : bool , ) -> Result < TexturePixmapX11 , glib :: Error > { unsafe { let mut error = ptr :: null_mut ( ) ; let ret = ffi :: cogl_texture_pixmap_x11_new_left ( context . to_glib_none ( ) . 0 , pixmap , automatic_updates as i32 , & mut error , ) ; if error . is_null ( ) { Ok ( from_glib_full ( ret ) ) } else { Err ( from_glib_full ( error ) ) } } }
Creates one of a pair of textures to contain the contents of `pixmap`,
which has stereo content.
Creates one of a pair of textures to contain the contents of ` pixmap ` which has stereo content .
context
&Context
pixmap
u32
automatic_updates
bool
a new `TexturePixmapX11` instance
a new ` TexturePixmapX11 ` instance
context
&Context
pixmap
u32
automatic_updates
bool
`context`
None
`pixmap`
A X11 pixmap ID
A X11 pixmap ID
`automatic_updates`
Whether to automatically copy the contents of
the pixmap to the texture.
Whether to automatically copy the contents of the pixmap to the texture .