载入中...
搜索中...
未找到
ProcgenGraph.cpp
浏览该文件的文档.
1#include "procgen/Procgen.h"
3
4#include "procgen/GridGraph.h"
5#include "procgen/MeshGraph.h"
11
12namespace eve::procgen {
13
15 return ownership_->pointGraphs.emplace(std::make_unique<PointGraph>());
16}
17
19 return ownership_->meshModifierGraphs.emplace(std::make_unique<MeshModifierGraph>());
20}
21
23 return ownership_->meshDeformationSessions.emplace(std::make_unique<MeshDeformationSession>());
24}
25
27 return ownership_->dynamicMeshUvPaintSessions.emplace(std::make_unique<DynamicMeshUvPaintSession>());
28}
29
31 return ownership_->splinePaths.emplace(std::make_unique<SplinePath>());
32}
33
35 return ownership_->gridGraphs.emplace(std::make_unique<GridGraph>());
36}
37
39 return ownership_->meshGraphs.emplace(std::make_unique<MeshGraph>());
40}
41
42} // namespace eve::procgen
Move-only operation result carrying either a value or Status.
Definition Result.h:176
eve::Result< ProcgenGridGraphHandleRef > newGridGraphHandle()
eve::Result< ProcgenDynamicMeshUvPaintSessionHandleRef > newDynamicMeshUvPaintSessionHandle()
Allocate a module-owned dynamic-mesh UV paint session.
eve::Result< ProcgenMeshModifierGraphHandleRef > newMeshModifierGraphHandle()
Allocate a module-owned mesh modifier graph.
eve::Result< ProcgenSplinePathHandleRef > newSplinePathHandle()
Allocate a module-owned 3D spline path.
eve::Result< ProcgenMeshDeformationSessionHandleRef > newMeshDeformationSessionHandle()
Allocate a module-owned interactive mesh deformation session.
eve::Result< ProcgenPointGraphHandleRef > newPointGraphHandle()
Creates a point graph handle. @ownership Caller deletes unless documented otherwise.
eve::Result< ProcgenMeshGraphHandleRef > newMeshGraphHandle()