Text formatting
This commit is contained in:
parent
4127638f92
commit
0a71a92eeb
1 changed files with 2 additions and 8 deletions
|
@ -8,29 +8,23 @@
|
|||
*
|
||||
***********************************************************************************************/
|
||||
|
||||
|
||||
rrem creates a .rres resource with embedded files and a .h header to access embedded data
|
||||
|
||||
|
||||
Usage example:
|
||||
|
||||
1) Create 'resources.rres' and 'resources.h' including 3 files:
|
||||
|
||||
rrem image01.png image02.jpg sound03.wav
|
||||
|
||||
rrem image01.png image02.jpg sound03.wav
|
||||
|
||||
2) In your raylib program, just add at top:
|
||||
|
||||
#include "resources.h"
|
||||
|
||||
|
||||
3) When a resource is required, just load it using:
|
||||
|
||||
Texture2D mytex = LoadTextureFromRES("resources.rres", RES_image01);
|
||||
Sound mysound = LoadSoundFromRES("resources.rres", RES_sound03);
|
||||
|
||||
|
||||
Note that you can check resources id names in resources.h file
|
||||
|
||||
|
||||
Have fun! :)
|
||||
Have fun! :)
|
Loading…
Add table
Add a link
Reference in a new issue