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…
取消
儲存