-
stdout.read_char() will only read when the terminal is focused. It can't read keyin when arrayfire windows is focused. Since arrayfire window could be closed by pressing ESC, it should be able to receive keyin. However, I can't find any clue to do so. Any help? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
I guess there are several possibilities:
|
Beta Was this translation helpful? Give feedback.
-
As converting
|
Beta Was this translation helpful? Give feedback.
As converting
Array<u8>
array to sdl2::surface is a GPU to CPU process, it is not desirable in terms of performance.To ensure that it is a GPU to GPU conversion,
Array<u8>
needs to be converted to sdl2::texture directly. But, how?