OpenLexocad
28.0
|
Converts a registry to a view. More...
#include <entt.hpp>
Public Types | |
using | registry_type = std::conditional_t< Const, const entt::basic_registry< Entity >, entt::basic_registry< Entity > > |
Type of registry to convert. More... | |
Public Member Functions | |
as_view (registry_type &source) ENTT_NOEXCEPT | |
Constructs a converter for a given registry. More... | |
template<typename Exclude , typename... Component> | |
operator entt::basic_view< Entity, Exclude, Component... > () const | |
Conversion function from a registry to a view. More... | |
Converts a registry to a view.
Const | Constness of the accepted registry. |
Entity | A valid entity type (see entt_traits for more details). |
using entt::as_view< Const, Entity >::registry_type = std::conditional_t<Const, const entt::basic_registry<Entity>, entt::basic_registry<Entity> > |
Type of registry to convert.
|
inline |
Constructs a converter for a given registry.
source | A valid reference to a registry. |
|
inline |
Conversion function from a registry to a view.
Exclude | Types of components used to filter the view. |
Component | Type of components used to construct the view. |