载入中...
搜索中...
未找到
ParticleConfig.h 文件参考
#include "particles/ParticleEmitter.h"
#include <string>

浏览源代码.

命名空间

namespace  eve
 
namespace  eve::data
 
namespace  eve::particles
 

函数

bool eve::particles::applyConfigDocument (ParticleEmitter *emitter, data::JsonDocument *doc)
 Apply particle JSON config onto an emitter (Config + Draw + Resource.texturePath). Does not change buffer size or clear live particles. Returns false on invalid / missing object root.
 
bool eve::particles::applyConfigText (ParticleEmitter *emitter, const std::string &json, std::string *error=nullptr)
 Parse JSON text and apply.
 
bool eve::particles::loadConfigFile (ParticleEmitter *emitter, const std::string &path, std::string *error=nullptr)
 Read path via Filesystem, apply, and bind Resource.path + modtime for hot reload. Returns false if file missing / invalid JSON.
 
bool eve::particles::reloadConfigFile (ParticleEmitter *emitter, std::string *error=nullptr)
 Re-read Resource.path if set; updates modtime.