Incbin, question

BlitzMax Forums/BlitzMax Beginners Area/Incbin, question

SillyPutty(Posted 2005) [#1]
Hi all, is incbin used for including media into your exe ?

I have seen it being used in some code like

pseudo code below

Incbin "whatever.bmp"

then load("incbin::whatever.bmp")

Can someone explain this to me ?

Thanks guys


xlsior(Posted 2005) [#2]
when you compile the program, the media file will automatically be included in your .EXE file:

This way you end up with a single .EXE, without the need to distribute any external media with your program.
Other than the mention of 'incbin', everything works exactly the same as using normal external files.


SillyPutty(Posted 2005) [#3]
awsome, thanks xlsior !