Updated Frequently Asked Questions (markdown)

master
Ray пре 3 година
родитељ
комит
fc8645b2fc
1 измењених фајлова са 6 додато и 1 уклоњено
  1. +6
    -1
      Frequently-Asked-Questions.md

+ 6
- 1
Frequently-Asked-Questions.md

@ -19,6 +19,7 @@
- [Why are my sound files not working?](#why-are-my-sound-files-not-working)
- [How do I remove the console window?](#how-do-i-remove-the-console-window)
- [How do I setup a custom icon for my executable?](#how-do-i-setup-a-custom-icon-for-my-executable)
- [How I deal with UTF-16 strings?](#how-i-deal-with-utf-16-strings)
## Can I run raylib in my old PC?
@ -280,4 +281,8 @@ windres resource.rc -o resource.rc.data --target=pe-x86-64
```
With Visual Studio, adding the `resource.rc` file to the project should be enough.
2. To change the icon at runtime, raylib provides function `SetWindowIcon(Image image)`, just make sure that `image.format` is `PIXELFORMAT_UNCOMPRESSED_R8G8B8A8`, it's a requirement.
2. To change the icon at runtime, raylib provides function `SetWindowIcon(Image image)`, just make sure that `image.format` is `PIXELFORMAT_UNCOMPRESSED_R8G8B8A8`, it's a requirement.
## How I deal with UTF-16 strings?
raylib supports by default UTF-8 strings, actually, text drawing functions expect to receive UTF-8 strings as inputs but sometimes source text is provided as UTF-16. [Here it is a handy conversion library](https://gist.github.com/gulrak/2eda01eacebdb308787b639fa30958b3).

Loading…
Откажи
Сачувај