Procedural generation query surface (provided by the procgen module).
更多...
#include <ProcgenQuery.h>
|
| virtual | ~IProcgenQuery ()=default |
| | I procgen query.
|
| |
| virtual std::vector< std::string > | algorithms ()=0 |
| | Algorithms.
|
| |
| virtual std::vector< std::string > | meshRecipes ()=0 |
| | Mesh recipes.
|
| |
| virtual std::vector< std::string > | textureRecipes ()=0 |
| | Texture recipes.
|
| |
| virtual std::vector< std::string > | pbrRecipes ()=0 |
| | Pbr recipes.
|
| |
| virtual Result< std::string > | generateMap (const std::string &algorithm, int width, int height, uint32_t seed, const std::vector< std::pair< std::string, std::string > > ¶ms)=0 |
| | Generate a grid and serialize it as JSON.
|
| |
| virtual Result< std::string > | buildMesh (const std::string &recipe, uint32_t seed, int width, int height, int depth)=0 |
| | Build a mesh recipe and return a JSON vertex/triangle summary.
|
| |
Procedural generation query surface (provided by the procgen module).
在文件 ProcgenQuery.h 第 14 行定义.
◆ ~IProcgenQuery()
| virtual eve::IProcgenQuery::~IProcgenQuery |
( |
| ) |
|
|
virtualdefault |
◆ algorithms()
| virtual std::vector< std::string > eve::IProcgenQuery::algorithms |
( |
| ) |
|
|
pure virtual |
◆ buildMesh()
| virtual Result< std::string > eve::IProcgenQuery::buildMesh |
( |
const std::string & |
recipe, |
|
|
uint32_t |
seed, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
depth |
|
) |
| |
|
pure virtual |
Build a mesh recipe and return a JSON vertex/triangle summary.
- 返回
- Summary JSON on success; Unsupported/Failed with diagnostics otherwise.
◆ generateMap()
| virtual Result< std::string > eve::IProcgenQuery::generateMap |
( |
const std::string & |
algorithm, |
|
|
int |
width, |
|
|
int |
height, |
|
|
uint32_t |
seed, |
|
|
const std::vector< std::pair< std::string, std::string > > & |
params |
|
) |
| |
|
pure virtual |
Generate a grid and serialize it as JSON.
- 返回
- Grid JSON on success; Unsupported/Failed with diagnostics otherwise.
◆ meshRecipes()
| virtual std::vector< std::string > eve::IProcgenQuery::meshRecipes |
( |
| ) |
|
|
pure virtual |
◆ pbrRecipes()
| virtual std::vector< std::string > eve::IProcgenQuery::pbrRecipes |
( |
| ) |
|
|
pure virtual |
◆ textureRecipes()
| virtual std::vector< std::string > eve::IProcgenQuery::textureRecipes |
( |
| ) |
|
|
pure virtual |
◆ capabilityName
| constexpr const char* eve::IProcgenQuery::capabilityName = "IProcgenQuery" |
|
staticconstexpr |
该类的文档由以下文件生成: