载入中...
搜索中...
未找到
IGraphics2D.h
浏览该文件的文档.
89 virtual void drawTexturedRectLitUV(Texture *albedo, Texture *normal, float x, float y, float w, float h, float u0,
GPU-side font: wraps a decoded font::FontData and rasterizes a fixed set of codepoints into a single ...
Definition Font.h:35
2D immediate-mode drawing surface (screen or offscreen Canvas).
Definition IGraphics2D.h:33
virtual void setLighting2D(const Lighting2DUBO &ubo)=0
Upload per-frame / per-canvas 2D lighting constants.
virtual void setFont(Font *font)=0
Optional shared font used by legacy consumers; nullptr = none set.
virtual void drawTexturedRectRGBA(Texture *texture, float x, float y, float w, float h, float r, float g, float b, float a=1.f)=0
Draws textured rect rgba.
virtual void drawSolidRectRGBA(float x, float y, float w, float h, float r, float g, float b, float a=1.f)=0
Draws solid rect rgba.
virtual void drawTexturedRect(Texture *texture, float x, float y, float w, float h, const Color &color)=0
Draws textured rect.
virtual void pushValidationScope()=0
Backend GPU validation scopes (WebGPU).
virtual void setBackgroundColorRGBA(float r, float g, float b, float a=1.f)=0
Sets the background color rgba.
virtual void drawTexturedRectUV(Texture *texture, float x, float y, float w, float h, float u0, float v0, float u1, float v1, const Color &color)=0
Draws textured rect uv.
virtual void print(const std::string &text, float x, float y, const Color &color=Color(1.f, 1.f, 1.f, 1.f), float scale=1.f)=0
Draws UTF-8 text with the font selected by setFont().
virtual void drawTexturedRectShader(Texture *texture, Shader *shader, float x, float y, float w, float h, const Color &color)=0
Draws textured rect shader.
virtual void popValidationScope()=0
Pops validation scope.
virtual void drawSolidRectRotated(float cx, float cy, float w, float h, float degrees, const Color &color, BlendMode blend=BlendMode::Alpha)=0
Draws solid rect rotated.
virtual void drawText(Font *font, const std::string &text, float x, float y, const Color &color=Color(1.f, 1.f, 1.f, 1.f), float scale=1.f)=0
Draws UTF-8 text with an explicitly supplied GPU font.
virtual void drawSolidRect(float x, float y, float w, float h, const Color &color, BlendMode blend=BlendMode::Alpha)=0
Draws solid rect.
virtual void drawTexturedRectShaderDepth(Texture *color, Texture *depth, Shader *shader, float x, float y, float w, float h, const Color &tint)=0
Draws textured rect shader depth.
virtual void clearScreen()=0
Clears the current draw target to the background color.
virtual void drawPrimitiveCanvas(const PrimitiveCanvas2D &canvas)=0
Resolves and queues one frame-local primitive Canvas.
virtual void setCanvas(Canvas *canvas)=0
Draw target; nullptr → screen.
virtual void drawOcclusionSolid(float x, float y, float w, float h)=0
Draws occlusion solid.
virtual void drawTexturedRectLitUVRotated(Texture *albedo, Texture *normal, float cx, float cy, float w, float h, float degrees, float u0, float v0, float u1, float v1, const Color &color, BlendMode blend=BlendMode::Alpha)=0
Lit 2D draw rotated degrees clockwise (screen Y-down) around (cx, cy).
virtual bool isCanvasActive() const =0
True when canvas active.
virtual void setShader(Shader *shader)=0
Custom fragment pipeline for subsequent textured 2D draws.
virtual void drawOcclusion(Drawable *drawable, const glm::mat4 &m)=0
Draws occlusion.
virtual void drawOcclusionTexture(Texture *texture, float x, float y, float w, float h)=0
Draws occlusion texture.
virtual ~IGraphics2D()=default
Releases IGraphics2D resources.
virtual void drawTexturedRectShaderUV(Texture *texture, Shader *shader, float x, float y, float w, float h, float u0, float v0, float u1, float v1, const Color &color, bool rotatedUV=false, BlendMode blend=BlendMode::Alpha)=0
Draws textured rect shader uv.
virtual void drawTexturedRectShaderUVRotated(Texture *texture, Shader *shader, float cx, float cy, float w, float h, float degrees, float u0, float v0, float u1, float v1, const Color &color, bool rotatedUV=false, BlendMode blend=BlendMode::Alpha)=0
Draws textured rect shader uv rotated.
virtual void drawTexturedRectLitUV(Texture *albedo, Texture *normal, float x, float y, float w, float h, float u0, float v0, float u1, float v1, const Color &color, BlendMode blend=BlendMode::Alpha)=0
Lit 2D draw (albedo + normal map); normal may be null → flat.
Frame-local Skia-style recorder for 2D line primitives.
Definition PrimitiveDrawList.h:52
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:18
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
eve::Color Color
RGBA color used by every graphics draw call. Lives inside eve::graphics so including a graphics heade...
Definition Color.h:13
@ Alpha