载入中...
搜索中...
未找到
eve::procgen_graphics_editing 命名空间参考

函数

editing::Result< graphics::Mesh * > createHeightmapMesh (procgen::Heightmap *heightmap, float cellSize, float heightScale, bool smoothNormals)
 Build a heightmap preview mesh through the linked Graphics module.
 
editing::Result< void > updateHeightmapMesh (graphics::Mesh *mesh, graphics::Graphics *graphics, procgen::Heightmap *heightmap, float cellSize, float heightScale, bool smoothNormals)
 Update preview vertices without replacing the mesh identity.
 

函数说明

◆ createHeightmapMesh()

EVENGINE_API_ORCHESTRATION editing::Result< graphics::Mesh * > eve::procgen_graphics_editing::createHeightmapMesh ( procgen::Heightmap *  heightmap,
float  cellSize,
float  heightScale,
bool  smoothNormals 
)

Build a heightmap preview mesh through the linked Graphics module.

参数
heightmapBorrowed source heightmap used only for this call.
cellSizeHorizontal spacing; zero is rejected for smooth normals.
heightScaleVertical scale.
smoothNormalsWhether to share vertices and derive gradient normals.
返回
Applied with a newly allocated mesh owned by the caller, or a structured failure. @thread Render-thread only.

在文件 HeightmapMesh.cpp 第 127 行定义.

引用了 mesh.

被这些函数引用 eve::heightmap_target::HeightmapTargetModule::newMesh() , 以及 eve::heightmap_target::HeightmapTargetModule::newSmoothMesh().

◆ updateHeightmapMesh()

EVENGINE_API_ORCHESTRATION editing::Result< void > eve::procgen_graphics_editing::updateHeightmapMesh ( graphics::Mesh *  mesh,
graphics::Graphics *  graphics,
procgen::Heightmap *  heightmap,
float  cellSize,
float  heightScale,
bool  smoothNormals 
)

Update preview vertices without replacing the mesh identity.

参数
meshBorrowed mesh mutated during this call.
graphicsBorrowed graphics backend owning mesh.
heightmapBorrowed source heightmap.
cellSizeHorizontal spacing; zero is rejected for smooth normals.
heightScaleVertical scale.
smoothNormalsWhether to derive shared gradient normals.
返回
Applied, or a structured validation/backend failure. @thread Render-thread only.

在文件 HeightmapMesh.cpp 第 150 行定义.

引用了 mesh , 以及 eve::graphics::Graphics::updateMeshVertices().

被这些函数引用 eve::heightmap_target::HeightmapTargetModule::updateMesh() , 以及 eve::heightmap_target::HeightmapTargetModule::updateSmoothMesh().