amethyst / amethyst/bracket-lib

Fancy Console glyphs persistent across renders?

Đang mở
#255 19 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
1.7k
Fork
126
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.