载入中...
搜索中...
未找到
PrototypeTextures.h 文件参考
#include "common/Result.h"
#include "image/ImageData.h"
#include "procgen/Params.h"
#include <memory>
#include <span>
#include <string_view>

浏览源代码.

类

struct  eve::procgen::PrototypeTextureDescriptor
 Metadata for one development/prototype texture pattern. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

函数

std::span< const PrototypeTextureDescriptor > eve::procgen::prototypeTextureDescriptors () noexcept
 Return the stable catalogue of 13 procedural prototype patterns.
 
eve::Result< std::unique_ptr< image::ImageData > > eve::procgen::generatePrototypeTexture (std::string_view patternId, const Params &params)
 Generate a parameterized RGBA8 prototype texture without loading an image asset. @ownership On success the caller exclusively owns the returned ImageData. @lifetime The returned image remains valid until the caller releases it; params are borrowed only for this call.
 
void eve::procgen::registerPrototypeTextureRecipes (TextureRecipeRegistry &registry)
 Register all patterns as tex.prototype.* texture recipes.