载入中...
搜索中...
未找到
TerrainGrassAdapter.h 文件参考
#include <string>
#include "common/Result.h"

浏览源代码.

命名空间

namespace  ssq
 EVEngine ECS 集成层:底层实现使用 sunxfancy/ECS.hpp https://github.com/sunxfancy/ECS.hpp
 
namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::graphics
 卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局参数。 数据模型与渲染/交互逻辑见 CardTypes.h。
 
namespace  eve::graphics::grass
 t3ssel8r-style stylized grass.
 
namespace  eve::image
 
namespace  eve::procgen
 

函数

Result< int > eve::procgen::bakeTerrainGrass (graphics::GrassField &field, const PointSet &points, const std::string &asset, float width, float height)
 Upload one asset group from generated points into a grass field using its built-in atlas. Preserves roots and independent horizontal/vertical scale; 64-bit instance IDs remain in PointSet, folded to 24-bit animation phases. Asset string selects points; it is not a texture loader. Normals/yaw are not used by upright billboards.
 
Result< int > eve::procgen::bakeTerrainGrassImage (graphics::GrassField &field, const PointSet &points, const std::string &asset, float width, float height, const image::ImageData &image)
 Upload an asset group using one original static RGBA8 texture instead of the built-in atlas. Same selection/thread/publication contract as bakeTerrainGrass; no image reference is retained. RGB and alpha are uploaded unchanged with one frame. Invalid image storage preserves the field.
 
Result< int > eve::procgen::bakeTerrainGrassFoliage (graphics::GrassField &field, const PointSet &points, const std::string &asset, float width, float height, const image::ImageData &albedo, const image::ImageData &normal, const image::ImageData &mask, const graphics::grass::GrassFoliageSettings &settings)
 Upload a Pcg-style static foliage surface with albedo, normal and packed mask maps.
 
void eve::procgen::exposeTerrainGrassAdapter (ssq::Table &table)
 Register full-host grass adapter; VM-thread only, no retained table reference.