amethyst / amethyst/bracket-lib

Fancy Console glyphs persistent across renders?

未关闭
#255 19 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
1.7k
派生
126
PR 合并指标
30 天内没有已合并 PR

描述

This is possibly me not understanding or doing something wrong.

I am using the fancy console.
In my code I have a condition that determines if a glyph is rendered.

```
if condition {
draw_batch.set(offset_pos, render.color, render.glyph);
} else {
println!("false");
}
```

The issue I have is that the glyph is being rendered even when the condition is false.
I added an else condition and `println!` and can see that output in my terminal, but the glyph will appear in the last location it was rendered.

Is this expected behaviour for the fancy console?

My current workaround has been to render an empty glyph at 0,0 - that is the only way I've been able to get the original glyph to disappear.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。