In the manual i read that ClearWorld clears entities, textures and brushes.
What about images? are they cleared or do i need to freeimage one by one?
What about images? are they cleared or do i need to freeimage one by one?
Graphics 800, 600, 0, 2 Dim ImageArray(100) ImageArray(1) = LoadImage("c:\test1.jpg") ImageArray(2) = LoadImage("c:\Test2.jpg") DrawImage ImageArray(1), 10, 10 DrawImage ImageArray(2), 200, 200 WaitKey() For i = 0 To 99 If ImageArray(i) Then ; Check to see if there was an image loaded or not FreeImage ImageArray(i) EndIf Next DrawImage ImageArray(1), 10, 10 ; Error, image has been freed WaitKey()