Struct bgfx_rs::static_lib::OcclusionQuery
source · pub struct OcclusionQuery { /* private fields */ }
Implementations§
source§impl OcclusionQuery
impl OcclusionQuery
pub fn create_occlusion_query() -> OcclusionQuery
sourcepub fn get_result(&self, result: *mut i32) -> OcclusionQueryResult
pub fn get_result(&self, result: *mut i32) -> OcclusionQueryResult
handle
: Handle to occlusion query object.result
: Number of pixels that passed test. This argument can beNULL
if result of occlusion query is not needed.
sourcepub fn set_condition(&self, visible: bool)
pub fn set_condition(&self, visible: bool)
handle
: Occlusion query handle.visible
: Render if occlusion query is visible.
Trait Implementations§
source§impl Clone for OcclusionQuery
impl Clone for OcclusionQuery
source§fn clone(&self) -> OcclusionQuery
fn clone(&self) -> OcclusionQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OcclusionQuery
impl Debug for OcclusionQuery
Auto Trait Implementations§
impl Freeze for OcclusionQuery
impl RefUnwindSafe for OcclusionQuery
impl Send for OcclusionQuery
impl Sync for OcclusionQuery
impl Unpin for OcclusionQuery
impl UnwindSafe for OcclusionQuery
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