![]() |
ezEngine Release 26.3
|
Defines categories and metadata for spatial data used by spatial systems. More...
#include <SpatialData.h>
Classes | |
| struct | Category |
| Represents a spatial data category for organizing objects in spatial systems. More... | |
| struct | Flags |
Static Public Member Functions | |
| static EZ_CORE_DLL Category | RegisterCategory (ezStringView sCategoryName, const ezBitflags< Flags > &flags) |
| Registers a spatial data category under the given name. | |
| static EZ_CORE_DLL Category | FindCategory (ezStringView sCategoryName) |
| Returns either an existing category with the given name or ezInvalidSpatialDataCategory. | |
| static EZ_CORE_DLL const ezHashedString & | GetCategoryName (Category category) |
| Returns the name of the given category. | |
| static EZ_CORE_DLL const ezBitflags< Flags > & | GetCategoryFlags (Category category) |
| Returns the flags for the given category. | |
Defines categories and metadata for spatial data used by spatial systems.
Provides a category system for organizing spatial objects (like render objects, collision objects) that can be used by spatial systems for efficient queries and updates. Categories are registered globally and can have flags to indicate update frequency hints.
|
static |
Registers a spatial data category under the given name.
If the same category was already registered before, it returns that instead. Asserts that there are no more than 32 unique categories.