38namespace eve::map {
class TileLayer; }
64 void setSideDepth(
float depth);
66 float getSideDepth()
const;
68 void setHeightScale(
float scale);
70 float getHeightScale()
const;
72 void setWallUV(
float u0,
float v0,
float u1,
float v1);
74 void setTint(
float r,
float g,
float b,
float a = 1.f);
95 float sideDepth_ = 6.f;
96 float heightScale_ = 1.f;
97 float wallU0_ = 0.f, wallV0_ = 0.f, wallU1_ = 0.05f, wallV1_ = 0.05f;
98 float tintR_ = 1.f, tintG_ = 1.f, tintB_ = 1.f, tintA_ = 1.f;
132 void setFrame(
float u0,
float v0,
float u1,
float v1);
134 void getFrame(
float &u0,
float &v0,
float &u1,
float &v1)
const;
136 void setFlipX(
bool flip);
138 void setFlipY(
bool flip);
143 int getFrameGridColumns()
const;
145 int getFrameGridRows()
const;
147 void setFrameIndex(
int index);
149 int getFrameIndex()
const;
151 int getFrameCount()
const;
158 void play(
int start,
int end,
float fps);
162 bool isPlaying()
const;
170 void update(
float dt);
196 void setPivot(
float x,
float y);
198 void setPosition(
float x,
float y,
float z);
200 float getPositionX()
const;
202 float getPositionY()
const;
204 float getPositionZ()
const;
208 float getWidth()
const;
210 float getHeight()
const;
212 void setTint(
float r,
float g,
float b,
float a = 1.f);
216 bool getVisible()
const;
222 void setAlphaCutoff(
float cutoff);
224 float getAlphaCutoff()
const;
229 void setDepthWrite(
bool enabled);
231 bool getDepthWrite()
const;
233 void setDoubleSided(
bool enabled);
235 bool getDoubleSided()
const;
240 void setBillboardMode(
const std::string &mode);
242 std::string getBillboardMode()
const;
253 bool playing =
false;
257 void updateFrameUv();
258 void orientToCamera();
268 float u0_ = 0.f, v0_ = 0.f, u1_ = 1.f, v1_ = 1.f;
269 bool flipX_ =
false, flipY_ =
false;
272 int gridCols_ = 1, gridRows_ = 1;
277 float x_ = 0.f, y_ = 0.f, z_ = 0.f;
278 float width_ = 1.f, height_ = 1.f;
279 float pivotX_ = 0.5f, pivotY_ = 0.5f;
280 float tintR_ = 1.f, tintG_ = 1.f, tintB_ = 1.f, tintA_ = 1.f;
281 bool visible_ =
true;
282 float alphaCutoff_ = 0.5f;
283 bool depthWrite_ =
true;
284 bool doubleSided_ =
true;
285 bool yawBillboard_ =
false;
301 void setFocusDistance(
float distance);
305 void setMaxBlur(
float blurPx);
309 void setFocusRange(
float range);
313 void setBloomIntensity(
float intensity);
317 void setBloomThreshold(
float threshold);
344 float focusDistance_ = 18.f;
345 float maxBlurPx_ = 5.f;
346 float focusRange_ = 14.f;
347 float bloomIntensity_ = 0.35f;
348 float bloomThreshold_ = 1.2f;
#define EVENGINE_API_DOMAINS
std::array< float, 3 > scale
EVENGINE_API_FOUNDATION public API.
EVENGINE_API_BACKENDS public API.
GPU mesh handle (+ optional CPU morph targets).
EVENGINE_API_BACKENDS public API.
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
HD-2D module: tilemap-to-3D extrusion + 2D sprites as 3D billboards.
HD-2D presentation look inspired by HD2DURP (DOF + bloom + pixel sampling).
float getFocusRange() const
Returns the focus range.
float getMaxBlur() const
Returns the max blur.
Hd2dLook()=default
Hd 2 d look.
float getBloomThreshold() const
Returns the bloom threshold.
float getBloomIntensity() const
Returns the bloom intensity.
float getFocusDistance() const
Returns the focus distance.
Camera-facing 2D sprite billboard rendered inside the 3D scene.
Sprite3D(const Sprite3D &)=delete
graphics::Mesh * quadMesh() const
Quad mesh.
Sprite3D & operator=(const Sprite3D &)=delete
Extrudes a 2D tile layer into a 3D terrain mesh (HD-2D ground).
int getTileCount() const
Number of box tiles baked by the last build.
TileMap3D()=default
Tile map 3 d.
TileMap3D(const TileMap3D &)=delete
TileMap3D & operator=(const TileMap3D &)=delete
ECS tile layer entity. Script mutates tile GIDs / tileset / draw; TileRenderSystem batch-draws atlas ...
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectang...