Moved tool to folder
This commit is contained in:
parent
4770e2010d
commit
7dbb17792a
3 changed files with 1 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -49,7 +49,7 @@ ipch/
|
||||||
# Ignore compiled binaries
|
# Ignore compiled binaries
|
||||||
*.o
|
*.o
|
||||||
*.exe
|
*.exe
|
||||||
!tools/rrem.exe
|
!tools/rREM/rrem.exe
|
||||||
|
|
||||||
# Ignore files build by xcode
|
# Ignore files build by xcode
|
||||||
*.mode*v*
|
*.mode*v*
|
||||||
|
|
|
||||||
30
tools/rREM/README.txt
Normal file
30
tools/rREM/README.txt
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
/**********************************************************************************************
|
||||||
|
*
|
||||||
|
* 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! :)
|
||||||
BIN
tools/rREM/rrem.exe
Normal file
BIN
tools/rREM/rrem.exe
Normal file
Binary file not shown.
Loading…
Reference in a new issue