Struct rafx_framework::visibility::VisibilityRegion[][src]

pub struct VisibilityRegion { /* fields omitted */ }

Implementations

impl VisibilityRegion[src]

pub fn new() -> Self[src]

pub fn register_view_frustum(&self) -> ViewFrustumArc[src]

pub fn register_static_view_frustum(&self) -> ViewFrustumArc[src]

pub fn register_dynamic_view_frustum(&self) -> ViewFrustumArc[src]

pub fn register_static_object(
    &self,
    entity_id: EntityId,
    cull_model: CullModel
) -> VisibilityObjectArc
[src]

Returns a smart pointer to a handle representing a static object. A static object is a hint to the visibility world that the object’s transform changes rarely. Most geometry in the world is static – buildings, trees, rocks, grass, and so on.

pub fn register_dynamic_object(
    &self,
    entity_id: EntityId,
    cull_model: CullModel
) -> VisibilityObjectArc
[src]

Returns a smart pointer to a handle representing a dynamic object. A dynamic object is a hint to the visibility world that the object’s transform changes often. Characters, projectiles, vehicles, and moving platforms are examples of dynamic geometry.

pub fn object_ref(&self, id: VisibilityObjectId) -> VisibilityObjectRef<'_>[src]

Trait Implementations

impl Drop for VisibilityRegion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Downcast + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.