Framework directive
BlitzMax Forums/BlitzMax Programming/Framework directive
| ||
I discovered how to use the Framework directive today, thus importing only those modules that I need for my project, and reduced the size of the resulting executable immensely. I'm very happy about that. I have one problem, though, and that is with the "Incbin" directive. I'm using the "Framework BRL.GLMax2D" now, and trying to include a PNG file into the executable. Later on in the program, I try to create a Pixmap from the (assumed) included PNG file - but the Pixmap variable does not get initialized, it stays Null. When I do not use the Framework directive, I do not get this issue, and the pixmap is successfully initialized. It compiles with no errors in both cases. What to do? For now, I'm simply not using Incbin calls, but I really liked using it, for ease of distribution. |
| ||
Import BRL.Pixmap Import BRL.PngLoader ? |
| ||
You need to import 'BRL.RamStream' Do a forum search for a handy little app called 'Framework Assistant'. |
| ||
Yan: You need to import 'BRL.RamStream' Thank you so much Yan! That did the trick. And I'll look into Framework assistant for future projects. |