What module(s) do I need to create PixMaps?

BlitzMax Forums/BlitzMax Beginners Area/What module(s) do I need to create PixMaps?

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.

I'm obviously missing something, and it's probably something stupid and obvious. I have no idea what else I should be doing before I'm able to create a pixmap. I tried setting a 2d video mode with graphics 640,480..etc, but that makes no odds.

I've commented out all the framework/import stuff to verify that it isn't the problem.

' PIXMAP NO WORKY DEALY

'Framework brl.BlitzGL   ' CHANGE TO IMPORT
'Import brl.linkedlist   ' REMOVE ALL OTHER IMPORTS
'Import brl.standardio   ' REMOVE ALL OTHER IMPORTS
'Import brl.keycodes     ' REMOVE ALL OTHER IMPORTS
'Import brl.system       ' REMOVE ALL OTHER IMPORTS
'Import brl.jpgloader    ' REMOVE ALL OTHER IMPORTS



Global PM:TPixmap


PM.Create(128,128,PF_RGBA8888)
If PM=Null RuntimeError "PIX MAP NO LOADY"


I've tried all four documented pixel formats but it makes no difference.