Unravel Engine C++ Reference
Loading...
Searching...
No Matches
fxaa_component.cpp
Go to the documentation of this file.
1#include "fxaa_component.hpp"
3
6
7namespace unravel
8{
10{
11 entt::meta_factory<fxaa_component>{}
12 .type("fxaa_component"_hs)
14 entt::attribute{"name", "fxaa_component"},
15 entt::attribute{"category", "RENDERING"},
16 entt::attribute{"pretty_name", "FXAA"},
17 })
18 .func<&component_meta<fxaa_component>::exists>("component_exists"_hs)
19 .func<&component_meta<fxaa_component>::add>("component_add"_hs)
20 .func<&component_meta<fxaa_component>::save>("component_save"_hs)
21 .func<&component_meta<fxaa_component>::load>("component_load"_hs)
22 .func<&component_meta<fxaa_component>::remove>("component_remove"_hs)
23 .data<&fxaa_component::enabled>("enabled"_hs)
24 .custom<entt::attributes>(entt::attributes{
25 entt::attribute{"name", "enabled"},
26 entt::attribute{"pretty_name", "Enabled"},
27 entt::attribute{"tooltip", "Enable/disable FXAA anti-aliasing"},
28 });
29}
30
32{
33 try_save(ar, ser20::make_nvp("enabled", obj.enabled));
34}
37
39{
40 try_load(ar, ser20::make_nvp("enabled", obj.enabled));
41}
44} // namespace unravel
bool enabled
Whether FXAA is enabled.
attributes::value_type attribute
Definition reflection.h:19
std::map< std::string, meta_any > attributes
Definition reflection.h:18
BinaryInputArchive iarchive_binary_t
simd::JSONOutputArchive oarchive_associative_t
BinaryOutputArchive oarchive_binary_t
simd::JSONInputArchive iarchive_associative_t
#define REFLECT(cls)
Definition reflection.h:133
#define SAVE_INSTANTIATE(cls, Archive)
#define LOAD(cls)
auto try_save(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool
#define LOAD_INSTANTIATE(cls, Archive)
#define SAVE(cls)
auto try_load(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool