Compiled, owned StyleRecipe generation used for live and offscreen preview. 更多...
#include <StylizeTarget.h>
Public 成员函数 | |
| StylizeRecipeRuntime () | |
| Stylize recipe runtime. | |
| ~StylizeRecipeRuntime () | |
| Stylize recipe runtime. | |
| Result< void > | publish (const StylizeRecipeTarget &document, graphics::Graphics *graphics) |
| Compile a complete candidate before replacing the active generation. | |
| Result< void > | apply (graphics::Graphics *graphics, graphics::Texture *source, graphics::Canvas *destination, Revision expectedRevision) const |
| Apply the active post recipe into an explicit destination Canvas. | |
| Revision | revision () const |
| Revision of the compiled generation, or zero before publication. | |
详细描述
Compiled, owned StyleRecipe generation used for live and offscreen preview.
在文件 StylizeTarget.h 第 124 行定义.
构造及析构函数说明
◆ StylizeRecipeRuntime()
|
default |
Stylize recipe runtime.
◆ ~StylizeRecipeRuntime()
|
default |
Stylize recipe runtime.
成员函数说明
◆ apply()
| Result< void > eve::stylize_editing::StylizeRecipeRuntime::apply | ( | graphics::Graphics * | graphics, |
| graphics::Texture * | source, | ||
| graphics::Canvas * | destination, | ||
| Revision | expectedRevision | ||
| ) | const |
Apply the active post recipe into an explicit destination Canvas.
在文件 StylizeRuntime.cpp 第 47 行定义.
引用了 eve::graphics::Graphics::drawTexturedRect(), eve::graphics::Graphics::getCanvas(), eve::graphics::Canvas::getHeight(), eve::graphics::Canvas::getWidth(), previous, eve::graphics::Graphics::setCanvas() , 以及 source.
被这些函数引用 eve::editor::StylizeOffscreenPreviewService::render().
◆ publish()
| Result< void > eve::stylize_editing::StylizeRecipeRuntime::publish | ( | const StylizeRecipeTarget & | document, |
| graphics::Graphics * | graphics | ||
| ) |
Compile a complete candidate before replacing the active generation.
在文件 StylizeRuntime.cpp 第 18 行定义.
引用了 d, instances, name, eve::stylize_editing::StylizeRecipeTarget::passes(), eve::editing::EditableTargetState::revision(), eve::stylize_editing::StylizeRecipeTarget::validate() , 以及 value.
被这些函数引用 eve::editor::StylizeOffscreenPreviewService::render().
◆ revision()
|
inline |
Revision of the compiled generation, or zero before publication.
在文件 StylizeTarget.h 第 136 行定义.
该类的文档由以下文件生成:
- src/modules/stylize/editing/StylizeTarget.h
- src/modules/stylize/editing/StylizeRuntime.cpp