mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
gg: revamp the Context
pipeline for more effects, implement an additive
effect (#16394)
This commit is contained in:
parent
7d31473523
commit
5bb058e35b
8 changed files with 227 additions and 43 deletions
|
@ -138,7 +138,7 @@ pub fn (ctx &Context) set_text_cfg(cfg gx.TextCfg) {
|
|||
ctx.ft.fons.set_align(int(cfg.align) | int(cfg.vertical_align))
|
||||
color := sfons.rgba(cfg.color.r, cfg.color.g, cfg.color.b, cfg.color.a)
|
||||
if cfg.color.a != 255 {
|
||||
sgl.load_pipeline(ctx.timage_pip)
|
||||
sgl.load_pipeline(ctx.pipeline.alpha)
|
||||
}
|
||||
ctx.ft.fons.set_color(color)
|
||||
ascender := f32(0.0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue