载入中...
搜索中...
未找到
RoadRecipes.h
浏览该文件的文档.
1#pragma once
2
3#include "procgen/MeshBuild.h"
4#include "procgen/Params.h"
7
8#include <memory>
9#include <string>
10
11namespace eve::image {
12class ImageData;
13}
14
15namespace eve::procgen {
16class MeshRecipeRegistry;
17class TextureRecipeRegistry;
18
19namespace road {
20
33[[nodiscard]] EVENGINE_API_DOMAINS Result<RoadBakeResult> bakeRoadNetworkRecipe(const Params& params);
34
36bool generateRoadNetworkMesh(const Params& params, MeshBuild& out, std::string& error);
37
39[[nodiscard]] Result<RoadOverlay> generateRoadNetworkOverlay(const Params& params);
40
42std::unique_ptr<image::ImageData> generateRoadMarkingsTexture(const Params& params, std::string& error);
43
45void registerRoadMeshRecipes(MeshRecipeRegistry& registry);
47void registerRoadTextureRecipes(TextureRecipeRegistry& registry);
48
49} // namespace road
50} // namespace eve::procgen
#define EVENGINE_API_DOMAINS
Definition Export.h:110
std::vector< RecipeParam > params
std::string error
Definition Package.cpp:174
const eve::script::BindingContractRegistry & registry
ScriptStructure out
Result< RoadOverlay > generateRoadNetworkOverlay(const Params &params)
Bake navigation overlay for the same Params used by mesh.roadNetwork.
std::unique_ptr< image::ImageData > generateRoadMarkingsTexture(const Params &params, std::string &error)
Pure-function road marking atlas (asphalt + edge + dashed center + zebra).
bool generateRoadNetworkMesh(const Params &params, MeshBuild &out, std::string &error)
Generate a multi-level interchange mesh from Params (span/height/lanes/seed).
Result< RoadBakeResult > bakeRoadNetworkRecipe(const Params &params)
Build the shared road recipe once for mesh, navigation and artifact projections.
void registerRoadMeshRecipes(MeshRecipeRegistry &registry)
Registers road mesh recipes.
void registerRoadTextureRecipes(TextureRecipeRegistry &registry)
Registers road texture recipes.