aboutsummaryrefslogtreecommitdiff
path: root/tools/README.txt
blob: 4c9f66140ea4313eeaf17c1476008857a8cd47ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**********************************************************************************************
*
*   rREM - raylib Resource Embedder 1.0.0 (alpha)
*
*   Tool to embed resources (images, text, sounds, models...) into a rRES file.
*
*   Copyright 2014 Ramon Santamaria. All rights reserved.
*
***********************************************************************************************/


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


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! :)