载入中...
搜索中...
未找到
StylePass.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7#include <string>
8
9namespace eve::graphics {
10class Canvas;
11class Graphics;
12class Shader;
13class Texture;
14} // namespace eve::graphics
15
16namespace eve::stylize {
17
27public:
29 StylePass(const std::string &style, graphics::Shader *shader);
31 ~StylePass() = default;
32
33 StylePass(const StylePass &) = delete;
34 StylePass &operator=(const StylePass &) = delete;
35
37 std::string getStyle() const { return style_; }
39 graphics::Shader *getShader() const { return shader_; }
41 std::string getStage() const;
43 int getPriority() const { return desc_.priority; }
45 void setPriority(int priority) { desc_.priority = priority; }
47 bool requiresInput(const std::string &input) const;
48
50 bool hasParam(const std::string &name) const;
52 void setFloat(const std::string &name, float value);
54 float getFloat(const std::string &name) const;
55
57 void setTime(float seconds);
59 float getTime() const;
60
67 void applyCanvas(graphics::Graphics *gfx, graphics::Canvas *source);
68
75 void applyCanvasTo(graphics::Graphics *gfx, graphics::Canvas *source, graphics::Canvas *dest);
76
77private:
78 void uploadScreenUniforms(int width, int height);
79
80 std::string style_;
81 graphics::Shader *shader_ = nullptr; // owned by Graphics
83};
84
85} // namespace eve::stylize
double value
int priority
EvpackChunkInput input
Definition Evpack.cpp:170
#define EVENGINE_API_WORLD
Definition Export.h:109
std::uint32_t height
std::uint32_t width
std::string name
Shader * shader
const UnitySourceAsset & source
Canvas public API.
Definition Canvas.h:17
Custom GPU program.
Definition Shader.h:39
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:18
One stylized post-process pass bound to a style id (built-in or custom label). Draws a full-quad of t...
Definition StylePass.h:26
int getPriority() const
Returns the priority.
Definition StylePass.h:43
~StylePass()=default
Style pass.
void setPriority(int priority)
Sets the priority.
Definition StylePass.h:45
StylePass(const StylePass &)=delete
std::string getStyle() const
Returns the style.
Definition StylePass.h:37
StylePass & operator=(const StylePass &)=delete
graphics::Shader * getShader() const
Returns the shader.
Definition StylePass.h:39
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Backend-neutral scheduling contract supplied by post-effect modules.
Definition PostEffect.h:20