Which modules to import?

BlitzMax Forums/BlitzMax Programming/Which modules to import?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yeah, but I didn't know if some modules sometimes rely on other modules to function.

Constantly. But those that do will import the modules they need themselves. You don't need to worry about it. That's the beauty of the Import command.

I would have expected the BRL.Font module to rely on the pub.FreeTypeFont module, but apparently it doesn't.

I would have expected that too, but you're right, there's no sign of it. <checks> That's because there's a sepereate brl.freetypefont module, which relies on brl.font, brl.pixmap and pub.freetype. Which makes me wonder if/how brl.font works if you only import that and try to use it... <checks> Ahh, it doesn't. You are supposed to import the entire brl.max2d module for font support.