pub struct BackendOpenGLESEGL;
Expand description
When using OpenGL ES with the EGL loader for rendering, this contains a number of variables that may be useful for doing advanced rendering tasks. This is the default rendering backend for Android, and Linux builds can be configured to use this with the SK_LINUX_EGL cmake option when building the core StereoKitC library. https://stereokit.net/Pages/StereoKit/Backend.OpenGLES_EGL.html
§Examples
use stereokit_rust::system::BackendOpenGLESEGL;
if cfg!(target_os = "linux") {
// These are results for a OpenGLESEGL environment:
let context = BackendOpenGLESEGL::context();
assert_ne!(context, std::ptr::null_mut());
let display = BackendOpenGLESEGL::display();
assert_ne!(display, std::ptr::null_mut());
}
Implementations§
Source§impl BackendOpenGLESEGL
impl BackendOpenGLESEGL
Sourcepub fn context() -> *mut c_void
pub fn context() -> *mut c_void
This is the EGLContext StereoKit receives from eglCreateContext. https://stereokit.net/Pages/StereoKit/Backend.OpenGLES_EGL/Context.html
see also backend_opengl_egl_get_context
Sourcepub fn display() -> *mut c_void
pub fn display() -> *mut c_void
This is the EGLDisplay StereoKit receives from eglGetDisplay https://stereokit.net/Pages/StereoKit/Backend.OpenGLES_EGL/Display.html
see also backend_opengl_egl_get_display
Auto Trait Implementations§
impl Freeze for BackendOpenGLESEGL
impl RefUnwindSafe for BackendOpenGLESEGL
impl Send for BackendOpenGLESEGL
impl Sync for BackendOpenGLESEGL
impl Unpin for BackendOpenGLESEGL
impl UnwindSafe for BackendOpenGLESEGL
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.