载入中...
搜索中...
未找到

Procedural generation module. Phase A: runtime maps (semantic Grid2D → TileLayer). Phase B: runtime textures (ImageData / Texture). Phase C (partial): mesh recipes (Marching Cubes → MeshBuild / Mesh). Script: procgen <- eve.Procgen(); 更多...

#include <Procgen.h>

类 eve::procgen::Procgen 继承关系图:
eve::Module

类

struct  OwnershipState
 

Public 成员函数

 Module_REG (Procgen)
 
 Procgen ()
 Procgen.
 
 ~Procgen () override
 Procgen.
 
eve::Result< ProcgenOutputHandleRef > newOutputHandle ()
 Allocates an owning output specification.
 
eve::script::Borrowed< OutputSpec > resolveOutput (ProcgenOutputHandleRef reference) noexcept
 Resolves an output specification as a borrowed view.
 
eve::Result< void > releaseOutput (ProcgenOutputHandleRef reference)
 Releases an output specification.
 
bool isOutputStale (ProcgenOutputHandleRef reference) const noexcept
 Reports whether an output specification reference is stale.
 
eve::Result< ProcgenPointSetHandleRef > newPointSetHandle ()
 Allocates a point-set intermediate and returns its owner handle.
 
eve::script::Borrowed< PointSet > resolvePointSet (ProcgenPointSetHandleRef reference) noexcept
 Resolves a point set as a borrowed view.
 
eve::Result< void > releasePointSet (ProcgenPointSetHandleRef reference)
 Releases a point-set intermediate.
 
bool isPointSetStale (ProcgenPointSetHandleRef reference) const noexcept
 Reports whether a point-set handle is stale.
 
eve::Result< ProcgenPointSetHandleRef > sampleGridHandle (int width, int depth, float spacing, uint32_t seed, float jitter)
 
eve::Result< ProcgenPointSetHandleRef > filterHeightHandle (ProcgenPointSetHandleRef input, float minHeight, float maxHeight)
 Filter height handle.
 
eve::Result< ProcgenPointSetHandleRef > filterDensityHandle (ProcgenPointSetHandleRef input, float minDensity, float maxDensity)
 Filter density handle.
 
eve::Result< ProcgenPointSetHandleRef > filterBoxHandle (ProcgenPointSetHandleRef input, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool invert=false)
 Filter box handle.
 
eve::Result< ProcgenPointSetHandleRef > filterSlopeHandle (ProcgenPointSetHandleRef input, float minDegrees, float maxDegrees)
 Filter slope handle.
 
eve::Result< ProcgenPointSetHandleRef > filterPolygonHandle (ProcgenPointSetHandleRef input, ProcgenPointSetHandleRef polygon, bool invert=false)
 Filter polygon handle.
 
eve::Result< ProcgenPointSetHandleRef > filterSplineDistanceHandle (ProcgenPointSetHandleRef input, ProcgenPointSetHandleRef controlPoints, float minDistance, float maxDistance)
 Filter spline distance handle.
 
eve::Result< ProcgenPointSetHandleRef > excludeRadiusHandle (ProcgenPointSetHandleRef input, float x, float z, float radius)
 Exclude radius handle.
 
eve::Result< ProcgenPointSetHandleRef > jitterPointsHandle (ProcgenPointSetHandleRef input, uint32_t seed, float amountX, float amountZ)
 Jitter points handle.
 
eve::Result< ProcgenPointSetHandleRef > selfPruneHandle (ProcgenPointSetHandleRef input, float radius)
 Self prune handle.
 
eve::Result< ProcgenPointSetHandleRef > projectToHeightmapHandle (ProcgenPointSetHandleRef input, ProcgenHeightmapHandleRef heightmap, float originX, float originZ, float cellSize, float heightScale)
 Project to heightmap handle.
 
eve::Result< ProcgenPointSetHandleRef > sampleSplineHandle (ProcgenPointSetHandleRef controlPoints, float spacing, uint32_t seed, float lateralJitter)
 Sample spline handle.
 
eve::Result< ProcgenPointSetHandleRef > poissonDiskHandle (int width, int depth, float radius, uint32_t seed, int maxPoints)
 Poisson disk handle.
 
eve::Result< ProcgenPointSetHandleRef > mergePointsHandle (ProcgenPointSetHandleRef first, ProcgenPointSetHandleRef second)
 Merge points handle.
 
eve::Result< ProcgenPointSetHandleRef > unionPointsHandle (ProcgenPointSetHandleRef first, ProcgenPointSetHandleRef second)
 Union points handle.
 
eve::Result< ProcgenPointSetHandleRef > intersectPointsHandle (ProcgenPointSetHandleRef first, ProcgenPointSetHandleRef second)
 Intersect points handle.
 
eve::Result< ProcgenPointSetHandleRef > differencePointsHandle (ProcgenPointSetHandleRef first, ProcgenPointSetHandleRef second)
 Difference points handle.
 
eve::Result< ProcgenPointSetHandleRef > transformPointsHandle (ProcgenPointSetHandleRef input, float translateX, float translateY, float translateZ, float yawDegrees, float scaleX, float scaleY, float scaleZ)
 Transform points handle.
 
eve::Result< ProcgenPointSetHandleRef > transformPoints3DHandle (ProcgenPointSetHandleRef input, float translateX, float translateY, float translateZ, float pitchDegrees, float yawDegrees, float rollDegrees, float scaleX, float scaleY, float scaleZ)
 Transform points 3 d handle.
 
eve::Result< ProcgenPointSetHandleRef > copyPointsHandle (ProcgenPointSetHandleRef source, ProcgenPointSetHandleRef targets, bool inheritTargetAttributes)
 Copies points handle.
 
eve::Result< ProcgenPointSetHandleRef > remapDensityHandle (ProcgenPointSetHandleRef input, float inputMin, float inputMax, float outputMin, float outputMax, bool clampOutput)
 Remap density handle.
 
eve::Result< ProcgenPointSetHandleRef > mathFloatAttributeHandle (ProcgenPointSetHandleRef input, const std::string &attribute, const std::string &outputAttribute, const std::string &operation, float operand, float defaultValue)
 Math float attribute handle.
 
eve::Result< ProcgenPointSetHandleRef > filterFloatAttributeHandle (ProcgenPointSetHandleRef input, const std::string &name, float minValue, float maxValue, bool invert)
 Filter float attribute handle.
 
eve::Result< ProcgenPointSetHandleRef > filterStringAttributeHandle (ProcgenPointSetHandleRef input, const std::string &name, const std::string &value, bool invert)
 Filter string attribute handle.
 
eve::Result< ProcgenPointSetHandleRef > excludeGridMaskHandle (ProcgenPointSetHandleRef input, ProcgenGridHandleRef mask, float originX, float originZ, float cellSize, int semantic, float clearance, int maximumChecks)
 Filter owned points against an owned semantic grid mask with a bounded clearance search.
 
eve::Result< ProcgenPointSetHandleRef > densityCullHandle (ProcgenPointSetHandleRef input, uint32_t seed, float multiplier)
 Density cull handle.
 
eve::Result< ProcgenPointSetHandleRef > projectToWorldHandle (ProcgenPointSetHandleRef input, float maxY, float minY, std::uint64_t maskBits, bool keepUnmatched)
 Project points through the optional world-query capability.
 
eve::Result< ProcgenSpatialDataHandleRef > pointDataHandle (ProcgenPointSetHandleRef points)
 Point data handle.
 
eve::Result< ProcgenSpatialDataHandleRef > boxVolumeHandle (float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
 Box volume handle.
 
eve::Result< ProcgenSpatialDataHandleRef > sphereVolumeHandle (float x, float y, float z, float radius)
 Sphere volume handle.
 
eve::Result< ProcgenSpatialDataHandleRef > polygonVolumeHandle (ProcgenPointSetHandleRef controlPoints, float minY, float maxY)
 Polygon volume handle.
 
eve::Result< ProcgenSpatialDataHandleRef > splineDataHandle (ProcgenPointSetHandleRef controlPoints, float radius)
 Spline data handle.
 
eve::Result< ProcgenSpatialDataHandleRef > heightfieldDataHandle (ProcgenHeightmapHandleRef heightmap, float originX, float originZ, float cellSize, float heightScale)
 Heightfield data handle.
 
eve::Result< ProcgenSpatialDataHandleRef > textureMaskDataHandle (ProcgenHeightmapHandleRef values, float originX, float originZ, float cellSize, float minValue, float maxValue, float minY, float maxY)
 Texture mask data handle.
 
eve::Result< ProcgenSpatialDataHandleRef > meshSurfaceDataHandle (ProcgenMeshBuildHandleRef mesh, float tolerance)
 Mesh surface data handle.
 
eve::Result< ProcgenSpatialDataHandleRef > unionSpatialHandle (ProcgenSpatialDataHandleRef left, ProcgenSpatialDataHandleRef right)
 Union spatial handle.
 
eve::Result< ProcgenSpatialDataHandleRef > intersectSpatialHandle (ProcgenSpatialDataHandleRef left, ProcgenSpatialDataHandleRef right)
 Intersect spatial handle.
 
eve::Result< ProcgenSpatialDataHandleRef > differenceSpatialHandle (ProcgenSpatialDataHandleRef left, ProcgenSpatialDataHandleRef right)
 Difference spatial handle.
 
eve::Result< ProcgenPointSetHandleRef > sampleSpatialHandle (ProcgenSpatialDataHandleRef spatial, float spacing, uint32_t seed, float jitter)
 Sample spatial handle.
 
eve::Result< ProcgenPointSetHandleRef > filterSpatialHandle (ProcgenPointSetHandleRef input, ProcgenSpatialDataHandleRef spatial, bool invert)
 Filter spatial handle.
 
eve::Result< ProcgenPointSetHandleRef > projectToSpatialHandle (ProcgenPointSetHandleRef input, ProcgenSpatialDataHandleRef spatial)
 Project to spatial handle.
 
eve::Result< ProcgenRuntimeGenerationHandleRef > newRuntimeGenerationHandle (uint32_t worldSeed)
 Creates a runtime generation handle. @ownership Caller deletes unless documented otherwise.
 
eve::Result< ProcgenPointGraphHandleRef > newPointGraphHandle ()
 Creates a point graph handle. @ownership Caller deletes unless documented otherwise.
 
eve::Result< ProcgenMeshModifierGraphHandleRef > newMeshModifierGraphHandle ()
 Allocate a module-owned mesh modifier graph.
 
eve::Result< ProcgenMeshDeformationSessionHandleRef > newMeshDeformationSessionHandle ()
 Allocate a module-owned interactive mesh deformation session.
 
eve::Result< ProcgenDynamicMeshUvPaintSessionHandleRef > newDynamicMeshUvPaintSessionHandle ()
 Allocate a module-owned dynamic-mesh UV paint session.
 
eve::Result< ProcgenSplinePathHandleRef > newSplinePathHandle ()
 Allocate a module-owned 3D spline path.
 
eve::Result< ProcgenGridGraphHandleRef > newGridGraphHandle ()
 
eve::Result< ProcgenMeshGraphHandleRef > newMeshGraphHandle ()
 
eve::Result< ProcgenBiomeRulesHandleRef > newBiomeRulesHandle ()
 
eve::Result< ProcgenShapeGrammarHandleRef > newShapeGrammarHandle ()
 
eve::Result< ProcgenLSystemHandleRef > newLSystemHandle ()
 
eve::script::Borrowed< SpatialData > resolveSpatialData (ProcgenSpatialDataHandleRef reference) noexcept
 
eve::script::Borrowed< RuntimeGeneration > resolveRuntimeGeneration (ProcgenRuntimeGenerationHandleRef reference) noexcept
 
eve::script::Borrowed< PointGraph > resolvePointGraph (ProcgenPointGraphHandleRef reference) noexcept
 Resolve point graph.
 
eve::script::Borrowed< MeshModifierGraph > resolveMeshModifierGraph (ProcgenMeshModifierGraphHandleRef reference) noexcept
 Resolve a mesh modifier graph for the current synchronous call only.
 
eve::script::Borrowed< MeshDeformationSession > resolveMeshDeformationSession (ProcgenMeshDeformationSessionHandleRef reference) noexcept
 Resolve a mesh deformation session for the current synchronous call only.
 
eve::script::Borrowed< DynamicMeshUvPaintSession > resolveDynamicMeshUvPaintSession (ProcgenDynamicMeshUvPaintSessionHandleRef reference) noexcept
 Resolve dynamic UV paint state for the current synchronous call only.
 
eve::script::Borrowed< SplinePath > resolveSplinePath (ProcgenSplinePathHandleRef reference) noexcept
 Resolve a spline path for the current synchronous call only.
 
eve::script::Borrowed< GridGraph > resolveGridGraph (ProcgenGridGraphHandleRef reference) noexcept
 
eve::script::Borrowed< MeshGraph > resolveMeshGraph (ProcgenMeshGraphHandleRef reference) noexcept
 
eve::script::Borrowed< BiomeRules > resolveBiomeRules (ProcgenBiomeRulesHandleRef reference) noexcept
 
eve::script::Borrowed< ShapeGrammar > resolveShapeGrammar (ProcgenShapeGrammarHandleRef reference) noexcept
 
eve::script::Borrowed< LSystem > resolveLSystem (ProcgenLSystemHandleRef reference) noexcept
 Resolve l system.
 
eve::Result< void > release (ProcgenSpatialDataHandleRef reference)
 Release.
 
eve::Result< void > release (ProcgenRuntimeGenerationHandleRef reference)
 Release.
 
eve::Result< void > release (ProcgenPointGraphHandleRef reference)
 Release.
 
eve::Result< void > release (ProcgenMeshModifierGraphHandleRef reference)
 Release a module-owned mesh modifier graph.
 
eve::Result< void > release (ProcgenMeshDeformationSessionHandleRef reference)
 Release a module-owned mesh deformation session.
 
eve::Result< void > release (ProcgenDynamicMeshUvPaintSessionHandleRef reference)
 Release a module-owned dynamic-mesh UV paint session.
 
eve::Result< void > release (ProcgenSplinePathHandleRef reference)
 Release a module-owned spline path.
 
eve::Result< void > release (ProcgenGridGraphHandleRef reference)
 
eve::Result< void > release (ProcgenMeshGraphHandleRef reference)
 
eve::Result< void > release (ProcgenBiomeRulesHandleRef reference)
 
eve::Result< void > release (ProcgenShapeGrammarHandleRef reference)
 
eve::Result< void > release (ProcgenLSystemHandleRef reference)
 
bool isStale (ProcgenSpatialDataHandleRef reference) const noexcept
 
bool isStale (ProcgenRuntimeGenerationHandleRef reference) const noexcept
 
bool isStale (ProcgenPointGraphHandleRef reference) const noexcept
 
bool isStale (ProcgenMeshModifierGraphHandleRef reference) const noexcept
 Report whether a mesh modifier graph handle is stale.
 
bool isStale (ProcgenMeshDeformationSessionHandleRef reference) const noexcept
 Report whether a mesh deformation session handle is stale.
 
bool isStale (ProcgenDynamicMeshUvPaintSessionHandleRef reference) const noexcept
 Report whether a dynamic-mesh UV paint handle is stale.
 
bool isStale (ProcgenSplinePathHandleRef reference) const noexcept
 Report whether a spline path handle is stale.
 
bool isStale (ProcgenGridGraphHandleRef reference) const noexcept
 
bool isStale (ProcgenMeshGraphHandleRef reference) const noexcept
 
bool isStale (ProcgenBiomeRulesHandleRef reference) const noexcept
 
bool isStale (ProcgenShapeGrammarHandleRef reference) const noexcept
 
bool isStale (ProcgenLSystemHandleRef reference) const noexcept
 
eve::Result< void > publishInstances (const std::string &batchId, ProcgenPointSetHandleRef points, const std::string &assetAttribute, const std::string &defaultAsset)
 
eve::Result< void > removeInstances (const std::string &batchId)
 Removes instances.
 
eve::Result< void > publishCellInstances (const std::string &prefix, const ProcgenCellRequest &request, ProcgenPointSetHandleRef points, const std::string &assetAttribute, const std::string &defaultAsset)
 Publish cell instances.
 
eve::Result< uint64_t > publishCellSnapshot (const std::string &prefix, const ProcgenCellRequest &request, ProcgenPointSetHandleRef points, uint64_t targetRevision, const std::string &assetAttribute, const std::string &defaultAsset)
 Replace a Scene cell batch from a complete RuntimeGeneration snapshot at an explicit revision.
 
eve::Result< uint64_t > publishCellInstanceDelta (const std::string &prefix, const ProcgenCellRequest &request, const PointDelta &delta, uint64_t targetRevision, const std::string &assetAttribute, const std::string &defaultAsset)
 Project one committed point delta into an existing Scene cell batch atomically.
 
eve::Result< uint64_t > synchronizeCellInstances (const std::string &prefix, const RuntimeGeneration &runtime, const ProcgenCellRequest &request, const std::string &assetAttribute, const std::string &defaultAsset)
 Synchronize one active RuntimeGeneration cell to Scene using a delta or recovery snapshot.
 
eve::Result< uint64_t > synchronizeCellInstancesAtomic (const std::string &prefix, const std::vector< const RuntimeGeneration * > &runtimes, const std::vector< const ProcgenCellRequest * > &requests, const std::string &assetAttribute, const std::string &defaultAsset)
 Synchronize several active runtime cells through one atomic Scene transaction.
 
eve::Result< void > removeCellInstances (const std::string &prefix, const ProcgenCellRequest &request)
 Removes cell instances.
 
eve::Result< uint64_t > removeCellInstancesAtomic (const std::string &prefix, const std::vector< const ProcgenCellRequest * > &requests)
 Atomically remove the Scene batches identified by several cleanup requests.
 
eve::Result< uint64_t > completeCellCleanupAtomic (const std::string &prefix, const std::vector< RuntimeGeneration * > &runtimes, const std::vector< const ProcgenCellRequest * > &requests)
 Atomically remove Scene batches and acknowledge their cleanup tickets across schedulers.
 
int getPublishedInstanceCount (const std::string &batchId) const
 Returns the published instance count.
 
int getPublishedCreatedCount (const std::string &batchId) const
 Returns the published created count.
 
int getPublishedReusedCount (const std::string &batchId) const
 Returns the published reused count.
 
int getPublishedRemovedCount (const std::string &batchId) const
 Returns the published removed count.
 
uint32_t deriveSeed (uint32_t parent, const std::string &scope) const
 Derive seed.
 
eve::Result< void > commitSystem (ProcgenContextHandleRef context)
 
eve::Result< void > abortSystem (ProcgenContextHandleRef context)
 
eve::Result< void > removeSystem (const std::string &name)
 
bool hasSystem (const std::string &name) const
 
uint64_t getSystemRevision (const std::string &name) const
 Returns the system revision.
 
uint32_t getSystemSeed (const std::string &name) const
 Returns the system seed.
 
std::string getSystemBuildKey (const std::string &name) const
 Returns the system build key.
 
int getSystemOutputCount (const std::string &name) const
 Returns the system output count.
 
std::string getSystemOutputName (const std::string &name, int index) const
 Returns the system output name.
 
int getSystemDebugStageCount (const std::string &name) const
 Returns the system debug stage count.
 
std::string getSystemDebugStageName (const std::string &name, int index) const
 Returns the system debug stage name.
 
eve::Result< ProcgenPointSetHandleRef > getSystemOutputHandle (const std::string &name, const std::string &outputName) const
 Returns the system output handle.
 
eve::Result< ProcgenPointSetHandleRef > getSystemDebugStageHandle (const std::string &name, const std::string &stageName) const
 Returns the system debug stage handle.
 
eve::Result< ProcgenPointSetHandleRef > getPreviousSystemDebugStageHandle (const std::string &name, const std::string &stageName) const
 Returns the previous system debug stage handle.
 
uint64_t getPreviousSystemRevision (const std::string &name) const
 Revision number of the snapshot retained for hot-reload comparison.
 
std::string getSystemDebugReport (const std::string &name) const
 Returns the system debug report.
 
std::string getSystemDebugDiffReport (const std::string &name) const
 Human-readable point-count changes between the current and previous commits.
 
eve::Result< ProcgenGridHandleRef > generateHandle (const std::string &algorithmId, ProcgenParamsHandleRef params)
 Generate handle.
 
eve::Result< void > generateTo (const std::string &algorithmId, ProcgenParamsHandleRef params, ProcgenOutputHandleRef output)
 Generate to.
 
eve::Result< void > applyToLayer (ProcgenGridHandleRef grid, const std::string &palette, map::TileLayer &layer)
 Applies to layer.
 
void setPaletteGid (const std::string &palette, const std::string &semantic, int gid)
 Sets the palette gid.
 
int getPaletteGid (const std::string &palette, const std::string &semantic) const
 Returns the palette gid.
 
int getAlgorithmCount () const
 Returns the algorithm count.
 
std::string getAlgorithmId (int index) const
 Returns the algorithm id.
 
bool hasAlgorithm (const std::string &algorithmId) const
 True when algorithm.
 
eve::Result< RecipeDescriptor > getAlgorithmSchema (const std::string &algorithmId) const
 Returns an owning copy of an algorithm schema or a diagnostic.
 
std::string getAlgorithmDisplayName (const std::string &algorithmId) const
 Human-readable algorithm label from its schema.
 
std::string getAlgorithmCategory (const std::string &algorithmId) const
 Algorithm category from its schema.
 
int getAlgorithmParamCount (const std::string &algorithmId) const
 Number of reflected parameters for one algorithm.
 
std::string getAlgorithmParamKey (const std::string &algorithmId, int index) const
 Stable parameter key at an index.
 
std::string getAlgorithmParamLabel (const std::string &algorithmId, int index) const
 Human-readable parameter label at an index.
 
std::string getAlgorithmParamDescription (const std::string &algorithmId, int index) const
 Parameter help text at an index.
 
std::string getAlgorithmParamCategory (const std::string &algorithmId, int index) const
 Parameter group at an index.
 
std::string getAlgorithmParamKind (const std::string &algorithmId, int index) const
 Parameter kind as int, float, bool, string or choice.
 
std::string getAlgorithmParamDefault (const std::string &algorithmId, int index) const
 Schema default encoded as text for lossless dynamic UI transport.
 
bool algorithmParamHasMinimum (const std::string &algorithmId, int index) const
 Return true when a numeric minimum is declared.
 
bool algorithmParamHasMaximum (const std::string &algorithmId, int index) const
 Return true when a numeric maximum is declared.
 
float getAlgorithmParamMinimum (const std::string &algorithmId, int index) const
 Numeric minimum.
 
float getAlgorithmParamMaximum (const std::string &algorithmId, int index) const
 Numeric maximum.
 
float getAlgorithmParamStep (const std::string &algorithmId, int index) const
 Suggested numeric editing step.
 
bool isAlgorithmParamAdvanced (const std::string &algorithmId, int index) const
 Return true when a parameter should be hidden by compact inspectors.
 
int getAlgorithmParamChoiceCount (const std::string &algorithmId, int index) const
 Number of allowed values for a choice parameter.
 
std::string getAlgorithmParamChoice (const std::string &algorithmId, int paramIndex, int choiceIndex) const
 Choice value at an index.
 
eve::Result< void > applyAlgorithmDefaults (const std::string &algorithmId, ProcgenParamsHandleRef params) const
 Fill missing algorithm-specific values from schema defaults.
 
eve::Result< void > autotileGrid (ProcgenGridHandleRef grid)
 Post-process a generated grid: fill each wall cell's detail with an 8-bit neighbour mask (autotile directions). Mutates grid in place.
 
uint32_t randomSeed ()
 Fresh non-zero seed for regenerating a level.
 
eve::Result< std::string > gridToJson (ProcgenGridHandleRef grid) const
 Grid to json.
 
eve::Result< ProcgenImageHandleRef > generateImageHandle (const std::string &recipeId, ProcgenParamsHandleRef params)
 Generate image handle.
 
eve::Result< ProcgenNormalImageHandleRef > generateNormalImageHandle (const std::string &recipeId, ProcgenParamsHandleRef params)
 
eve::script::Borrowed< graphics::Texture > generateTextureBorrowed (const std::string &recipeId, ProcgenParamsHandleRef params, graphics::Graphics *gfx)
 Uploads a generated recipe to Graphics and returns a borrowed texture.
 
int getTextureRecipeCount () const
 Returns the texture recipe count.
 
std::string getTextureRecipeId (int index) const
 Returns the texture recipe id.
 
bool hasTextureRecipe (const std::string &recipeId) const
 True when texture recipe.
 
eve::Result< RecipeDescriptor > getTextureRecipeSchema (const std::string &recipeId) const
 Returns an owning copy of a texture schema or a diagnostic.
 
eve::Result< void > applyTextureRecipeDefaults (const std::string &recipeId, ProcgenParamsHandleRef params) const
 Fill missing texture parameters in a module-owned parameter object.
 
eve::Result< ProcgenCloudFieldHandleRef > newCloudFieldHandle ()
 New deterministic, tiling, time-animated cloud field (caller owns).
 
eve::script::Borrowed< CloudField > resolveCloudField (ProcgenCloudFieldHandleRef) noexcept
 
eve::Result< void > releaseCloudField (ProcgenCloudFieldHandleRef)
 
bool isCloudFieldStale (ProcgenCloudFieldHandleRef) const noexcept
 
eve::Result< ProcgenCloudShadowHandleRef > newCloudShadowHandle ()
 New sun projection over a cloud field → ground shadows (caller owns).
 
eve::script::Borrowed< CloudShadow > resolveCloudShadow (ProcgenCloudShadowHandleRef) noexcept
 
eve::Result< void > releaseCloudShadow (ProcgenCloudShadowHandleRef)
 
bool isCloudShadowStale (ProcgenCloudShadowHandleRef) const noexcept
 
eve::Result< float > cloudCoverageAt (ProcgenCloudFieldHandleRef field, float x, float z, float time)
 Cloud coverage at world (x, z) and time using a live field handle.
 
eve::Result< float > cloudShadowFactor (ProcgenCloudShadowHandleRef shadow, float x, float z, float time)
 Light multiplier in [0,1] using a live shadow handle.
 
eve::Result< void > sampleCloud (ProcgenCloudFieldHandleRef field, std::span< float > out, int w, int h, float time, float x0, float z0, float extent)
 Samples coverage into a caller-owned buffer after validating its size.
 
eve::Result< void > sampleCloudShadow (ProcgenCloudShadowHandleRef shadow, std::span< float > out, int w, int h, float time, float x0, float z0, float extent)
 Samples shadow coverage into a caller-owned buffer after validating its size.
 
eve::Result< ProcgenPbrMaterialHandleRef > generatePbrMaterialHandle (const std::string &recipeId, ProcgenParamsHandleRef params)
 Full metallic-roughness PBR set (albedo/normal/roughness/metallic/height/ao) derived from a single displacement field. Caller owns the returned set (call PbrTextureSet::destroy()). Recipes: pbr.soil/stone/rock/marble/water/ ripple/wood/cloth/ornament/spot/zebra/wall/cement/mud/sky_cloud.
 
eve::script::Borrowed< PbrTextureSet > resolvePbrMaterial (ProcgenPbrMaterialHandleRef) noexcept
 Resolve pbr material.
 
eve::Result< void > releasePbrMaterial (ProcgenPbrMaterialHandleRef)
 Release pbr material.
 
bool isPbrMaterialStale (ProcgenPbrMaterialHandleRef) const noexcept
 True when pbr material stale.
 
int getPbrRecipeCount () const
 Returns the pbr recipe count.
 
std::string getPbrRecipeId (int index) const
 Returns the pbr recipe id.
 
bool hasPbrRecipe (const std::string &recipeId) const
 True when pbr recipe.
 
eve::Result< RecipeDescriptor > getPbrRecipeSchema (const std::string &recipeId) const
 Returns an owning copy of a PBR schema or a diagnostic.
 
eve::Result< void > applyPbrRecipeDefaults (const std::string &recipeId, ProcgenParamsHandleRef params) const
 Fill missing PBR parameters in a module-owned parameter object.
 
eve::Result< ProcgenMeshBuildHandleRef > buildMeshHandle (const std::string &recipeId, ProcgenParamsHandleRef params)
 CPU mesh (caller owns). Recipes include mesh.marchingcubes, mesh.hexplanet, mesh.castle and the registered vegetation, building and linear-structure recipes.
 
eve::script::Borrowed< MeshBuild > resolveMeshBuild (ProcgenMeshBuildHandleRef) noexcept
 Resolve mesh build.
 
eve::Result< void > releaseMeshBuild (ProcgenMeshBuildHandleRef)
 Release mesh build.
 
bool isMeshBuildStale (ProcgenMeshBuildHandleRef) const noexcept
 True when mesh build stale.
 
eve::Result< GeneratedArtifact > buildArtifact (const std::string &recipeId, ProcgenParamsHandleRef params, ArtifactId id)
 Build an owning backend-neutral CPU artifact for a mesh recipe.
 
eve::Result< ArtifactPublishReceipt > publishArtifact (const std::string &recipeId, ProcgenParamsHandleRef params, ArtifactId id, ArtifactPublishOptions options={})
 Build then transactionally publish through requested optional adapters.
 
const ArtifactStore & artifactStore () const noexcept
 Borrow the compatibility facade's published CPU artifact store.
 
eve::script::Borrowed< graphics::Mesh > uploadMeshBorrowed (const MeshBuild &mesh, graphics::Graphics &gfx)
 Upload an existing/composed CPU mesh to Graphics.
 
eve::Result< void > configureGtsTerrainTileLods (const GtsTerrainLodSet &lods, int tileIndex, graphics::Renderable3D &renderable, graphics::Graphics &gfx, float worldDiameter, float verticalFovDegrees, float originX=0.f, float originY=0.f, float originZ=0.f)
 Upload and atomically attach one GTS tile's LOD chain to a renderable.
 
eve::Result< void > configurePcgMeshLods (const PcgMeshLodSet &lods, graphics::Renderable3D &renderable, graphics::Graphics &gfx, float worldDiameter, float verticalFovDegrees)
 Upload and atomically attach one generic Pcg mesh LOD chain.
 
eve::script::Borrowed< graphics::Mesh > generateMeshBorrowed (const std::string &recipeId, ProcgenParamsHandleRef params, graphics::Graphics *gfx)
 Build + upload to GPU Mesh (owned by Graphics).
 
int getMeshRecipeCount () const
 Returns the mesh recipe count.
 
std::string getMeshRecipeId (int index) const
 Returns the mesh recipe id.
 
bool hasMeshRecipe (const std::string &recipeId) const
 True when mesh recipe.
 
eve::Result< RecipeDescriptor > getMeshRecipeSchema (const std::string &recipeId) const
 Returns an owning copy of a mesh schema or a diagnostic.
 
eve::Result< void > applyMeshRecipeDefaults (const std::string &recipeId, ProcgenParamsHandleRef params) const
 Fill missing mesh parameters in a module-owned parameter object.
 
eve::Result< ProcgenTerrainSamplerHandleRef > newTerrainSamplerHandle ()
 Sampling function over continuous map coordinates (caller owns).
 
eve::script::Borrowed< TerrainSampler > resolveTerrainSampler (ProcgenTerrainSamplerHandleRef) noexcept
 
eve::Result< void > releaseTerrainSampler (ProcgenTerrainSamplerHandleRef)
 
bool isTerrainSamplerStale (ProcgenTerrainSamplerHandleRef) const noexcept
 
eve::Result< ProcgenHeightmapHandleRef > newHeightmapHandle (int width, int height)
 Empty in-memory heightmap (caller owns).
 
eve::Result< ProcgenHeightmapHandleRef > adoptHeightmap (Heightmap heightmap)
 Take ownership of a decoded height field so script can sample it.
 
eve::script::Borrowed< Heightmap > resolveHeightmap (ProcgenHeightmapHandleRef) noexcept
 
eve::Result< void > releaseHeightmap (ProcgenHeightmapHandleRef)
 
bool isHeightmapStale (ProcgenHeightmapHandleRef) const noexcept
 
bool heightmapToGrid (Heightmap *heightmap, Params *params, Grid2D *out)
 Compatibility facade that classifies a heightmap into a semantic Grid2D.
 
bool erodeTerrainThermal (Heightmap *heightmap, int iterations, float talus, float strength)
 Compatibility facade that applies mass-conserving thermal erosion in place.
 
bool erodeTerrainHydraulic (Heightmap *heightmap, int iterations, float rainfall, float evaporation, float capacity, float erosion, float deposition)
 Compatibility facade that applies deterministic grid water/sediment erosion.
 
bool erodeTerrainFluvial (Heightmap *heightmap, int iterations, float riverThreshold, float incision, float maxDepth, float bankWidth)
 Compatibility facade that cuts drainage-connected river valleys in place.
 
bool erodeTerrainFluvialAdvanced (Heightmap *heightmap, int iterations, float riverThreshold, float incision, float maxDepth, float bankWidth, float maxBreachDepth)
 Compatibility facade with independent incision and spill-sill limits.
 
bool erodeTerrainFluvialScaled (Heightmap *heightmap, int iterations, float riverThreshold, float incision, float maxDepth, float bankWidth, float maxBreachDepth, float coordinateScale)
 Compatibility facade with explicit raster-to-physical scaling.
 
TerrainErosionMap * erodeTerrainFluvialDetailed (Heightmap *heightmap, int iterations, float riverThreshold, float incision, float maxDepth, float bankWidth, float maxBreachDepth, float coordinateScale)
 Compatibility facade for detailed erosion. @ownership Caller owns the result.
 
TerrainLayers * analyzeTerrain (Heightmap *heightmap, float riverThreshold, float seaLevel, float latitude)
 Compatibility facade for terrain analysis. @ownership Caller owns the result.
 
TerrainLayers * analyzeTerrainScaled (Heightmap *heightmap, float riverThreshold, float seaLevel, float latitude, float coordinateScale)
 Compatibility facade for scaled analysis. @ownership Caller owns the result.
 
data::ByteData * bakeTerrainAsset (Heightmap *heightmap, TerrainLayers *layers, int chunkSize)
 Compatibility facade for EVTR baking. @ownership Caller owns the result.
 
TerrainMeshChunk * buildTerrainChunk (Heightmap *heightmap, TerrainLayers *layers, int originX, int originY, int cellsX, int cellsY, int lod, float cellSize, float heightScale, float skirtDepth)
 Compatibility facade for LOD chunks. @ownership Caller owns the result.
 
int selectTerrainLod (Heightmap *heightmap, int originX, int originY, int cellsX, int cellsY, int maxLod, float cellSize, float heightScale, float cameraDistance, float viewportHeight, float verticalFovDegrees, float targetPixelError)
 Select terrain LOD from measured screen-space geometric error.
 
graphics::Mesh * generateTerrainChunkMesh (TerrainMeshChunk *chunk, graphics::Graphics *gfx)
 Compatibility upload facade. @lifetime Returned mesh is owned by Graphics.
 
graphics::Mesh * generateTerrainRiverMesh (Heightmap *heightmap, TerrainLayers *layers, graphics::Graphics *gfx, int originX, int originY, int cellsX, int cellsY, float cellSize, float heightScale, float minWidth, float maxWidth, float heightOffset)
 Compatibility river mesh facade. @lifetime Returned mesh is owned by Graphics.
 
graphics::Mesh * generateTerrainRiverMeshAdvanced (Heightmap *heightmap, TerrainLayers *layers, graphics::Graphics *gfx, int originX, int originY, int cellsX, int cellsY, float cellSize, float heightScale, float minWidth, float maxWidth, float heightOffset, float minSurfaceSlope, float maxSurfaceSlope)
 Compatibility slope-banded river facade. @lifetime Returned mesh is owned by Graphics.
 
graphics::Mesh * generateTerrainLakeMesh (Heightmap *heightmap, TerrainLayers *layers, graphics::Graphics *gfx, int originX, int originY, int cellsX, int cellsY, float cellSize, float heightScale, float minimumDepth, float heightOffset)
 Compatibility lake mesh facade. @lifetime Returned mesh is owned by Graphics.
 
image::ImageData * generateTerrainSplatMap (TerrainMeshChunk *chunk)
 Compatibility splat facade. @ownership Caller owns the returned image.
 
image::ImageData * generateTerrainAlbedoMap (TerrainMeshChunk *chunk)
 Compatibility albedo facade. @ownership Caller owns the returned image.
 
image::ImageData * generateTerrainErosionMap (TerrainErosionMap *erosion, float exposure)
 Compatibility erosion facade. @ownership Caller owns the returned image.
 
image::ImageData * generateTerrainWearMap (TerrainErosionMap *erosion, float exposure)
 Compatibility wear facade. @ownership Caller owns the returned image.
 
image::ImageData * generateTerrainDepositionMap (TerrainErosionMap *erosion, float exposure)
 Compatibility deposition facade. @ownership Caller owns the returned image.
 
graphics::Shader * createTerrainMaterialShader (graphics::Graphics *gfx)
 Compatibility material facade. @lifetime Returned shader is owned by Graphics.
 
graphics::Shader * createTerrainWaterShader (graphics::Graphics *gfx)
 Compatibility water facade. @lifetime Returned shader is owned by Graphics.
 
eve::Result< ProcgenHeightmapHandleRef > generateHeightmapHandle (ProcgenParamsHandleRef params)
 Generate heightmap handle.
 
eve::Result< ProcgenGridHandleRef > heightmapToGrid (ProcgenHeightmapHandleRef heightmap, ProcgenParamsHandleRef params)
 Classify a heightmap into a module-owned grid using params bands.
 
PaletteTable & palettes ()
 Palettes.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

静态 Public 成员函数

static eve::Result< ProcgenParamsHandleRef > newParamsHandle ()
 Allocates module-owned generation parameters.
 
static eve::script::Borrowed< Params > resolve (ProcgenParamsHandleRef reference) noexcept
 Resolves parameters as a non-owning observation.
 
static eve::Result< void > release (ProcgenParamsHandleRef reference)
 Releases module-owned parameters.
 
static bool isStale (ProcgenParamsHandleRef reference) noexcept
 Reports whether a parameter reference is stale.
 
static eve::Result< ProcgenGridHandleRef > newGridHandle (int width, int height)
 Allocates module-owned grid storage and returns its handle.
 
static eve::script::Borrowed< Grid2D > resolve (ProcgenGridHandleRef reference) noexcept
 Resolves a grid as a non-owning observation.
 
static eve::Result< void > release (ProcgenGridHandleRef reference)
 Releases module-owned grid storage.
 
static bool isStale (ProcgenGridHandleRef reference) noexcept
 Reports whether a grid reference is stale.
 
static eve::Result< ProcgenContextHandleRef > beginSystemHandle (const std::string &name, uint32_t seed)
 Starts a module-owned rebuild context and returns its handle.
 
static eve::Result< ProcgenContextHandleRef > beginCachedSystemHandle (const std::string &name, uint32_t seed, const std::string &buildKey)
 Starts a cached module-owned rebuild context and returns its handle.
 
static eve::script::Borrowed< ProcgenContext > resolve (ProcgenContextHandleRef reference) noexcept
 Resolves a rebuild context as a non-owning observation.
 
static eve::Result< void > release (ProcgenContextHandleRef reference)
 Releases a module-owned rebuild context.
 
static bool isStale (ProcgenContextHandleRef reference) noexcept
 Reports whether a rebuild context reference is stale.
 
static eve::script::Borrowed< image::ImageData > resolve (ProcgenImageHandleRef reference) noexcept
 Resolves a generated image as a non-owning observation.
 
static eve::Result< void > release (ProcgenImageHandleRef reference)
 Releases a module-owned generated image.
 
static bool isStale (ProcgenImageHandleRef reference) noexcept
 Reports whether a generated image reference can no longer resolve.
 
static eve::script::Borrowed< image::ImageData > resolve (ProcgenNormalImageHandleRef reference) noexcept
 Resolves a generated normal image as a non-owning observation.
 
static eve::Result< void > release (ProcgenNormalImageHandleRef reference)
 Releases a module-owned generated normal image.
 
static bool isStale (ProcgenNormalImageHandleRef reference) noexcept
 Reports whether a generated normal-image reference can no longer resolve.
 

详细描述

Procedural generation module. Phase A: runtime maps (semantic Grid2D → TileLayer). Phase B: runtime textures (ImageData / Texture). Phase C (partial): mesh recipes (Marching Cubes → MeshBuild / Mesh). Script: procgen <- eve.Procgen();

在文件 Procgen.h 第 146 行定义.

构造及析构函数说明

◆ Procgen()

◆ ~Procgen()

eve::procgen::Procgen::~Procgen ( )
overridedefault

成员函数说明

◆ abortSystem()

◆ adoptHeightmap()

eve::Result< ProcgenHeightmapHandleRef > eve::procgen::Procgen::adoptHeightmap ( Heightmap  heightmap)

Take ownership of a decoded height field so script can sample it.

参数
heightmapDecoded grid, moved into the module-owned registry.
返回
Owning handle, or a failure when the module is shutting down.

在文件 Procgen.cpp 第 2517 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth() , 以及 eve::InvalidArgument.

◆ algorithmParamHasMaximum()

bool eve::procgen::Procgen::algorithmParamHasMaximum ( const std::string &  algorithmId,
int  index 
) const

Return true when a numeric maximum is declared.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Whether it exists.

在文件 Procgen.cpp 第 1910 行定义.

引用了 eve::procgen::ParamDescriptor::hasMaximum , 以及 index.

◆ algorithmParamHasMinimum()

bool eve::procgen::Procgen::algorithmParamHasMinimum ( const std::string &  algorithmId,
int  index 
) const

Return true when a numeric minimum is declared.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Whether it exists.

在文件 Procgen.cpp 第 1905 行定义.

引用了 eve::procgen::ParamDescriptor::hasMinimum , 以及 index.

◆ analyzeTerrain()

TerrainLayers * eve::procgen::Procgen::analyzeTerrain ( Heightmap *  heightmap,
float  riverThreshold,
float  seaLevel,
float  latitude 
)

Compatibility facade for terrain analysis. @ownership Caller owns the result.

在文件 Procgen.cpp 第 2638 行定义.

引用了 analyzeTerrainScaled().

◆ analyzeTerrainScaled()

TerrainLayers * eve::procgen::Procgen::analyzeTerrainScaled ( Heightmap *  heightmap,
float  riverThreshold,
float  seaLevel,
float  latitude,
float  coordinateScale 
)

Compatibility facade for scaled analysis. @ownership Caller owns the result.

在文件 Procgen.cpp 第 2642 行定义.

引用了 eve::procgen::TerrainPipeline::buildClimate(), eve::procgen::TerrainPipeline::buildHydrology(), climate, eve::procgen::Heightmap::getHeight() , 以及 eve::procgen::Heightmap::getWidth().

被这些函数引用 analyzeTerrain().

◆ applyAlgorithmDefaults()

eve::Result< void > eve::procgen::Procgen::applyAlgorithmDefaults ( const std::string &  algorithmId,
ProcgenParamsHandleRef  params 
) const

Fill missing algorithm-specific values from schema defaults.

参数
algorithmIdAlgorithm id.
paramsParameters to update.
返回
Whether the schema exists.

在文件 Procgen.cpp 第 1946 行定义.

引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::procgen::GeneratorRegistry::instance(), eve::NotFound, params, resolve(), eve::StaleHandle, eve::Status::success(), eve::Result< T >::success() , 以及 view.

◆ applyMeshRecipeDefaults()

eve::Result< void > eve::procgen::Procgen::applyMeshRecipeDefaults ( const std::string &  recipeId,
ProcgenParamsHandleRef  params 
) const

◆ applyPbrRecipeDefaults()

eve::Result< void > eve::procgen::Procgen::applyPbrRecipeDefaults ( const std::string &  recipeId,
ProcgenParamsHandleRef  params 
) const

◆ applyTextureRecipeDefaults()

eve::Result< void > eve::procgen::Procgen::applyTextureRecipeDefaults ( const std::string &  recipeId,
ProcgenParamsHandleRef  params 
) const

◆ applyToLayer()

eve::Result< void > eve::procgen::Procgen::applyToLayer ( ProcgenGridHandleRef  grid,
const std::string &  palette,
map::TileLayer &  layer 
)

◆ artifactStore()

const ArtifactStore & eve::procgen::Procgen::artifactStore ( ) const
inlinenoexcept

Borrow the compatibility facade's published CPU artifact store.

在文件 Procgen.h 第 848 行定义.

◆ autotileGrid()

eve::Result< void > eve::procgen::Procgen::autotileGrid ( ProcgenGridHandleRef  grid)

Post-process a generated grid: fill each wall cell's detail with an 8-bit neighbour mask (autotile directions). Mutates grid in place.

在文件 Procgen.cpp 第 1958 行定义.

引用了 eve::Applied, eve::procgen::autotileGridInPlace(), eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), resolve(), eve::StaleHandle, eve::Status::success(), eve::Result< T >::success() , 以及 view.

◆ bakeTerrainAsset()

data::ByteData * eve::procgen::Procgen::bakeTerrainAsset ( Heightmap *  heightmap,
TerrainLayers *  layers,
int  chunkSize 
)

Compatibility facade for EVTR baking. @ownership Caller owns the result.

在文件 Procgen.cpp 第 2658 行定义.

引用了 eve::procgen::TerrainAsset::bake(), bytes, eve::procgen::TerrainLayers::climate() , 以及 eve::procgen::TerrainLayers::hydrology().

◆ beginCachedSystemHandle()

eve::Result< ProcgenContextHandleRef > eve::procgen::Procgen::beginCachedSystemHandle ( const std::string &  name,
uint32_t  seed,
const std::string &  buildKey 
)
static

Starts a cached module-owned rebuild context and returns its handle.

在文件 Procgen.cpp 第 1497 行定义.

引用了 context, eve::Diagnostic::error(), eve::Result< T >::failure(), found, eve::InvalidArgument, name , 以及 seed.

◆ beginSystemHandle()

eve::Result< ProcgenContextHandleRef > eve::procgen::Procgen::beginSystemHandle ( const std::string &  name,
uint32_t  seed 
)
static

Starts a module-owned rebuild context and returns its handle.

在文件 Procgen.cpp 第 1482 行定义.

引用了 context, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, name, previous , 以及 seed.

◆ boxVolumeHandle()

eve::Result< ProcgenSpatialDataHandleRef > eve::procgen::Procgen::boxVolumeHandle ( float  minX,
float  minY,
float  minZ,
float  maxX,
float  maxY,
float  maxZ 
)

Box volume handle.

在文件 Procgen.cpp 第 1237 行定义.

引用了 eve::procgen::SpatialData::box().

◆ buildArtifact()

eve::Result< GeneratedArtifact > eve::procgen::Procgen::buildArtifact ( const std::string &  recipeId,
ProcgenParamsHandleRef  params,
ArtifactId  id 
)

Build an owning backend-neutral CPU artifact for a mesh recipe.

参数
recipeIdRegistered mesh recipe id.
paramsDeterministic generation parameters; must not be null.
idNon-nil identity for this artifact instance.
返回
Generated CPU artifact or a structured diagnostic.

在文件 Procgen.cpp 第 2322 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::procgen::generateMeshArtifact(), params, resolve(), eve::StaleHandle , 以及 view.

被这些函数引用 buildMeshHandle() , 以及 publishArtifact().

◆ buildMeshHandle()

eve::Result< ProcgenMeshBuildHandleRef > eve::procgen::Procgen::buildMeshHandle ( const std::string &  recipeId,
ProcgenParamsHandleRef  params 
)

CPU mesh (caller owns). Recipes include mesh.marchingcubes, mesh.hexplanet, mesh.castle and the registered vegetation, building and linear-structure recipes.

在文件 Procgen.cpp 第 2283 行定义.

引用了 buildArtifact(), eve::procgen::Composite, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), mesh, eve::procgen::MeshData, params, eve::procgen::ArtifactPart::payload, eve::procgen::GeneratedArtifact::payload, eve::procgen::ArtifactPublisher::publish(), source, eve::procgen::ArtifactPart::type , 以及 eve::procgen::GeneratedArtifact::type.

被这些函数引用 generateMeshBorrowed().

◆ buildTerrainChunk()

TerrainMeshChunk * eve::procgen::Procgen::buildTerrainChunk ( Heightmap *  heightmap,
TerrainLayers *  layers,
int  originX,
int  originY,
int  cellsX,
int  cellsY,
int  lod,
float  cellSize,
float  heightScale,
float  skirtDepth 
)

Compatibility facade for LOD chunks. @ownership Caller owns the result.

在文件 Procgen.cpp 第 2670 行定义.

引用了 eve::procgen::TerrainMeshBuilder::build(), lod, eve::procgen::TerrainMeshSettings::originX , 以及 settings.

◆ cloudCoverageAt()

eve::Result< float > eve::procgen::Procgen::cloudCoverageAt ( ProcgenCloudFieldHandleRef  field,
float  x,
float  z,
float  time 
)

Cloud coverage at world (x, z) and time using a live field handle.

在文件 Procgen.cpp 第 2168 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), resolveCloudField(), eve::StaleHandle, eve::Result< T >::success(), time, view, x , 以及 z.

◆ cloudShadowFactor()

eve::Result< float > eve::procgen::Procgen::cloudShadowFactor ( ProcgenCloudShadowHandleRef  shadow,
float  x,
float  z,
float  time 
)

Light multiplier in [0,1] using a live shadow handle.

在文件 Procgen.cpp 第 2176 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), resolveCloudShadow(), eve::StaleHandle, eve::Result< T >::success(), time, view, x , 以及 z.

◆ commitSystem()

◆ completeCellCleanupAtomic()

eve::Result< uint64_t > eve::procgen::Procgen::completeCellCleanupAtomic ( const std::string &  prefix,
const std::vector< RuntimeGeneration * > &  runtimes,
const std::vector< const ProcgenCellRequest * > &  requests 
)

Atomically remove Scene batches and acknowledge their cleanup tickets across schedulers.

参数
prefixNon-empty namespace used to derive Scene batch identities.
runtimesScheduler owner paired by index with every request.
requestsNon-empty cleanup requests paired by index with runtimes.
返回
Number of removed cells, or a structured failure with Scene and every scheduler unchanged. @thread Synchronous on the shared Scene and scheduler owning thread; references are not retained. @reentrant Not reentrant for any participating Scene batch or RuntimeGeneration.

在文件 Procgen.cpp 第 1160 行定义.

引用了 eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), group, groups, index, eve::InvalidArgument, request , 以及 eve::Result< T >::success().

◆ configureGtsTerrainTileLods()

eve::Result< void > eve::procgen::Procgen::configureGtsTerrainTileLods ( const GtsTerrainLodSet &  lods,
int  tileIndex,
graphics::Renderable3D &  renderable,
graphics::Graphics &  gfx,
float  worldDiameter,
float  verticalFovDegrees,
float  originX = 0.f,
float  originY = 0.f,
float  originZ = 0.f 
)

Upload and atomically attach one GTS tile's LOD chain to a renderable.

参数
lodsImmutable generated or restored LOD set.
tileIndexRow-major non-empty tile index.
renderableBorrowed renderable updated only after every mesh upload succeeds.
gfxGraphics owner that retains all uploaded meshes.
worldDiameterWorld-space bounds diameter used to convert screen thresholds.
verticalFovDegreesCamera vertical field of view.
originXParent terrain X position added to the tile pivot offset.
originYParent terrain Y position.
originZParent terrain Z position added to the tile pivot offset.
返回
Success, or a structured validation/upload failure with the renderable unchanged. @thread Main/render thread only. @reentrant Not reentrant for the same renderable or Graphics owner.

在文件 Procgen.cpp 第 2369 行定义.

引用了 eve::graphics::Renderable3D::clearMeshLod(), distance, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::procgen::GtsTerrainLodSet::getLevelSwitchDistance(), eve::InvalidArgument, eve::graphics::Renderable3D::MeshRenderer::kMaxLodLevels, level, mesh, eve::graphics::Renderable3D::setMeshLod(), eve::graphics::Renderable3D::setMeshLodCullDistance(), eve::graphics::Renderable3D::setPosition(), eve::Result< T >::success(), eve::procgen::GtsTerrainLodSet::tileAt(), eve::Unsupported , 以及 uploadMeshBorrowed().

被这些函数引用 eve::procgen::GtsTerrainLodRuntime::replace().

◆ configurePcgMeshLods()

eve::Result< void > eve::procgen::Procgen::configurePcgMeshLods ( const PcgMeshLodSet &  lods,
graphics::Renderable3D &  renderable,
graphics::Graphics &  gfx,
float  worldDiameter,
float  verticalFovDegrees 
)

Upload and atomically attach one generic Pcg mesh LOD chain.

参数
lodsImmutable CPU LOD set; no reference is retained.
renderableBorrowed renderable updated only after every upload succeeds.
gfxGraphics owner that retains uploaded meshes beyond this call.
worldDiameterPositive world-space bounds diameter used for screen thresholds.
verticalFovDegreesCamera vertical field of view in the open interval (0,180).
返回
Success, or a structured validation/upload failure with the renderable unchanged. @thread Main/render thread only. @reentrant Not reentrant for the same renderable or Graphics owner; no callbacks are invoked.

在文件 Procgen.cpp 第 2389 行定义.

引用了 count, distance, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::procgen::PcgMeshLodSet::getAnimateCrossFading(), eve::procgen::PcgMeshLodSet::getCrossFadeAnimationDuration(), eve::procgen::PcgMeshLodSet::getFadeMode(), eve::procgen::PcgMeshLodSet::getFadeWidth(), eve::procgen::PcgMeshLodSet::getLevelCount(), eve::procgen::PcgMeshLodSet::getSwitchDistance(), eve::InvalidArgument, eve::graphics::Renderable3D::MeshRenderer::kMaxLodLevels, level, mesh, eve::procgen::PcgMeshLodSet::meshAt(), eve::procgen::PcgMeshLodSet::rendererStateAt(), source, state, eve::Result< T >::success(), target, eve::Unsupported , 以及 uploadMeshBorrowed().

◆ copyPointsHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::copyPointsHandle ( ProcgenPointSetHandleRef  source,
ProcgenPointSetHandleRef  targets,
bool  inheritTargetAttributes 
)

◆ createTerrainMaterialShader()

graphics::Shader * eve::procgen::Procgen::createTerrainMaterialShader ( graphics::Graphics *  gfx)

Compatibility material facade. @lifetime Returned shader is owned by Graphics.

在文件 Procgen.cpp 第 2932 行定义.

引用了 eve::graphics::Shader::declareVec4(), eve::graphics::Graphics::newMeshShaderFromSpv() , 以及 shader.

◆ createTerrainWaterShader()

graphics::Shader * eve::procgen::Procgen::createTerrainWaterShader ( graphics::Graphics *  gfx)

Compatibility water facade. @lifetime Returned shader is owned by Graphics.

在文件 Procgen.cpp 第 2957 行定义.

引用了 eve::graphics::Graphics::newMeshShaderFromSpv().

◆ densityCullHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::densityCullHandle ( ProcgenPointSetHandleRef  input,
uint32_t  seed,
float  multiplier 
)

◆ deriveSeed()

uint32_t eve::procgen::Procgen::deriveSeed ( uint32_t  parent,
const std::string &  scope 
) const

Derive seed.

在文件 Procgen.cpp 第 1478 行定义.

引用了 eve::procgen::deriveSeed(), parent , 以及 scope.

◆ differencePointsHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::differencePointsHandle ( ProcgenPointSetHandleRef  first,
ProcgenPointSetHandleRef  second 
)

◆ differenceSpatialHandle()

eve::Result< ProcgenSpatialDataHandleRef > eve::procgen::Procgen::differenceSpatialHandle ( ProcgenSpatialDataHandleRef  left,
ProcgenSpatialDataHandleRef  right 
)

◆ erodeTerrainFluvial()

bool eve::procgen::Procgen::erodeTerrainFluvial ( Heightmap *  heightmap,
int  iterations,
float  riverThreshold,
float  incision,
float  maxDepth,
float  bankWidth 
)

Compatibility facade that cuts drainage-connected river valleys in place.

在文件 Procgen.cpp 第 2589 行定义.

引用了 erodeTerrainFluvialAdvanced() , 以及 iterations.

◆ erodeTerrainFluvialAdvanced()

bool eve::procgen::Procgen::erodeTerrainFluvialAdvanced ( Heightmap *  heightmap,
int  iterations,
float  riverThreshold,
float  incision,
float  maxDepth,
float  bankWidth,
float  maxBreachDepth 
)

Compatibility facade with independent incision and spill-sill limits.

在文件 Procgen.cpp 第 2595 行定义.

引用了 erodeTerrainFluvialScaled() , 以及 iterations.

被这些函数引用 erodeTerrainFluvial().

◆ erodeTerrainFluvialDetailed()

TerrainErosionMap * eve::procgen::Procgen::erodeTerrainFluvialDetailed ( Heightmap *  heightmap,
int  iterations,
float  riverThreshold,
float  incision,
float  maxDepth,
float  bankWidth,
float  maxBreachDepth,
float  coordinateScale 
)

Compatibility facade for detailed erosion. @ownership Caller owns the result.

在文件 Procgen.cpp 第 2617 行定义.

引用了 eve::procgen::TerrainPipeline::erodeFluvialDetailed(), eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth(), iterations , 以及 eve::procgen::TerrainErosionMap::width.

◆ erodeTerrainFluvialScaled()

bool eve::procgen::Procgen::erodeTerrainFluvialScaled ( Heightmap *  heightmap,
int  iterations,
float  riverThreshold,
float  incision,
float  maxDepth,
float  bankWidth,
float  maxBreachDepth,
float  coordinateScale 
)

Compatibility facade with explicit raster-to-physical scaling.

在文件 Procgen.cpp 第 2601 行定义.

引用了 eve::procgen::TerrainPipeline::erodeFluvial(), eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth() , 以及 iterations.

被这些函数引用 erodeTerrainFluvialAdvanced().

◆ erodeTerrainHydraulic()

bool eve::procgen::Procgen::erodeTerrainHydraulic ( Heightmap *  heightmap,
int  iterations,
float  rainfall,
float  evaporation,
float  capacity,
float  erosion,
float  deposition 
)

Compatibility facade that applies deterministic grid water/sediment erosion.

在文件 Procgen.cpp 第 2578 行定义.

引用了 capacity, eve::procgen::TerrainPipeline::erodeHydraulic(), eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth() , 以及 iterations.

◆ erodeTerrainThermal()

bool eve::procgen::Procgen::erodeTerrainThermal ( Heightmap *  heightmap,
int  iterations,
float  talus,
float  strength 
)

Compatibility facade that applies mass-conserving thermal erosion in place.

在文件 Procgen.cpp 第 2568 行定义.

引用了 eve::procgen::TerrainPipeline::erodeThermal(), eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth(), iterations , 以及 strength.

◆ excludeGridMaskHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::excludeGridMaskHandle ( ProcgenPointSetHandleRef  input,
ProcgenGridHandleRef  mask,
float  originX,
float  originZ,
float  cellSize,
int  semantic,
float  clearance,
int  maximumChecks 
)

Filter owned points against an owned semantic grid mask with a bounded clearance search.

在文件 Procgen.cpp 第 782 行定义.

引用了 eve::procgen::excludePointsByGridMask(), eve::Result< T >::failure(), input, eve::InvalidArgument, mask, points, resolve(), resolvePointSet(), semantic , 以及 eve::StaleHandle.

◆ excludeRadiusHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::excludeRadiusHandle ( ProcgenPointSetHandleRef  input,
float  x,
float  z,
float  radius 
)

◆ filterBoxHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::filterBoxHandle ( ProcgenPointSetHandleRef  input,
float  minX,
float  minY,
float  minZ,
float  maxX,
float  maxY,
float  maxZ,
bool  invert = false 
)

◆ filterDensityHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::filterDensityHandle ( ProcgenPointSetHandleRef  input,
float  minDensity,
float  maxDensity 
)

◆ filterFloatAttributeHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::filterFloatAttributeHandle ( ProcgenPointSetHandleRef  input,
const std::string &  name,
float  minValue,
float  maxValue,
bool  invert 
)

◆ filterHeightHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::filterHeightHandle ( ProcgenPointSetHandleRef  input,
float  minHeight,
float  maxHeight 
)

◆ filterPolygonHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::filterPolygonHandle ( ProcgenPointSetHandleRef  input,
ProcgenPointSetHandleRef  polygon,
bool  invert = false 
)

◆ filterSlopeHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::filterSlopeHandle ( ProcgenPointSetHandleRef  input,
float  minDegrees,
float  maxDegrees 
)

◆ filterSpatialHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::filterSpatialHandle ( ProcgenPointSetHandleRef  input,
ProcgenSpatialDataHandleRef  spatial,
bool  invert 
)

◆ filterSplineDistanceHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::filterSplineDistanceHandle ( ProcgenPointSetHandleRef  input,
ProcgenPointSetHandleRef  controlPoints,
float  minDistance,
float  maxDistance 
)

◆ filterStringAttributeHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::filterStringAttributeHandle ( ProcgenPointSetHandleRef  input,
const std::string &  name,
const std::string &  value,
bool  invert 
)

◆ generateHandle()

eve::Result< ProcgenGridHandleRef > eve::procgen::Procgen::generateHandle ( const std::string &  algorithmId,
ProcgenParamsHandleRef  params 
)

Generate handle.

在文件 Procgen.cpp 第 1741 行定义.

引用了 eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), input, params, resolve() , 以及 eve::StaleHandle.

◆ generateHeightmapHandle()

◆ generateImageHandle()

◆ generateMeshBorrowed()

eve::script::Borrowed< graphics::Mesh > eve::procgen::Procgen::generateMeshBorrowed ( const std::string &  recipeId,
ProcgenParamsHandleRef  params,
graphics::Graphics *  gfx 
)

Build + upload to GPU Mesh (owned by Graphics).

在文件 Procgen.cpp 第 2348 行定义.

引用了 buildMeshHandle(), input, params, resolve() , 以及 uploadMeshBorrowed().

◆ generateNormalImageHandle()

eve::Result< ProcgenNormalImageHandleRef > eve::procgen::Procgen::generateNormalImageHandle ( const std::string &  recipeId,
ProcgenParamsHandleRef  params 
)

◆ generatePbrMaterialHandle()

eve::Result< ProcgenPbrMaterialHandleRef > eve::procgen::Procgen::generatePbrMaterialHandle ( const std::string &  recipeId,
ProcgenParamsHandleRef  params 
)

Full metallic-roughness PBR set (albedo/normal/roughness/metallic/height/ao) derived from a single displacement field. Caller owns the returned set (call PbrTextureSet::destroy()). Recipes: pbr.soil/stone/rock/marble/water/ ripple/wood/cloth/ornament/spot/zebra/wall/cement/mud/sky_cloud.

在文件 Procgen.cpp 第 2212 行定义.

引用了 eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), eve::procgen::PbrRecipeRegistry::generate(), input, eve::procgen::PbrRecipeRegistry::instance(), params, eve::procgen::PbrRecipeRegistry::registerPbrBuiltins(), resolve() , 以及 eve::StaleHandle.

◆ generateTerrainAlbedoMap()

◆ generateTerrainChunkMesh()

graphics::Mesh * eve::procgen::Procgen::generateTerrainChunkMesh ( TerrainMeshChunk *  chunk,
graphics::Graphics *  gfx 
)

Compatibility upload facade. @lifetime Returned mesh is owned by Graphics.

在文件 Procgen.cpp 第 2716 行定义.

引用了 eve::procgen::MeshBuild::empty(), mesh, eve::procgen::TerrainMeshChunk::mesh() , 以及 eve::graphics::Graphics::newMeshFromArrays().

◆ generateTerrainDepositionMap()

image::ImageData * eve::procgen::Procgen::generateTerrainDepositionMap ( TerrainErosionMap *  erosion,
float  exposure 
)

Compatibility deposition facade. @ownership Caller owns the returned image.

在文件 Procgen.cpp 第 2925 行定义.

◆ generateTerrainErosionMap()

image::ImageData * eve::procgen::Procgen::generateTerrainErosionMap ( TerrainErosionMap *  erosion,
float  exposure 
)

Compatibility erosion facade. @ownership Caller owns the returned image.

在文件 Procgen.cpp 第 2911 行定义.

◆ generateTerrainLakeMesh()

graphics::Mesh * eve::procgen::Procgen::generateTerrainLakeMesh ( Heightmap *  heightmap,
TerrainLayers *  layers,
graphics::Graphics *  gfx,
int  originX,
int  originY,
int  cellsX,
int  cellsY,
float  cellSize,
float  heightScale,
float  minimumDepth,
float  heightOffset 
)

Compatibility lake mesh facade. @lifetime Returned mesh is owned by Graphics.

在文件 Procgen.cpp 第 2764 行定义.

引用了 eve::procgen::TerrainLakeMeshBuilder::build(), lake, eve::graphics::Graphics::newMeshFromArrays(), eve::procgen::TerrainLakeMeshSettings::originX , 以及 settings.

◆ generateTerrainRiverMesh()

graphics::Mesh * eve::procgen::Procgen::generateTerrainRiverMesh ( Heightmap *  heightmap,
TerrainLayers *  layers,
graphics::Graphics *  gfx,
int  originX,
int  originY,
int  cellsX,
int  cellsY,
float  cellSize,
float  heightScale,
float  minWidth,
float  maxWidth,
float  heightOffset 
)

Compatibility river mesh facade. @lifetime Returned mesh is owned by Graphics.

在文件 Procgen.cpp 第 2727 行定义.

引用了 generateTerrainRiverMeshAdvanced().

◆ generateTerrainRiverMeshAdvanced()

graphics::Mesh * eve::procgen::Procgen::generateTerrainRiverMeshAdvanced ( Heightmap *  heightmap,
TerrainLayers *  layers,
graphics::Graphics *  gfx,
int  originX,
int  originY,
int  cellsX,
int  cellsY,
float  cellSize,
float  heightScale,
float  minWidth,
float  maxWidth,
float  heightOffset,
float  minSurfaceSlope,
float  maxSurfaceSlope 
)

Compatibility slope-banded river facade. @lifetime Returned mesh is owned by Graphics.

在文件 Procgen.cpp 第 2735 行定义.

引用了 eve::procgen::TerrainRiverMeshBuilder::build(), eve::graphics::Graphics::newMeshFromArrays(), eve::procgen::TerrainRiverMeshSettings::originX, river , 以及 settings.

被这些函数引用 generateTerrainRiverMesh().

◆ generateTerrainSplatMap()

image::ImageData * eve::procgen::Procgen::generateTerrainSplatMap ( TerrainMeshChunk *  chunk)

◆ generateTerrainWearMap()

image::ImageData * eve::procgen::Procgen::generateTerrainWearMap ( TerrainErosionMap *  erosion,
float  exposure 
)

Compatibility wear facade. @ownership Caller owns the returned image.

在文件 Procgen.cpp 第 2918 行定义.

◆ generateTextureBorrowed()

eve::script::Borrowed< graphics::Texture > eve::procgen::Procgen::generateTextureBorrowed ( const std::string &  recipeId,
ProcgenParamsHandleRef  params,
graphics::Graphics *  gfx 
)

Uploads a generated recipe to Graphics and returns a borrowed texture.

参数
recipeIdRegistered texture recipe id.
paramsGeneration parameters owned by Procgen.
gfxGraphics owner that retains the returned texture.
返回
A borrowed Graphics-owned texture, or an unbound result when generation or upload cannot be completed. @ownership Graphics owns the returned texture; Procgen releases its temporary image after the synchronous upload. @lifetime Valid until the Graphics owner destroys or replaces the texture. @thread Graphics/Procgen owner thread; no synchronization is provided. @reentrancy Does not invoke user callbacks.

在文件 Procgen.cpp 第 2072 行定义.

引用了 generateImageHandle(), image, input, eve::graphics::Graphics::newTexture(), params, resolve() , 以及 seamless.

◆ generateTo()

◆ getAlgorithmCategory()

std::string eve::procgen::Procgen::getAlgorithmCategory ( const std::string &  algorithmId) const

Algorithm category from its schema.

参数
algorithmIdAlgorithm id.
返回
Category or empty text.

在文件 Procgen.cpp 第 1857 行定义.

引用了 eve::procgen::RecipeDescriptor::category, descriptor, eve::procgen::GeneratorRegistry::descriptor() , 以及 eve::procgen::GeneratorRegistry::instance().

◆ getAlgorithmCount()

int eve::procgen::Procgen::getAlgorithmCount ( ) const

Returns the algorithm count.

在文件 Procgen.cpp 第 1829 行定义.

引用了 eve::procgen::GeneratorRegistry::instance() , 以及 eve::procgen::GeneratorRegistry::list().

◆ getAlgorithmDisplayName()

std::string eve::procgen::Procgen::getAlgorithmDisplayName ( const std::string &  algorithmId) const

Human-readable algorithm label from its schema.

参数
algorithmIdAlgorithm id.
返回
Display name or empty text.

在文件 Procgen.cpp 第 1852 行定义.

引用了 descriptor, eve::procgen::GeneratorRegistry::descriptor(), eve::procgen::RecipeDescriptor::displayName , 以及 eve::procgen::GeneratorRegistry::instance().

◆ getAlgorithmId()

std::string eve::procgen::Procgen::getAlgorithmId ( int  index) const

Returns the algorithm id.

在文件 Procgen.cpp 第 1834 行定义.

引用了 index, eve::procgen::GeneratorRegistry::instance() , 以及 eve::procgen::GeneratorRegistry::list().

◆ getAlgorithmParamCategory()

std::string eve::procgen::Procgen::getAlgorithmParamCategory ( const std::string &  algorithmId,
int  index 
) const

Parameter group at an index.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Group or empty text.

在文件 Procgen.cpp 第 1882 行定义.

引用了 eve::procgen::ParamDescriptor::category , 以及 index.

◆ getAlgorithmParamChoice()

std::string eve::procgen::Procgen::getAlgorithmParamChoice ( const std::string &  algorithmId,
int  paramIndex,
int  choiceIndex 
) const

Choice value at an index.

参数
algorithmIdAlgorithm id.
paramIndexParameter index.
choiceIndexChoice index.
返回
Choice or empty text.

在文件 Procgen.cpp 第 1940 行定义.

引用了 eve::procgen::ParamDescriptor::choices.

◆ getAlgorithmParamChoiceCount()

int eve::procgen::Procgen::getAlgorithmParamChoiceCount ( const std::string &  algorithmId,
int  index 
) const

Number of allowed values for a choice parameter.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Choice count.

在文件 Procgen.cpp 第 1935 行定义.

引用了 eve::procgen::ParamDescriptor::choices , 以及 index.

◆ getAlgorithmParamCount()

int eve::procgen::Procgen::getAlgorithmParamCount ( const std::string &  algorithmId) const

Number of reflected parameters for one algorithm.

参数
algorithmIdAlgorithm id.
返回
Parameter count.

在文件 Procgen.cpp 第 1862 行定义.

引用了 descriptor, eve::procgen::GeneratorRegistry::descriptor() , 以及 eve::procgen::GeneratorRegistry::instance().

◆ getAlgorithmParamDefault()

std::string eve::procgen::Procgen::getAlgorithmParamDefault ( const std::string &  algorithmId,
int  index 
) const

Schema default encoded as text for lossless dynamic UI transport.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Encoded default.

在文件 Procgen.cpp 第 1900 行定义.

引用了 eve::procgen::ParamDescriptor::defaultValue , 以及 index.

◆ getAlgorithmParamDescription()

std::string eve::procgen::Procgen::getAlgorithmParamDescription ( const std::string &  algorithmId,
int  index 
) const

Parameter help text at an index.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Help text or empty text.

在文件 Procgen.cpp 第 1877 行定义.

引用了 eve::procgen::ParamDescriptor::description , 以及 index.

◆ getAlgorithmParamKey()

std::string eve::procgen::Procgen::getAlgorithmParamKey ( const std::string &  algorithmId,
int  index 
) const

Stable parameter key at an index.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Key or empty text.

在文件 Procgen.cpp 第 1867 行定义.

引用了 index , 以及 eve::procgen::ParamDescriptor::key.

◆ getAlgorithmParamKind()

std::string eve::procgen::Procgen::getAlgorithmParamKind ( const std::string &  algorithmId,
int  index 
) const

Parameter kind as int, float, bool, string or choice.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Kind or empty text.

在文件 Procgen.cpp 第 1887 行定义.

引用了 eve::procgen::Boolean, eve::procgen::Choice, eve::procgen::Float, index, eve::procgen::Integer, eve::procgen::ParamDescriptor::kind , 以及 eve::procgen::String.

◆ getAlgorithmParamLabel()

std::string eve::procgen::Procgen::getAlgorithmParamLabel ( const std::string &  algorithmId,
int  index 
) const

Human-readable parameter label at an index.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Label or empty text.

在文件 Procgen.cpp 第 1872 行定义.

引用了 eve::procgen::ParamDescriptor::displayName , 以及 index.

◆ getAlgorithmParamMaximum()

float eve::procgen::Procgen::getAlgorithmParamMaximum ( const std::string &  algorithmId,
int  index 
) const

Numeric maximum.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Maximum or zero.

在文件 Procgen.cpp 第 1920 行定义.

引用了 index , 以及 eve::procgen::ParamDescriptor::maximum.

◆ getAlgorithmParamMinimum()

float eve::procgen::Procgen::getAlgorithmParamMinimum ( const std::string &  algorithmId,
int  index 
) const

Numeric minimum.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Minimum or zero.

在文件 Procgen.cpp 第 1915 行定义.

引用了 index , 以及 eve::procgen::ParamDescriptor::minimum.

◆ getAlgorithmParamStep()

float eve::procgen::Procgen::getAlgorithmParamStep ( const std::string &  algorithmId,
int  index 
) const

Suggested numeric editing step.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Step or zero.

在文件 Procgen.cpp 第 1925 行定义.

引用了 index , 以及 eve::procgen::ParamDescriptor::step.

◆ getAlgorithmSchema()

eve::Result< RecipeDescriptor > eve::procgen::Procgen::getAlgorithmSchema ( const std::string &  algorithmId) const

◆ getMeshRecipeCount()

int eve::procgen::Procgen::getMeshRecipeCount ( ) const

◆ getMeshRecipeId()

std::string eve::procgen::Procgen::getMeshRecipeId ( int  index) const

◆ getMeshRecipeSchema()

eve::Result< RecipeDescriptor > eve::procgen::Procgen::getMeshRecipeSchema ( const std::string &  recipeId) const

◆ getPaletteGid()

int eve::procgen::Procgen::getPaletteGid ( const std::string &  palette,
const std::string &  semantic 
) const

Returns the palette gid.

在文件 Procgen.cpp 第 1815 行定义.

引用了 eve::procgen::PaletteTable::getGid(), palette , 以及 semantic.

◆ getPbrRecipeCount()

int eve::procgen::Procgen::getPbrRecipeCount ( ) const

◆ getPbrRecipeId()

std::string eve::procgen::Procgen::getPbrRecipeId ( int  index) const

◆ getPbrRecipeSchema()

eve::Result< RecipeDescriptor > eve::procgen::Procgen::getPbrRecipeSchema ( const std::string &  recipeId) const

◆ getPreviousSystemDebugStageHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::getPreviousSystemDebugStageHandle ( const std::string &  name,
const std::string &  stageName 
) const

Returns the previous system debug stage handle.

在文件 Procgen.cpp 第 1666 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), name , 以及 eve::NotFound.

◆ getPreviousSystemRevision()

uint64_t eve::procgen::Procgen::getPreviousSystemRevision ( const std::string &  name) const

Revision number of the snapshot retained for hot-reload comparison.

在文件 Procgen.cpp 第 1681 行定义.

引用了 found, name , 以及 u.

◆ getPublishedCreatedCount()

int eve::procgen::Procgen::getPublishedCreatedCount ( const std::string &  batchId) const

Returns the published created count.

在文件 Procgen.cpp 第 1214 行定义.

◆ getPublishedInstanceCount()

int eve::procgen::Procgen::getPublishedInstanceCount ( const std::string &  batchId) const

Returns the published instance count.

在文件 Procgen.cpp 第 1209 行定义.

◆ getPublishedRemovedCount()

int eve::procgen::Procgen::getPublishedRemovedCount ( const std::string &  batchId) const

Returns the published removed count.

在文件 Procgen.cpp 第 1224 行定义.

◆ getPublishedReusedCount()

int eve::procgen::Procgen::getPublishedReusedCount ( const std::string &  batchId) const

Returns the published reused count.

在文件 Procgen.cpp 第 1219 行定义.

◆ getSystemBuildKey()

std::string eve::procgen::Procgen::getSystemBuildKey ( const std::string &  name) const

Returns the system build key.

在文件 Procgen.cpp 第 1613 行定义.

引用了 found , 以及 name.

◆ getSystemDebugDiffReport()

std::string eve::procgen::Procgen::getSystemDebugDiffReport ( const std::string &  name) const

Human-readable point-count changes between the current and previous commits.

在文件 Procgen.cpp 第 1707 行定义.

引用了 current, name , 以及 previous.

◆ getSystemDebugReport()

std::string eve::procgen::Procgen::getSystemDebugReport ( const std::string &  name) const

Returns the system debug report.

在文件 Procgen.cpp 第 1686 行定义.

引用了 found, name , 以及 trace.

◆ getSystemDebugStageCount()

int eve::procgen::Procgen::getSystemDebugStageCount ( const std::string &  name) const

Returns the system debug stage count.

在文件 Procgen.cpp 第 1629 行定义.

引用了 found , 以及 name.

◆ getSystemDebugStageHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::getSystemDebugStageHandle ( const std::string &  name,
const std::string &  stageName 
) const

Returns the system debug stage handle.

在文件 Procgen.cpp 第 1653 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), name , 以及 eve::NotFound.

◆ getSystemDebugStageName()

std::string eve::procgen::Procgen::getSystemDebugStageName ( const std::string &  name,
int  index 
) const

Returns the system debug stage name.

在文件 Procgen.cpp 第 1634 行定义.

引用了 found, index , 以及 name.

◆ getSystemOutputCount()

int eve::procgen::Procgen::getSystemOutputCount ( const std::string &  name) const

Returns the system output count.

在文件 Procgen.cpp 第 1618 行定义.

引用了 found , 以及 name.

◆ getSystemOutputHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::getSystemOutputHandle ( const std::string &  name,
const std::string &  outputName 
) const

Returns the system output handle.

在文件 Procgen.cpp 第 1640 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), name, eve::NotFound , 以及 output.

◆ getSystemOutputName()

std::string eve::procgen::Procgen::getSystemOutputName ( const std::string &  name,
int  index 
) const

Returns the system output name.

在文件 Procgen.cpp 第 1623 行定义.

引用了 found, index , 以及 name.

◆ getSystemRevision()

uint64_t eve::procgen::Procgen::getSystemRevision ( const std::string &  name) const

Returns the system revision.

在文件 Procgen.cpp 第 1603 行定义.

引用了 found, name , 以及 u.

◆ getSystemSeed()

uint32_t eve::procgen::Procgen::getSystemSeed ( const std::string &  name) const

Returns the system seed.

在文件 Procgen.cpp 第 1608 行定义.

引用了 found, name , 以及 u.

◆ getTextureRecipeCount()

int eve::procgen::Procgen::getTextureRecipeCount ( ) const

◆ getTextureRecipeId()

std::string eve::procgen::Procgen::getTextureRecipeId ( int  index) const

◆ getTextureRecipeSchema()

eve::Result< RecipeDescriptor > eve::procgen::Procgen::getTextureRecipeSchema ( const std::string &  recipeId) const

◆ gridToJson()

eve::Result< std::string > eve::procgen::Procgen::gridToJson ( ProcgenGridHandleRef  grid) const

◆ hasAlgorithm()

bool eve::procgen::Procgen::hasAlgorithm ( const std::string &  algorithmId) const

True when algorithm.

在文件 Procgen.cpp 第 1840 行定义.

引用了 eve::procgen::GeneratorRegistry::has() , 以及 eve::procgen::GeneratorRegistry::instance().

◆ hasMeshRecipe()

bool eve::procgen::Procgen::hasMeshRecipe ( const std::string &  recipeId) const

◆ hasPbrRecipe()

bool eve::procgen::Procgen::hasPbrRecipe ( const std::string &  recipeId) const

◆ hasSystem()

bool eve::procgen::Procgen::hasSystem ( const std::string &  name) const

在文件 Procgen.cpp 第 1601 行定义.

引用了 name.

◆ hasTextureRecipe()

bool eve::procgen::Procgen::hasTextureRecipe ( const std::string &  recipeId) const

◆ heightfieldDataHandle()

eve::Result< ProcgenSpatialDataHandleRef > eve::procgen::Procgen::heightfieldDataHandle ( ProcgenHeightmapHandleRef  heightmap,
float  originX,
float  originZ,
float  cellSize,
float  heightScale 
)

◆ heightmapToGrid() [1/2]

bool eve::procgen::Procgen::heightmapToGrid ( Heightmap *  heightmap,
Params *  params,
Grid2D *  out 
)

Compatibility facade that classifies a heightmap into a semantic Grid2D.

◆ heightmapToGrid() [2/2]

eve::Result< ProcgenGridHandleRef > eve::procgen::Procgen::heightmapToGrid ( ProcgenHeightmapHandleRef  heightmap,
ProcgenParamsHandleRef  params 
)

Classify a heightmap into a module-owned grid using params bands.

在文件 Procgen.cpp 第 2548 行定义.

引用了 eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), eve::procgen::TerrainBands::fromParams(), input, params, resolve(), resolveHeightmap() , 以及 eve::StaleHandle.

◆ intersectPointsHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::intersectPointsHandle ( ProcgenPointSetHandleRef  first,
ProcgenPointSetHandleRef  second 
)

◆ intersectSpatialHandle()

eve::Result< ProcgenSpatialDataHandleRef > eve::procgen::Procgen::intersectSpatialHandle ( ProcgenSpatialDataHandleRef  left,
ProcgenSpatialDataHandleRef  right 
)

◆ isAlgorithmParamAdvanced()

bool eve::procgen::Procgen::isAlgorithmParamAdvanced ( const std::string &  algorithmId,
int  index 
) const

Return true when a parameter should be hidden by compact inspectors.

参数
algorithmIdAlgorithm id.
indexParameter index.
返回
Whether it is advanced.

在文件 Procgen.cpp 第 1930 行定义.

引用了 eve::procgen::ParamDescriptor::advanced , 以及 index.

◆ isCloudFieldStale()

bool eve::procgen::Procgen::isCloudFieldStale ( ProcgenCloudFieldHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 2148 行定义.

引用了 reference.

◆ isCloudShadowStale()

bool eve::procgen::Procgen::isCloudShadowStale ( ProcgenCloudShadowHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 2164 行定义.

引用了 reference.

◆ isHeightmapStale()

bool eve::procgen::Procgen::isHeightmapStale ( ProcgenHeightmapHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 2533 行定义.

引用了 reference.

◆ isMeshBuildStale()

bool eve::procgen::Procgen::isMeshBuildStale ( ProcgenMeshBuildHandleRef  reference) const
noexcept

True when mesh build stale.

在文件 Procgen.cpp 第 2318 行定义.

引用了 reference.

◆ isOutputStale()

bool eve::procgen::Procgen::isOutputStale ( ProcgenOutputHandleRef  reference) const
noexcept

Reports whether an output specification reference is stale.

在文件 Procgen.cpp 第 441 行定义.

引用了 reference.

◆ isPbrMaterialStale()

bool eve::procgen::Procgen::isPbrMaterialStale ( ProcgenPbrMaterialHandleRef  reference) const
noexcept

True when pbr material stale.

在文件 Procgen.cpp 第 2237 行定义.

引用了 reference.

◆ isPointSetStale()

bool eve::procgen::Procgen::isPointSetStale ( ProcgenPointSetHandleRef  reference) const
noexcept

Reports whether a point-set handle is stale.

在文件 Procgen.cpp 第 488 行定义.

引用了 reference.

◆ isStale() [1/17]

bool eve::procgen::Procgen::isStale ( ProcgenBiomeRulesHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 1472 行定义.

引用了 reference.

◆ isStale() [2/17]

bool eve::procgen::Procgen::isStale ( ProcgenContextHandleRef  reference)
staticnoexcept

Reports whether a rebuild context reference is stale.

在文件 Procgen.cpp 第 1534 行定义.

引用了 reference.

◆ isStale() [3/17]

bool eve::procgen::Procgen::isStale ( ProcgenDynamicMeshUvPaintSessionHandleRef  reference) const
noexcept

Report whether a dynamic-mesh UV paint handle is stale.

在文件 Procgen.cpp 第 1466 行定义.

引用了 reference.

◆ isStale() [4/17]

bool eve::procgen::Procgen::isStale ( ProcgenGridGraphHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 1470 行定义.

引用了 reference.

◆ isStale() [5/17]

bool eve::procgen::Procgen::isStale ( ProcgenGridHandleRef  reference)
staticnoexcept

Reports whether a grid reference is stale.

在文件 Procgen.cpp 第 470 行定义.

引用了 reference.

◆ isStale() [6/17]

bool eve::procgen::Procgen::isStale ( ProcgenImageHandleRef  reference)
staticnoexcept

Reports whether a generated image reference can no longer resolve.

参数
referenceImage reference to inspect.
返回
True for a valid reference whose slot is gone or whose owner epoch no longer matches; invalid references return false.

在文件 Procgen.cpp 第 2009 行定义.

引用了 reference.

◆ isStale() [7/17]

bool eve::procgen::Procgen::isStale ( ProcgenLSystemHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 1476 行定义.

引用了 reference.

◆ isStale() [8/17]

bool eve::procgen::Procgen::isStale ( ProcgenMeshDeformationSessionHandleRef  reference) const
noexcept

Report whether a mesh deformation session handle is stale.

在文件 Procgen.cpp 第 1463 行定义.

引用了 reference.

◆ isStale() [9/17]

bool eve::procgen::Procgen::isStale ( ProcgenMeshGraphHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 1471 行定义.

引用了 reference.

◆ isStale() [10/17]

bool eve::procgen::Procgen::isStale ( ProcgenMeshModifierGraphHandleRef  reference) const
noexcept

Report whether a mesh modifier graph handle is stale.

在文件 Procgen.cpp 第 1460 行定义.

引用了 reference.

◆ isStale() [11/17]

bool eve::procgen::Procgen::isStale ( ProcgenNormalImageHandleRef  reference)
staticnoexcept

Reports whether a generated normal-image reference can no longer resolve.

参数
referenceNormal-image reference to inspect.
返回
True for a valid reference whose slot is gone or whose owner epoch no longer matches; invalid references return false.

在文件 Procgen.cpp 第 2066 行定义.

引用了 reference.

◆ isStale() [12/17]

bool eve::procgen::Procgen::isStale ( ProcgenParamsHandleRef  reference)
staticnoexcept

Reports whether a parameter reference is stale.

在文件 Procgen.cpp 第 417 行定义.

引用了 reference.

◆ isStale() [13/17]

bool eve::procgen::Procgen::isStale ( ProcgenPointGraphHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 1459 行定义.

引用了 reference.

◆ isStale() [14/17]

bool eve::procgen::Procgen::isStale ( ProcgenRuntimeGenerationHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 1456 行定义.

引用了 reference.

◆ isStale() [15/17]

bool eve::procgen::Procgen::isStale ( ProcgenShapeGrammarHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 1473 行定义.

引用了 reference.

◆ isStale() [16/17]

bool eve::procgen::Procgen::isStale ( ProcgenSpatialDataHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 1378 行定义.

引用了 reference.

◆ isStale() [17/17]

bool eve::procgen::Procgen::isStale ( ProcgenSplinePathHandleRef  reference) const
noexcept

Report whether a spline path handle is stale.

在文件 Procgen.cpp 第 1469 行定义.

引用了 reference.

◆ isTerrainSamplerStale()

bool eve::procgen::Procgen::isTerrainSamplerStale ( ProcgenTerrainSamplerHandleRef  reference) const
noexcept

在文件 Procgen.cpp 第 2505 行定义.

引用了 reference.

◆ jitterPointsHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::jitterPointsHandle ( ProcgenPointSetHandleRef  input,
uint32_t  seed,
float  amountX,
float  amountZ 
)

◆ mathFloatAttributeHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::mathFloatAttributeHandle ( ProcgenPointSetHandleRef  input,
const std::string &  attribute,
const std::string &  outputAttribute,
const std::string &  operation,
float  operand,
float  defaultValue 
)

◆ mergePointsHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::mergePointsHandle ( ProcgenPointSetHandleRef  first,
ProcgenPointSetHandleRef  second 
)

◆ meshSurfaceDataHandle()

eve::Result< ProcgenSpatialDataHandleRef > eve::procgen::Procgen::meshSurfaceDataHandle ( ProcgenMeshBuildHandleRef  mesh,
float  tolerance 
)

◆ Module_REG()

eve::procgen::Procgen::Module_REG ( Procgen  )

◆ newBiomeRulesHandle()

eve::Result< ProcgenBiomeRulesHandleRef > eve::procgen::Procgen::newBiomeRulesHandle ( )

在文件 ProcgenBiome.cpp 第 7 行定义.

◆ newCloudFieldHandle()

eve::Result< ProcgenCloudFieldHandleRef > eve::procgen::Procgen::newCloudFieldHandle ( )

New deterministic, tiling, time-animated cloud field (caller owns).

在文件 Procgen.cpp 第 2136 行定义.

◆ newCloudShadowHandle()

eve::Result< ProcgenCloudShadowHandleRef > eve::procgen::Procgen::newCloudShadowHandle ( )

New sun projection over a cloud field → ground shadows (caller owns).

在文件 Procgen.cpp 第 2152 行定义.

◆ newDynamicMeshUvPaintSessionHandle()

eve::Result< ProcgenDynamicMeshUvPaintSessionHandleRef > eve::procgen::Procgen::newDynamicMeshUvPaintSessionHandle ( )

Allocate a module-owned dynamic-mesh UV paint session.

在文件 ProcgenGraph.cpp 第 22 行定义.

◆ newGridGraphHandle()

eve::Result< ProcgenGridGraphHandleRef > eve::procgen::Procgen::newGridGraphHandle ( )

在文件 ProcgenGraph.cpp 第 30 行定义.

◆ newGridHandle()

eve::Result< ProcgenGridHandleRef > eve::procgen::Procgen::newGridHandle ( int  width,
int  height 
)
static

Allocates module-owned grid storage and returns its handle.

在文件 Procgen.cpp 第 445 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), height, eve::InvalidArgument , 以及 width.

◆ newHeightmapHandle()

eve::Result< ProcgenHeightmapHandleRef > eve::procgen::Procgen::newHeightmapHandle ( int  width,
int  height 
)

Empty in-memory heightmap (caller owns).

在文件 Procgen.cpp 第 2509 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), height, eve::InvalidArgument , 以及 width.

◆ newLSystemHandle()

eve::Result< ProcgenLSystemHandleRef > eve::procgen::Procgen::newLSystemHandle ( )

在文件 Procgen.cpp 第 1384 行定义.

◆ newMeshDeformationSessionHandle()

eve::Result< ProcgenMeshDeformationSessionHandleRef > eve::procgen::Procgen::newMeshDeformationSessionHandle ( )

Allocate a module-owned interactive mesh deformation session.

在文件 ProcgenGraph.cpp 第 18 行定义.

◆ newMeshGraphHandle()

eve::Result< ProcgenMeshGraphHandleRef > eve::procgen::Procgen::newMeshGraphHandle ( )

在文件 ProcgenGraph.cpp 第 34 行定义.

◆ newMeshModifierGraphHandle()

eve::Result< ProcgenMeshModifierGraphHandleRef > eve::procgen::Procgen::newMeshModifierGraphHandle ( )

Allocate a module-owned mesh modifier graph.

在文件 ProcgenGraph.cpp 第 14 行定义.

◆ newOutputHandle()

eve::Result< ProcgenOutputHandleRef > eve::procgen::Procgen::newOutputHandle ( )

Allocates an owning output specification.

在文件 Procgen.cpp 第 423 行定义.

◆ newParamsHandle()

eve::Result< ProcgenParamsHandleRef > eve::procgen::Procgen::newParamsHandle ( )
static

Allocates module-owned generation parameters.

返回
Generation- and module-epoch-qualified ownership reference.

在文件 Procgen.cpp 第 398 行定义.

◆ newPointGraphHandle()

eve::Result< ProcgenPointGraphHandleRef > eve::procgen::Procgen::newPointGraphHandle ( )

Creates a point graph handle. @ownership Caller deletes unless documented otherwise.

在文件 ProcgenGraph.cpp 第 10 行定义.

◆ newPointSetHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::newPointSetHandle ( )

Allocates a point-set intermediate and returns its owner handle.

在文件 Procgen.cpp 第 476 行定义.

◆ newRuntimeGenerationHandle()

eve::Result< ProcgenRuntimeGenerationHandleRef > eve::procgen::Procgen::newRuntimeGenerationHandle ( uint32_t  worldSeed)

Creates a runtime generation handle. @ownership Caller deletes unless documented otherwise.

在文件 Procgen.cpp 第 1380 行定义.

◆ newShapeGrammarHandle()

eve::Result< ProcgenShapeGrammarHandleRef > eve::procgen::Procgen::newShapeGrammarHandle ( )

在文件 ProcgenShapeGrammar.cpp 第 7 行定义.

◆ newSplinePathHandle()

eve::Result< ProcgenSplinePathHandleRef > eve::procgen::Procgen::newSplinePathHandle ( )

Allocate a module-owned 3D spline path.

在文件 ProcgenGraph.cpp 第 26 行定义.

◆ newTerrainSamplerHandle()

eve::Result< ProcgenTerrainSamplerHandleRef > eve::procgen::Procgen::newTerrainSamplerHandle ( )

Sampling function over continuous map coordinates (caller owns).

在文件 Procgen.cpp 第 2492 行定义.

◆ palettes()

PaletteTable & eve::procgen::Procgen::palettes ( )
inline

Palettes.

在文件 Procgen.h 第 991 行定义.

◆ pointDataHandle()

◆ poissonDiskHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::poissonDiskHandle ( int  width,
int  depth,
float  radius,
uint32_t  seed,
int  maxPoints 
)

◆ polygonVolumeHandle()

eve::Result< ProcgenSpatialDataHandleRef > eve::procgen::Procgen::polygonVolumeHandle ( ProcgenPointSetHandleRef  controlPoints,
float  minY,
float  maxY 
)

◆ projectToHeightmapHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::projectToHeightmapHandle ( ProcgenPointSetHandleRef  input,
ProcgenHeightmapHandleRef  heightmap,
float  originX,
float  originZ,
float  cellSize,
float  heightScale 
)

◆ projectToSpatialHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::projectToSpatialHandle ( ProcgenPointSetHandleRef  input,
ProcgenSpatialDataHandleRef  spatial 
)

◆ projectToWorldHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::projectToWorldHandle ( ProcgenPointSetHandleRef  input,
float  maxY,
float  minY,
std::uint64_t  maskBits,
bool  keepUnmatched 
)

◆ publishArtifact()

eve::Result< ArtifactPublishReceipt > eve::procgen::Procgen::publishArtifact ( const std::string &  recipeId,
ProcgenParamsHandleRef  params,
ArtifactId  id,
ArtifactPublishOptions  options = {} 
)

Build then transactionally publish through requested optional adapters.

参数
recipeIdRegistered mesh recipe id.
paramsDeterministic generation parameters; must not be null.
idNon-nil identity for this artifact instance.
optionsScene, graphics and physics adapters required by this call.
返回
Publication receipt or an Unsupported/validation/adapter diagnostic.
备注
Must run on the main/simulation thread. A failure leaves the store unchanged.

在文件 Procgen.cpp 第 2332 行定义.

引用了 buildArtifact(), eve::Result< T >::failure(), options, params , 以及 eve::procgen::ArtifactPublisher::publish().

◆ publishCellInstanceDelta()

eve::Result< uint64_t > eve::procgen::Procgen::publishCellInstanceDelta ( const std::string &  prefix,
const ProcgenCellRequest &  request,
const PointDelta &  delta,
uint64_t  targetRevision,
const std::string &  assetAttribute,
const std::string &  defaultAsset 
)

Project one committed point delta into an existing Scene cell batch atomically.

参数
prefixNon-empty namespace used by publishCellInstances.
requestCell coordinates used to derive the Scene batch identity.
deltaIdentity delta produced by RuntimeGeneration for this cell revision.
targetRevisionCommitted RuntimeGeneration cell revision represented by delta.
assetAttributeOptional string attribute selecting the instance asset.
defaultAssetAsset used when the selected attribute is absent.
返回
Scene batch target revision, or a structured provider/stale/identity failure. @thread Synchronous on the Scene-owning thread; no input references are retained. @reentrant Not reentrant for the same cell batch.

在文件 Procgen.cpp 第 989 行定义.

引用了 eve::ProcgenInstanceDelta::added, eve::procgen::PointDelta::added, eve::ProcgenInstanceDelta::baseRevision, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), eve::InvalidArgument, eve::procgen::PointSet::points(), eve::procgen::PointDelta::removed, eve::ProcgenInstanceDelta::removedPointIds, request, size, eve::procgen::PointDelta::targetOrder, eve::ProcgenInstanceDelta::targetPointOrder, eve::ProcgenInstanceDelta::targetRevision, eve::ProcgenInstanceDelta::updated , 以及 eve::procgen::PointDelta::updated.

被这些函数引用 synchronizeCellInstances().

◆ publishCellInstances()

eve::Result< void > eve::procgen::Procgen::publishCellInstances ( const std::string &  prefix,
const ProcgenCellRequest &  request,
ProcgenPointSetHandleRef  points,
const std::string &  assetAttribute,
const std::string &  defaultAsset 
)

Publish cell instances.

在文件 Procgen.cpp 第 957 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, points, publishInstances() , 以及 request.

◆ publishCellSnapshot()

eve::Result< uint64_t > eve::procgen::Procgen::publishCellSnapshot ( const std::string &  prefix,
const ProcgenCellRequest &  request,
ProcgenPointSetHandleRef  points,
uint64_t  targetRevision,
const std::string &  assetAttribute,
const std::string &  defaultAsset 
)

Replace a Scene cell batch from a complete RuntimeGeneration snapshot at an explicit revision.

参数
prefixNon-empty namespace used by publishCellInstances.
requestCell coordinates used to derive the Scene batch identity.
pointsLive owned point-set handle containing the complete ordered cell snapshot.
targetRevisionNon-zero committed RuntimeGeneration cell revision represented by points.
assetAttributeOptional string attribute selecting the instance asset.
defaultAssetAsset used when the selected attribute is absent.
返回
Scene batch target revision, or a structured stale/identity/provider failure. @thread Synchronous on the Scene-owning thread; no input references are retained. @reentrant Not reentrant for the same cell batch.

在文件 Procgen.cpp 第 969 行定义.

引用了 eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), instances, eve::InvalidArgument, points, request, resolvePointSet(), eve::StaleHandle , 以及 view.

◆ publishInstances()

eve::Result< void > eve::procgen::Procgen::publishInstances ( const std::string &  batchId,
ProcgenPointSetHandleRef  points,
const std::string &  assetAttribute,
const std::string &  defaultAsset 
)

◆ randomSeed()

uint32_t eve::procgen::Procgen::randomSeed ( )

Fresh non-zero seed for regenerating a level.

在文件 Procgen.cpp 第 1969 行定义.

引用了 eve::procgen::randomSeedValue().

◆ release() [1/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenBiomeRulesHandleRef  reference)

在文件 Procgen.cpp 第 1452 行定义.

引用了 reference.

◆ release() [2/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenContextHandleRef  reference)
static

Releases a module-owned rebuild context.

在文件 Procgen.cpp 第 1526 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::StaleHandle.

◆ release() [3/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenDynamicMeshUvPaintSessionHandleRef  reference)

Release a module-owned dynamic-mesh UV paint session.

在文件 Procgen.cpp 第 1446 行定义.

引用了 reference.

◆ release() [4/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenGridGraphHandleRef  reference)

在文件 Procgen.cpp 第 1450 行定义.

引用了 reference.

◆ release() [5/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenGridHandleRef  reference)
static

Releases module-owned grid storage.

在文件 Procgen.cpp 第 462 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::StaleHandle.

◆ release() [6/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenImageHandleRef  reference)
static

Releases a module-owned generated image.

参数
referenceGeneration- and module-epoch-qualified image reference.
返回
Applied on success, or a structured invalid/stale-handle failure.

在文件 Procgen.cpp 第 2001 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::StaleHandle.

◆ release() [7/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenLSystemHandleRef  reference)

在文件 Procgen.cpp 第 1454 行定义.

引用了 reference.

◆ release() [8/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenMeshDeformationSessionHandleRef  reference)

Release a module-owned mesh deformation session.

在文件 Procgen.cpp 第 1443 行定义.

引用了 reference.

◆ release() [9/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenMeshGraphHandleRef  reference)

在文件 Procgen.cpp 第 1451 行定义.

引用了 reference.

◆ release() [10/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenMeshModifierGraphHandleRef  reference)

Release a module-owned mesh modifier graph.

在文件 Procgen.cpp 第 1440 行定义.

引用了 reference.

◆ release() [11/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenNormalImageHandleRef  reference)
static

Releases a module-owned generated normal image.

参数
referenceGeneration- and module-epoch-qualified normal-image reference.
返回
Applied on success, or a structured invalid/stale-handle failure.

在文件 Procgen.cpp 第 2057 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::StaleHandle.

◆ release() [12/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenParamsHandleRef  reference)
static

Releases module-owned parameters.

在文件 Procgen.cpp 第 409 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::StaleHandle.

◆ release() [13/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenPointGraphHandleRef  reference)

Release.

在文件 Procgen.cpp 第 1439 行定义.

引用了 reference.

◆ release() [14/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenRuntimeGenerationHandleRef  reference)

Release.

在文件 Procgen.cpp 第 1436 行定义.

引用了 reference.

◆ release() [15/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenShapeGrammarHandleRef  reference)

在文件 Procgen.cpp 第 1453 行定义.

引用了 reference.

◆ release() [16/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenSpatialDataHandleRef  reference)

Release.

在文件 Procgen.cpp 第 1376 行定义.

引用了 reference.

◆ release() [17/17]

eve::Result< void > eve::procgen::Procgen::release ( ProcgenSplinePathHandleRef  reference)

Release a module-owned spline path.

在文件 Procgen.cpp 第 1449 行定义.

引用了 reference.

◆ releaseCloudField()

eve::Result< void > eve::procgen::Procgen::releaseCloudField ( ProcgenCloudFieldHandleRef  reference)

在文件 Procgen.cpp 第 2144 行定义.

引用了 reference.

◆ releaseCloudShadow()

eve::Result< void > eve::procgen::Procgen::releaseCloudShadow ( ProcgenCloudShadowHandleRef  reference)

在文件 Procgen.cpp 第 2160 行定义.

引用了 reference.

◆ releaseHeightmap()

eve::Result< void > eve::procgen::Procgen::releaseHeightmap ( ProcgenHeightmapHandleRef  reference)

在文件 Procgen.cpp 第 2529 行定义.

引用了 reference.

◆ releaseMeshBuild()

eve::Result< void > eve::procgen::Procgen::releaseMeshBuild ( ProcgenMeshBuildHandleRef  reference)

Release mesh build.

在文件 Procgen.cpp 第 2314 行定义.

引用了 reference.

◆ releaseOutput()

eve::Result< void > eve::procgen::Procgen::releaseOutput ( ProcgenOutputHandleRef  reference)

Releases an output specification.

在文件 Procgen.cpp 第 433 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::StaleHandle.

◆ releasePbrMaterial()

eve::Result< void > eve::procgen::Procgen::releasePbrMaterial ( ProcgenPbrMaterialHandleRef  reference)

Release pbr material.

在文件 Procgen.cpp 第 2233 行定义.

引用了 reference.

◆ releasePointSet()

eve::Result< void > eve::procgen::Procgen::releasePointSet ( ProcgenPointSetHandleRef  reference)

Releases a point-set intermediate.

在文件 Procgen.cpp 第 484 行定义.

引用了 reference.

◆ releaseTerrainSampler()

eve::Result< void > eve::procgen::Procgen::releaseTerrainSampler ( ProcgenTerrainSamplerHandleRef  reference)

在文件 Procgen.cpp 第 2501 行定义.

引用了 reference.

◆ remapDensityHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::remapDensityHandle ( ProcgenPointSetHandleRef  input,
float  inputMin,
float  inputMax,
float  outputMin,
float  outputMax,
bool  clampOutput 
)

◆ removeCellInstances()

eve::Result< void > eve::procgen::Procgen::removeCellInstances ( const std::string &  prefix,
const ProcgenCellRequest &  request 
)

Removes cell instances.

在文件 Procgen.cpp 第 1127 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, removeInstances() , 以及 request.

◆ removeCellInstancesAtomic()

eve::Result< uint64_t > eve::procgen::Procgen::removeCellInstancesAtomic ( const std::string &  prefix,
const std::vector< const ProcgenCellRequest * > &  requests 
)

Atomically remove the Scene batches identified by several cleanup requests.

返回
Number of removed Scene batches; RuntimeGeneration cleanup tickets remain caller-owned. @thread Synchronous on the Scene owning thread; request references are not retained. @reentrant Not reentrant for any participating Scene batch.

在文件 Procgen.cpp 第 1136 行定义.

引用了 eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), eve::InvalidArgument , 以及 request.

◆ removeInstances()

eve::Result< void > eve::procgen::Procgen::removeInstances ( const std::string &  batchId)

◆ removeSystem()

eve::Result< void > eve::procgen::Procgen::removeSystem ( const std::string &  name)

◆ resolve() [1/5]

eve::script::Borrowed< ProcgenContext > eve::procgen::Procgen::resolve ( ProcgenContextHandleRef  reference)
staticnoexcept

Resolves a rebuild context as a non-owning observation.

在文件 Procgen.cpp 第 1520 行定义.

◆ resolve() [2/5]

eve::script::Borrowed< Grid2D > eve::procgen::Procgen::resolve ( ProcgenGridHandleRef  reference)
staticnoexcept

Resolves a grid as a non-owning observation.

在文件 Procgen.cpp 第 456 行定义.

◆ resolve() [3/5]

eve::script::Borrowed< image::ImageData > eve::procgen::Procgen::resolve ( ProcgenImageHandleRef  reference)
staticnoexcept

Resolves a generated image as a non-owning observation.

参数
referenceGeneration- and module-epoch-qualified image reference.
返回
A borrowed image, or an unbound observation when the reference is invalid, stale, or the Procgen module is unavailable. @ownership Borrowed; Procgen retains sole ownership of the image. @nullable Yes; the result is unbound for an invalid or stale reference. @lifetime Valid only until the image is released, the Procgen module is cleared/unloaded, or the owner mutates the registry. @thread Procgen owner thread; no synchronization is provided. @reentrancy Side-effect free and does not invoke callbacks.

在文件 Procgen.cpp 第 1996 行定义.

◆ resolve() [4/5]

eve::script::Borrowed< image::ImageData > eve::procgen::Procgen::resolve ( ProcgenNormalImageHandleRef  reference)
staticnoexcept

Resolves a generated normal image as a non-owning observation.

参数
referenceGeneration- and module-epoch-qualified normal-image reference.
返回
A borrowed image, or an unbound observation when the reference is invalid, stale, or the Procgen module is unavailable. @ownership Borrowed; Procgen retains sole ownership of the normal image. @nullable Yes; the result is unbound for an invalid or stale reference. @lifetime Valid only until the normal image is released, the Procgen module is cleared/unloaded, or the owner mutates the registry. @thread Procgen owner thread; no synchronization is provided. @reentrancy Side-effect free and does not invoke callbacks.

在文件 Procgen.cpp 第 2052 行定义.

◆ resolve() [5/5]

◆ resolveBiomeRules()

eve::script::Borrowed< BiomeRules > eve::procgen::Procgen::resolveBiomeRules ( ProcgenBiomeRulesHandleRef  reference)
noexcept

在文件 Procgen.cpp 第 1424 行定义.

引用了 reference.

◆ resolveCloudField()

eve::script::Borrowed< CloudField > eve::procgen::Procgen::resolveCloudField ( ProcgenCloudFieldHandleRef  reference)
noexcept

在文件 Procgen.cpp 第 2140 行定义.

引用了 reference.

被这些函数引用 cloudCoverageAt() , 以及 sampleCloud().

◆ resolveCloudShadow()

eve::script::Borrowed< CloudShadow > eve::procgen::Procgen::resolveCloudShadow ( ProcgenCloudShadowHandleRef  reference)
noexcept

在文件 Procgen.cpp 第 2156 行定义.

引用了 reference.

被这些函数引用 cloudShadowFactor() , 以及 sampleCloudShadow().

◆ resolveDynamicMeshUvPaintSession()

eve::script::Borrowed< DynamicMeshUvPaintSession > eve::procgen::Procgen::resolveDynamicMeshUvPaintSession ( ProcgenDynamicMeshUvPaintSessionHandleRef  reference)
noexcept

Resolve dynamic UV paint state for the current synchronous call only.

在文件 Procgen.cpp 第 1407 行定义.

引用了 reference.

◆ resolveGridGraph()

eve::script::Borrowed< GridGraph > eve::procgen::Procgen::resolveGridGraph ( ProcgenGridGraphHandleRef  reference)
noexcept

在文件 Procgen.cpp 第 1416 行定义.

引用了 reference.

◆ resolveHeightmap()

eve::script::Borrowed< Heightmap > eve::procgen::Procgen::resolveHeightmap ( ProcgenHeightmapHandleRef  reference)
noexcept

在文件 Procgen.cpp 第 2525 行定义.

引用了 reference.

被这些函数引用 heightfieldDataHandle(), heightmapToGrid(), projectToHeightmapHandle() , 以及 textureMaskDataHandle().

◆ resolveLSystem()

eve::script::Borrowed< LSystem > eve::procgen::Procgen::resolveLSystem ( ProcgenLSystemHandleRef  reference)
noexcept

Resolve l system.

在文件 Procgen.cpp 第 1432 行定义.

引用了 reference.

◆ resolveMeshBuild()

eve::script::Borrowed< MeshBuild > eve::procgen::Procgen::resolveMeshBuild ( ProcgenMeshBuildHandleRef  reference)
noexcept

Resolve mesh build.

在文件 Procgen.cpp 第 2310 行定义.

引用了 reference.

被这些函数引用 meshSurfaceDataHandle().

◆ resolveMeshDeformationSession()

eve::script::Borrowed< MeshDeformationSession > eve::procgen::Procgen::resolveMeshDeformationSession ( ProcgenMeshDeformationSessionHandleRef  reference)
noexcept

Resolve a mesh deformation session for the current synchronous call only.

在文件 Procgen.cpp 第 1402 行定义.

引用了 reference.

◆ resolveMeshGraph()

eve::script::Borrowed< MeshGraph > eve::procgen::Procgen::resolveMeshGraph ( ProcgenMeshGraphHandleRef  reference)
noexcept

在文件 Procgen.cpp 第 1420 行定义.

引用了 reference.

◆ resolveMeshModifierGraph()

eve::script::Borrowed< MeshModifierGraph > eve::procgen::Procgen::resolveMeshModifierGraph ( ProcgenMeshModifierGraphHandleRef  reference)
noexcept

Resolve a mesh modifier graph for the current synchronous call only.

在文件 Procgen.cpp 第 1397 行定义.

引用了 reference.

◆ resolveOutput()

eve::script::Borrowed< OutputSpec > eve::procgen::Procgen::resolveOutput ( ProcgenOutputHandleRef  reference)
noexcept

Resolves an output specification as a borrowed view.

在文件 Procgen.cpp 第 428 行定义.

被这些函数引用 generateTo().

◆ resolvePbrMaterial()

eve::script::Borrowed< PbrTextureSet > eve::procgen::Procgen::resolvePbrMaterial ( ProcgenPbrMaterialHandleRef  reference)
noexcept

Resolve pbr material.

在文件 Procgen.cpp 第 2229 行定义.

引用了 reference.

◆ resolvePointGraph()

eve::script::Borrowed< PointGraph > eve::procgen::Procgen::resolvePointGraph ( ProcgenPointGraphHandleRef  reference)
noexcept

Resolve point graph.

在文件 Procgen.cpp 第 1393 行定义.

引用了 reference.

◆ resolvePointSet()

◆ resolveRuntimeGeneration()

eve::script::Borrowed< RuntimeGeneration > eve::procgen::Procgen::resolveRuntimeGeneration ( ProcgenRuntimeGenerationHandleRef  reference)
noexcept

在文件 Procgen.cpp 第 1388 行定义.

引用了 reference.

◆ resolveShapeGrammar()

eve::script::Borrowed< ShapeGrammar > eve::procgen::Procgen::resolveShapeGrammar ( ProcgenShapeGrammarHandleRef  reference)
noexcept

在文件 Procgen.cpp 第 1428 行定义.

引用了 reference.

◆ resolveSpatialData()

eve::script::Borrowed< SpatialData > eve::procgen::Procgen::resolveSpatialData ( ProcgenSpatialDataHandleRef  reference)
noexcept

◆ resolveSplinePath()

eve::script::Borrowed< SplinePath > eve::procgen::Procgen::resolveSplinePath ( ProcgenSplinePathHandleRef  reference)
noexcept

Resolve a spline path for the current synchronous call only.

在文件 Procgen.cpp 第 1412 行定义.

引用了 reference.

◆ resolveTerrainSampler()

eve::script::Borrowed< TerrainSampler > eve::procgen::Procgen::resolveTerrainSampler ( ProcgenTerrainSamplerHandleRef  reference)
noexcept

在文件 Procgen.cpp 第 2496 行定义.

引用了 reference.

◆ sampleCloud()

eve::Result< void > eve::procgen::Procgen::sampleCloud ( ProcgenCloudFieldHandleRef  field,
std::span< float >  out,
int  w,
int  h,
float  time,
float  x0,
float  z0,
float  extent 
)

Samples coverage into a caller-owned buffer after validating its size.

在文件 Procgen.cpp 第 2184 行定义.

引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), h, eve::InvalidArgument, resolveCloudField(), eve::StaleHandle, eve::Status::success(), eve::Result< T >::success(), time, view , 以及 w.

◆ sampleCloudShadow()

eve::Result< void > eve::procgen::Procgen::sampleCloudShadow ( ProcgenCloudShadowHandleRef  shadow,
std::span< float >  out,
int  w,
int  h,
float  time,
float  x0,
float  z0,
float  extent 
)

Samples shadow coverage into a caller-owned buffer after validating its size.

在文件 Procgen.cpp 第 2198 行定义.

引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), h, eve::InvalidArgument, resolveCloudShadow(), eve::StaleHandle, eve::Status::success(), eve::Result< T >::success(), time, view , 以及 w.

◆ sampleGridHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::sampleGridHandle ( int  width,
int  depth,
float  spacing,
uint32_t  seed,
float  jitter 
)

◆ sampleSpatialHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::sampleSpatialHandle ( ProcgenSpatialDataHandleRef  spatial,
float  spacing,
uint32_t  seed,
float  jitter 
)

◆ sampleSplineHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::sampleSplineHandle ( ProcgenPointSetHandleRef  controlPoints,
float  spacing,
uint32_t  seed,
float  lateralJitter 
)

◆ selectTerrainLod()

int eve::procgen::Procgen::selectTerrainLod ( Heightmap *  heightmap,
int  originX,
int  originY,
int  cellsX,
int  cellsY,
int  maxLod,
float  cellSize,
float  heightScale,
float  cameraDistance,
float  viewportHeight,
float  verticalFovDegrees,
float  targetPixelError 
)

Select terrain LOD from measured screen-space geometric error.

在文件 Procgen.cpp 第 2695 行定义.

引用了 lod, eve::procgen::TerrainMeshSettings::originX, eve::procgen::TerrainLodSelector::select() , 以及 settings.

◆ selfPruneHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::selfPruneHandle ( ProcgenPointSetHandleRef  input,
float  radius 
)

◆ setPaletteGid()

void eve::procgen::Procgen::setPaletteGid ( const std::string &  palette,
const std::string &  semantic,
int  gid 
)

Sets the palette gid.

在文件 Procgen.cpp 第 1811 行定义.

引用了 palette, semantic , 以及 eve::procgen::PaletteTable::setGid().

被这些函数引用 Procgen().

◆ sphereVolumeHandle()

eve::Result< ProcgenSpatialDataHandleRef > eve::procgen::Procgen::sphereVolumeHandle ( float  x,
float  y,
float  z,
float  radius 
)

◆ splineDataHandle()

eve::Result< ProcgenSpatialDataHandleRef > eve::procgen::Procgen::splineDataHandle ( ProcgenPointSetHandleRef  controlPoints,
float  radius 
)

◆ synchronizeCellInstances()

eve::Result< uint64_t > eve::procgen::Procgen::synchronizeCellInstances ( const std::string &  prefix,
const RuntimeGeneration &  runtime,
const ProcgenCellRequest &  request,
const std::string &  assetAttribute,
const std::string &  defaultAsset 
)

Synchronize one active RuntimeGeneration cell to Scene using a delta or recovery snapshot.

参数
prefixNon-empty namespace used to derive the Scene batch identity.
runtimeAuthoritative scheduler containing the active cell.
requestCell coordinates identifying the runtime and Scene entries.
assetAttributeOptional string attribute selecting the instance asset.
defaultAssetAsset used when the selected attribute is absent.
返回
Synchronized revision; Scene-ahead state is a conflict. @thread Synchronous on the runtime and Scene owning thread. @reentrant Not reentrant for the same runtime cell or Scene batch.

在文件 Procgen.cpp 第 1029 行定义.

引用了 eve::Conflict, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), instances, eve::InvalidArgument, level, eve::NotFound, publishCellInstanceDelta(), request, eve::Result< T >::success(), x , 以及 z.

◆ synchronizeCellInstancesAtomic()

eve::Result< uint64_t > eve::procgen::Procgen::synchronizeCellInstancesAtomic ( const std::string &  prefix,
const std::vector< const RuntimeGeneration * > &  runtimes,
const std::vector< const ProcgenCellRequest * > &  requests,
const std::string &  assetAttribute,
const std::string &  defaultAsset 
)

Synchronize several active runtime cells through one atomic Scene transaction.

参数
prefixNon-empty namespace used to derive Scene batch identities.
runtimesAuthoritative runtimes, one per request.
requestsCell coordinate requests paired by index with runtimes.
assetAttributeOptional string attribute selecting each instance asset.
defaultAssetAsset used when the selected attribute is absent.
返回
Number of changed cell batches committed; zero means every cell was already current. @thread Synchronous on the runtime and Scene owning thread; references are not retained. @reentrant Not reentrant for any participating runtime cell or Scene batch.

在文件 Procgen.cpp 第 1072 行定义.

引用了 eve::Conflict, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), index, instances, eve::InvalidArgument, level, eve::NotFound, output, request, x , 以及 z.

◆ textureMaskDataHandle()

eve::Result< ProcgenSpatialDataHandleRef > eve::procgen::Procgen::textureMaskDataHandle ( ProcgenHeightmapHandleRef  values,
float  originX,
float  originZ,
float  cellSize,
float  minValue,
float  maxValue,
float  minY,
float  maxY 
)

◆ transformPoints3DHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::transformPoints3DHandle ( ProcgenPointSetHandleRef  input,
float  translateX,
float  translateY,
float  translateZ,
float  pitchDegrees,
float  yawDegrees,
float  rollDegrees,
float  scaleX,
float  scaleY,
float  scaleZ 
)

◆ transformPointsHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::transformPointsHandle ( ProcgenPointSetHandleRef  input,
float  translateX,
float  translateY,
float  translateZ,
float  yawDegrees,
float  scaleX,
float  scaleY,
float  scaleZ 
)

◆ unionPointsHandle()

eve::Result< ProcgenPointSetHandleRef > eve::procgen::Procgen::unionPointsHandle ( ProcgenPointSetHandleRef  first,
ProcgenPointSetHandleRef  second 
)

◆ unionSpatialHandle()

◆ uploadMeshBorrowed()

eve::script::Borrowed< graphics::Mesh > eve::procgen::Procgen::uploadMeshBorrowed ( const MeshBuild &  mesh,
graphics::Graphics &  gfx 
)

Upload an existing/composed CPU mesh to Graphics.

Upload a CPU mesh and return a Graphics-owned borrowed mesh.

在文件 Procgen.cpp 第 2360 行定义.

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

被这些函数引用 configureGtsTerrainTileLods(), configurePcgMeshLods() , 以及 generateMeshBorrowed().


该类的文档由以下文件生成: