载入中...
搜索中...
未找到
BeamSkillEffect.cpp
浏览该文件的文档.
Stable, structured diagnostics shared by engine modules.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
BeamSkillEffect(BeamSkillPreset preset)
Construct one recipe and apply preset geometry/style defaults.
Definition BeamSkillEffect.cpp:11
eve::Result< MeshEffectSubmitStatus > submit(MeshEffectRenderer &renderer, const glm::vec3 &cameraForward, const graphics::Color &tint=graphics::Color(1.f))
Build and submit the current path through the shared Trail renderer.
Definition BeamSkillEffect.cpp:92
void setPath(std::span< const glm::vec3 > points)
Replace the owning world-space path; at least two points are required to build.
Definition BeamSkillEffect.cpp:61
void setEndpoints(const glm::vec3 &start, const glm::vec3 &end)
Convenience two-point path assignment.
Definition BeamSkillEffect.cpp:65
BeamBuildResult build(const glm::vec3 &cameraForward) const
Build and merge every path segment into one owning ribbon snapshot.
Definition BeamSkillEffect.cpp:69
void setPlayback(MeshEffectPlayback playback)
Replace timing after validating finite non-negative durations.
Definition MeshEffect.cpp:33
StyleInstance & style() noexcept
Access the owned mutable style parameter instance.
Definition MeshEffect.h:77
Render-thread adapter from stylize runtime state to Graphics mesh draws.
Definition MeshEffectRenderer.h:113
eve::Result< MeshEffectSubmitStatus > submitTrail(MeshEffectInstance &effect, const TrailMeshSnapshot &snapshot, const glm::mat4 &model=glm::mat4(1.f), const graphics::Color &tint=graphics::Color(1.f))
Upload and draw one dynamic ribbon using an active mesh effect.
Definition MeshEffectRenderer.cpp:175
eve::Color Color
RGBA color used by every graphics draw call. Lives inside eve::graphics so including a graphics heade...
Definition Color.h:13
Definition MeshVfxPackage.h:10
@ DegenerateInput
BeamBuildResult buildBeamEffect(const glm::vec3 &start, const glm::vec3 &end, const glm::vec3 &cameraForward, const BeamEffectConfig &config)
Generate a camera-facing beam or branched lightning ribbon.
Definition BeamEffect.cpp:84
@ Lightning
@ ChainLightning
@ InvalidArgument
@ PreconditionViolation
Owning beam generation result suitable for MeshEffectRenderer::submitTrail.
Definition BeamEffect.h:33
Shape and deterministic noise controls for one 3D beam or lightning arc.
Definition BeamEffect.h:14
Deterministic timing configuration for one mesh effect playback.
Definition MeshEffect.h:24
std::vector< std::uint32_t > indices
Definition TrailEffect.h:44
std::vector< TrailVertex > vertices
Definition TrailEffect.h:43