It used to work but suddenly it doesn't... Some memory isn't being allocated or something. I've tried three different approaches with varying success. It all started when I began minimizin the application size by Framework and Import...
This crashes the app but BlitzMax doens't care:
And this makes BlitzMax go "Attempt to access field or method of Null object" at the last line:
Also it makes no difference whether i "New TPixmap" or not, so I guess I shouldn't.
HELP!
This crashes the app but BlitzMax doens't care:
Incbin "picture.jpg" Local .. thePixmap:TPixmap = New TPixmap, .. theTexture:Int thePixmap = LoadPixmap("incbin::picture.jpg") theTexture = bglTexFromPixmap(thePixmap)
And this makes BlitzMax go "Attempt to access field or method of Null object" at the last line:
Framework BRL.BlitzGL Incbin "picture.jpg" Local .. thePixmap:TPixmap = New TPixmap, .. theTexture:Int thePixmap = LoadPixmap("incbin::picture.jpg") theTexture = bglTexFromPixmap(thePixmap)
Also it makes no difference whether i "New TPixmap" or not, so I guess I shouldn't.
HELP!