IncBin for Blitz3D?

Blitz3D Forums/Blitz3D Beginners Area/IncBin for Blitz3D?

Marcell(Posted 2010) [#1]
Hello,

Is it possible to include binary (images) into Blitz3D executables? If I’m not mistaken, in BlitzMax there is incbin-command. Is there something similar for Blitz3D in form of userlibs?


big10p(Posted 2010) [#2]
It's not possible in Blitz3D itself. You will need to use an app like molebox or the free Blitz Media Linker. Look in the toolbox.


_PJ_(Posted 2010) [#3]
Do you mean, to 'package' media files along with the executable?
If so, it's not directly possible, but there is this:

http://www.blitzbasic.com/codearcs/codearcs.php?code=1820

It basically allows you to create a .bb includeable file that contains the data for the image file, which, when 'used' in your main program, writes the code outr to an actual file again.


Marcell(Posted 2010) [#4]
Yes! Blitz Media Linker did the job I was after. It was a little hard to find it, though, Toolbox's link is out of date.

Thanks!


Kryzon(Posted 2010) [#5]
I think BMLinker lacks the description of where it places the files at runtime (like if it uses a "temp" folder or whatever).


Marcell(Posted 2010) [#6]
I almost forgot. Can Blitz Media Linker be used in commercial projects?