global images?

BlitzMax Forums/BlitzMax Programming/global images?

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.

And when you insist on globals, at least don't waste your namespace and do something like this:

Type TImagepool
	Field image1:timage=LoadImage("C:\Bmaxdev\oO\1.PNG")
End Type

Global imagepool:Timagepool=New TImagepool

Print ImageWidth(imagepool.image1)


Then it'll all only cost you one variabele in your namespaec. A variable you can easily pass as function argument even.