-
Notifications
You must be signed in to change notification settings - Fork 0
Resource Manager
Irfan James edited this page May 20, 2024
·
5 revisions
If you want to Embed your assests in the .exe file itself, instead of sending them along with your .exe file
You can use Resource Manager
// ...
// text file (.txt)
#define IDR_TEXT1 100
// audio file (.mp3)
#define IDR_MP3_1 103
// font (.ttf)
#define IDR_FONT 707
// png image (.png)
#define IDR_BOX 212
// bmp image (.bmp)
#define IDR_LOGO 220
// ...
// ...
#include "resource.h"
IDR_TEXT1 TEXT "assets\\temp\\very_important_data.txt"
IDR_MP3_1 MP3 "assets\\Audio\\video-game-menu-click-sounds-1483731Drag.mp3"
IDR_FONT2 FONT "assets\\Fonts\\CalibriL_1_FNT\\CalibriL_1_14.fnt"
IDR_BOX PNG "assets\\Images\\Icons\\Bitmaps\\Boxes.png"
IDR_LOGO BMP "assets\\Images\\Logo\\bitmaps\\Logo.bmp"
// ...