载入中...
搜索中...
未找到
StyleRecipe.cpp
浏览该文件的文档.
71void StyleRecipe::apply(graphics::Graphics* gfx, graphics::Texture* source, graphics::Canvas* dest) {
82void StyleRecipe::applyCanvas(graphics::Graphics* gfx, graphics::Canvas* source, graphics::Canvas* dest) {
83 if (!source || !source->getTexture()) throw eve::Exception("StyleRecipe.applyCanvas: source has no texture");
virtual Texture * getTexture()=0
Sampleable color buffer; screen Canvas returns nullptr.
Definition Graphics.h:125
virtual Canvas * newCanvas(int width, int height)=0
Create an offscreen render target (sampleable). Owned by Graphics.
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:18
Ordered multi-pass stylize pipeline (extension point).
Definition StyleChain.h:29
void apply(graphics::Graphics *gfx, graphics::Texture *source, graphics::Canvas *dest, graphics::Canvas *temp=nullptr)
Run passes in order into dest. When more than one pass is present, temp is required for ping-pong (sa...
Definition StyleChain.cpp:26
Mutable parameter instance of an immutable built-in style definition.
Definition StyleInstance.h:25
void applyCanvas(graphics::Graphics *gfx, graphics::Canvas *source, graphics::Canvas *dest)
Applies canvas.
Definition StyleRecipe.cpp:82
void apply(graphics::Graphics *gfx, graphics::Texture *source, graphics::Canvas *dest)
Applies .
Definition StyleRecipe.cpp:71
Definition MeshVfxPackage.h:10