Updated Frequently Asked Questions (markdown)

master
Ray 3 years ago
parent
commit
2adf3a2f04
1 changed files with 12 additions and 4 deletions
  1. +12
    -4
      Frequently-Asked-Questions.md

+ 12
- 4
Frequently-Asked-Questions.md

@ -250,11 +250,11 @@ LoadFontEx("myfont.ttf", 50, NULL, 0);
## How do I load my 3d model animations in raylib? ## How do I load my 3d model animations in raylib?
_TODO_
3d animations is a complex topic. raylib supports IQM file-format animations loading but there are multiple ways to create them and export the IQM file, it is very possible that depending on that process raylib could not load animations from IQM file. GLTF file-format also supports animation but raylib is not able to load them at this moment. For anyone adventurous enough to try to implement GLTF animations support in raylib, you can check [`rmodels.c`](https://github.com/raysan5/raylib/blob/master/src/rmodels.c) module and `LoadGLTF()` function implementation.
## Does raylib support Vulkan? Will raylib support it? ## Does raylib support Vulkan? Will raylib support it?
raylib is build over OpenGL only and for the moment there are no plans to support other graphic API.
raylib is build over OpenGL only and for the moment there are no plans to support other graphic API. In any case, raylib uses [`rlgl` library](https://github.com/raysan5/raylib/blob/master/src/rlgl.h) as an abstraction layer over OpenGL different versions supported. In a future a `rlvk` equivalent layer could be created to map raylib to a Vulkan backend if required. Creating that layer could require a considerable amount of work.
## Why are my assets not loading? ## Why are my assets not loading?
@ -268,8 +268,16 @@ If you're getting `Failed to open file`, see the above question. If you're getti
## How do I remove the console window? ## How do I remove the console window?
It can be removed with a compiler parameter... _TODO_
It can be removed with a compiler parameter, it depends on the platform and compiler. `gcc` supports `-Wl,--subsystem,windows` or [`-mwindows`](https://gcc.gnu.org/onlinedocs/gcc/x86-Windows-Options.html) compiler options. On Visual Studio, in Configuration Properties > Linker > System > SubSystem choose `Windows (/SUBSYSTEM:WINDOWS)` to avoid console. With other compilers there should be similar options.
## How do I setup a custom icon for my executable? ## How do I setup a custom icon for my executable?
_TODO_
Icon support on executables is only supported [PE executables](https://en.wikipedia.org/wiki/Portable_Executable), usually on Windows systems. Icon can be embedded as a resource in code compilation, when creating the executable or it can be changed at runtime on execution.
1. To embed the icon as a resource on code compilation, a [`resource.rc` file](https://github.com/raysan5/raylib/blob/master/src/raylib.rc) should be created and compiled into an object file to be embedded as a regular code file. To compile that resource file, MinGW provides a tool called `windres.exe`:
```
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.

Loading…
Cancel
Save