You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
946 B

10 years ago
10 years ago
  1. /**********************************************************************************************
  2. *
  3. * rREM - raylib Resource Embedder 1.0.0 (alpha)
  4. *
  5. * Tool to embed resources (images, text, sounds, models...) into a rRES file.
  6. *
  7. * Copyright 2014 Ramon Santamaria. All rights reserved.
  8. *
  9. ***********************************************************************************************/
  10. rrem creates a .rres resource with embedded files and a .h header to access embedded data
  11. Usage example:
  12. 1) Create 'resources.rres' and 'resources.h' including 3 files:
  13. rrem image01.png image02.jpg sound03.wav
  14. 2) In your raylib program, just add at top:
  15. #include "resources.h"
  16. 3) When a resource is required, just load it using:
  17. Texture2D mytex = LoadTextureFromRES("resources.rres", RES_image01);
  18. Sound mysound = LoadSoundFromRES("resources.rres", RES_sound03);
  19. Note that you can check resources id names in resources.h file
  20. Have fun! :)