Uh oh!
There was an error while loading. Please reload this page.
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? |
Replies: 2 comments 11 replies
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I guess there are several possibilities:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
As converting |
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?