Struct bgfx_rs::static_lib::OcclusionQuery
source · [−]pub struct OcclusionQuery { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for OcclusionQuery
impl Clone for OcclusionQuery
sourcefn clone(&self) -> OcclusionQuery
fn clone(&self) -> OcclusionQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OcclusionQuery
impl Debug for OcclusionQuery
Auto Trait Implementations
impl RefUnwindSafe for OcclusionQuery
impl Send for OcclusionQuery
impl Sync for OcclusionQuery
impl Unpin for OcclusionQuery
impl UnwindSafe for OcclusionQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more