ezEngine  Release 25.03
ezVisibilityState Struct Reference

When an object is 'seen' by a view and thus tagged as 'visible', this enum describes what kind of observer triggered this. More...

#include <SpatialData.h>

Public Types

enum  Enum : StorageType { Invisible = 0, Indirect = 1, Direct = 2, Default = Invisible }
 
using StorageType = ezUInt8
 

Detailed Description

When an object is 'seen' by a view and thus tagged as 'visible', this enum describes what kind of observer triggered this.

This is used to determine how important certain updates, such as animations, are to execute. E.g. when a 'shadow view' or 'reflection view' is the only thing that observes an object, animations / particle effects and so on, can be updated less frequently.

Member Enumeration Documentation

◆ Enum

enum ezVisibilityState::Enum : StorageType
Enumerator
Invisible 

The object isn't visible to any view.

Indirect 

The object is seen by a view that only indirectly makes the object visible (shadow / reflection / render target).

Direct 

The object is seen directly by a main view and therefore it needs to be updated at maximum frequency.


The documentation for this struct was generated from the following file: