Including resources

BlitzMax Forums/BlitzMax Programming/Including resources

Brucey(Posted 2007) [#1]
Hey ho, clever folks.

This line of c/c++ embeds an image in an executable:
#include "bitmaps/new.xpm"

(well, technically, it embeds some C-code which represents the image data).

I take it there is no easy way to use these things in BlitzMax - without having to write some C/C++ glue?

Incbin'ing the file I doubt would help much, unless I wrapped up some loader code...

Any thoughts?

:o)


Vignoli(Posted 2007) [#2]
Hello :-)

Why not make a tool to convert a bitmap to raw datas and then insert them into a .bmx file with defdata commands ?

(i hope i've understood the question, my english is poor)


Arowx(Posted 2007) [#3]
Question?

What advantage does the .xpm format have over any of the standard image formats that you could just incbin?


FlameDuck(Posted 2007) [#4]
What advantage does the .xpm format have over any of the standard image formats that you could just incbin?
That it's a text based format widely used in proper Operating Systems?