载入中...
搜索中...
未找到
SoftBody3DRenderer.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5namespace eve::graphics {
6class Graphics;
7class Mesh;
8} // namespace eve::graphics
9
10namespace eve::physics {
11
12class SoftBody3D;
13
22public:
24 explicit SoftBody3DRenderer(SoftBody3D* body) noexcept : body_(body) {}
25
28
30 void setBody(SoftBody3D* body);
32 [[nodiscard]] SoftBody3D* getBody() const { return body_; }
34 void setColor(float r, float g, float b, float a);
36 void draw(graphics::Graphics* graphics);
37
38private:
39 SoftBody3D* body_ = nullptr;
40 graphics::Mesh* mesh_ = nullptr;
41 int meshVertexCount_ = 0;
42 int meshIndexCount_ = 0;
43 float colorR_ = 0.92f, colorG_ = 0.42f, colorB_ = 0.24f, colorA_ = 1.f;
44};
45
46} // namespace eve::physics
#define EVENGINE_API_WORLD
Definition Export.h:109
tensor::Graph g
Definition GpuGraph.cpp:7
double r
MeleePoint3 b
Definition MeleeHit.cpp:41
MeleePoint3 a
Definition MeleeHit.cpp:40
MeshVfxBatchedDraw draw
std::string body
GPU mesh handle (+ optional CPU morph targets).
Definition Mesh.h:25
Presentation-only renderer for a borrowed volumetric soft body.
SoftBody3D * getBody() const
Return the currently borrowed runtime.
SoftBody3DRenderer(const SoftBody3DRenderer &)=delete
SoftBody3DRenderer & operator=(const SoftBody3DRenderer &)=delete
SoftBody3DRenderer(SoftBody3D *body) noexcept
Construct a renderer observing a nullable soft-body runtime.
Volumetric particle soft body using overlapping shape-matching clusters.
Definition SoftBody3D.h:27
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36