Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

29 linhas
946 B

há 10 anos
há 10 anos
  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! :)