载入中...
搜索中...
未找到
OceanSprayRenderer.h
浏览该文件的文档.
1#pragma once
2
3#include <memory>
4#include "common/Export.h"
5#include "fluids/OceanSpray.h"
6
7namespace eve::graphics {
8class Graphics;
9}
10namespace eve::fluids {
13 glm::dvec3 eye{0.0}, forward{0.0, 0.0, -1.0}, up{0.0, 1.0, 0.0}, origin{0.0};
14};
17 std::vector<float> positions, attributes, uv;
18 std::vector<std::uint32_t> indices;
19 double time = 0.0;
20};
23public:
25 explicit OceanSprayMeshBuilder(const OceanSprayFrame& source) : source_(source) {}
32
33private:
34 const OceanSprayFrame& source_;
35};
77} // namespace eve::fluids
#define EVENGINE_API_DOMAINS
Definition Export.h:110
ssq::Object frame
Graphics * graphics
std::string_view source
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Immutable owning visual spray state. The application owns the current frame; replacing it with a succ...
Definition OceanSpray.h:45
Cheap borrowed projection; source must remain alive and immutable through build().
EVENGINE_API_DOMAINS Result< OceanSprayMeshFrame > build() const
Sort back-to-front and build camera-facing quads in a floating render origin.
OceanSprayMeshBuilder(const OceanSprayFrame &source)
Borrow source for synchronous build only; never retain across move/destruction.
Cheap borrowed graphics preparation; provider must survive build and later rendering.
OceanSprayRendererBuilder(graphics::Graphics &graphics)
Borrow graphics through build; created renderer observes its retirement thereafter.
EVENGINE_API_DOMAINS Result< std::unique_ptr< OceanSprayRenderer > > build() const
Create shaders and double-buffered meshes; retain no builder reference. @cost Pipeline creation and s...
Render-thread-only spray projection; never advances or owns simulation authority. Graphics resources ...
EVENGINE_API_DOMAINS ~OceanSprayRenderer()
EVENGINE_API_DOMAINS Result< void > draw()
Draw one transparent, depth-tested batch after opaque water and hull geometry.
EVENGINE_API_DOMAINS Result< void > publish(const OceanSprayMeshFrame &frame)
Upload validated geometry to the inactive mesh, then publish it atomically.
OceanSprayRenderer(const OceanSprayRenderer &)=delete
OceanSprayRenderer & operator=(const OceanSprayRenderer &)=delete
GLSL compute kernels for the GPU surface-flow solver.
Definition FluidTarget.h:12
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Owning batch; attributes store (coverage,0,0) in the mesh normal attribute.
std::vector< std::uint32_t > indices
World camera basis and render origin; all positions use metres and Y-up.