载入中...
搜索中...
未找到
StyleChain.h
浏览该文件的文档.
1#pragma once
2
3#include <string>
4#include <vector>
5
6namespace eve::graphics {
7class Canvas;
8class Graphics;
9class Texture;
10} // namespace eve::graphics
11
12namespace eve::stylize {
13
14class StylePass;
15
28public:
29 StyleChain() = default;
30 ~StyleChain() = default;
31
32 StyleChain(const StyleChain &) = delete;
33 StyleChain &operator=(const StyleChain &) = delete;
34
35 void clear();
36 void add(StylePass *pass);
37 int getPassCount() const { return int(passes_.size()); }
38 StylePass *getPass(int index) const;
39
46 graphics::Canvas *temp = nullptr);
47
49 graphics::Canvas *temp = nullptr);
50
51private:
52 std::vector<StylePass *> passes_;
53};
54
55} // namespace eve::stylize
int temp
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:17
Ordered multi-pass stylize pipeline (extension point).
Definition StyleChain.h:27
StyleChain(const StyleChain &)=delete
void applyCanvas(graphics::Graphics *gfx, graphics::Canvas *source, graphics::Canvas *dest, graphics::Canvas *temp=nullptr)
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...
StyleChain & operator=(const StyleChain &)=delete
StylePass * getPass(int index) const
void add(StylePass *pass)
One stylized post-process pass bound to a style id (built-in or custom label). Draws a full-quad of t...
Definition StylePass.h:22
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition AnimTrail.h:6