Confetti
0.1.0
A C++ particle system using Vulkan
|
A Configuration loaded from JSON. More...
#include <Confetti/JsonConfiguration.h>
Public Member Functions | |
JsonConfiguration (char const *path) | |
Constructor. | |
JsonConfiguration (nlohmann::json const &j) | |
Constructor. | |
JsonConfiguration (Configuration const &c) | |
Constructor. | |
nlohmann::json | toJson () |
Saves the configuration to a JSON object. | |
Additional Inherited Members | |
Public Types inherited from Confetti::Configuration | |
using | EmitterMap = std::map< std::string, Emitter > |
A map of Emitters. | |
using | EmitterVolumeMap = std::map< std::string, EmitterVolume > |
A map of EmitterVolumes. | |
using | EnvironmentMap = std::map< std::string, Environment > |
A map of Environments. | |
using | AppearanceMap = std::map< std::string, Appearance > |
A map of Appearances. | |
using | ClipperListMap = std::map< std::string, ClipperList > |
A map of ClipperLists. | |
using | SurfaceListMap = std::map< std::string, SurfaceList > |
A map of SurfaceLists. | |
Public Attributes inherited from Confetti::Configuration | |
EmitterMap | emitters_ |
Emitter configurations, indexed by name. | |
EmitterVolumeMap | emitterVolumes_ |
EmitterVolume configurations, indexed by name. | |
EnvironmentMap | environments_ |
Environment configurations, indexed by name. | |
AppearanceMap | appearances_ |
Appearance configurations, indexed by name. | |
ClipperListMap | clipperLists_ |
ClipperList configurations, indexed by name. | |
SurfaceListMap | surfaceLists_ |
SurfaceList configurations, indexed by name. | |
A Configuration loaded from JSON.