Contains ComponentRegistry class used to have register of posible to create components.. More...
#include "components/GameComponents/BasicComponents.hpp"#include "components/ErrorUtils.hpp"#include "components/PathUtils.hpp"#include "components/GameObjects/GameObject.hpp"#include "components/ColorTypes.hpp"#include "SerializationUtils.hpp"#include <nlohmann/json.hpp>#include <functional>#include <unordered_map>#include <string>#include <glm/glm.hpp>#include <components/Mesh.hpp>Go to the source code of this file.
Classes | |
| class | vex::ComponentRegistry |
| Class registering GameComponents mainly used to load them in SceneManager. More... | |
Namespaces | |
| namespace | vex |
Macros | |
| #define | IMGUI_REFLECT(...) |
| #define | VEX_CAT_IMPL(a, b) |
| Helper macros to generate unique names based on line number. | |
| #define | VEX_CAT(a, b) |
| #define | VEX_UNIQUE_NAME(prefix) |
| #define | REGISTER_COMPONENT(Type, ...) |
| Macro used to register GameComponents in ComponentRegistry. It allows to add component from scene file. | |
| #define | REGISTER_COMPONENT_CUSTOM(Type, ...) |
| Same macro just skips json registration for more complex components, it requires manual registration. | |
Functions | |
| template<typename T> | |
| void | vex::GenericComponentInspector (GameObject &obj) |
Contains ComponentRegistry class used to have register of posible to create components..
Definition in file ComponentFactory.hpp.
| #define IMGUI_REFLECT | ( | ... | ) |
Definition at line 255 of file ComponentFactory.hpp.
| #define REGISTER_COMPONENT | ( | Type, | |
| ... ) |
Macro used to register GameComponents in ComponentRegistry. It allows to add component from scene file.
Example usage:
Definition at line 466 of file ComponentFactory.hpp.
| #define REGISTER_COMPONENT_CUSTOM | ( | Type, | |
| ... ) |
Same macro just skips json registration for more complex components, it requires manual registration.
Definition at line 482 of file ComponentFactory.hpp.
| #define VEX_CAT | ( | a, | |
| b ) |
Definition at line 427 of file ComponentFactory.hpp.
| #define VEX_CAT_IMPL | ( | a, | |
| b ) |
Helper macros to generate unique names based on line number.
Definition at line 426 of file ComponentFactory.hpp.
| #define VEX_UNIQUE_NAME | ( | prefix | ) |
Definition at line 428 of file ComponentFactory.hpp.