IncBin for Blitz3D?
Blitz3D Forums/Blitz3D Beginners Area/IncBin for Blitz3D?
| ||
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? |
| ||
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. |
| ||
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. |
| ||
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! |
| ||
I think BMLinker lacks the description of where it places the files at runtime (like if it uses a "temp" folder or whatever). |
| ||
I almost forgot. Can Blitz Media Linker be used in commercial projects? |