|
Re: BMAP after level_load
[Re: flatron]
#409019
10/10/12 13:19
10/10/12 13:19
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Predefined bmaps like
BMAP* AnyBitmap = "bitmap.bmp";
are not removed. Bitmaps shown before level_load will stay visible after level loaded, to avoid that use in your function which shows / hides the bmaps. Hope this helped greets
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: BMAP after level_load
[Re: flatron]
#409036
10/10/12 15:59
10/10/12 15:59
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You generally have to distinct between bitmaps you create manually (bmap_create, bmap_createblack, Panel Definitions etc.) on the one hand and bitmaps that are created automatically for textures for you level or your entities. When they are created automatically they will be removed automatically as well on a level change. When you created them yourself you have to take care of removing them any time you see removing may fit your needs.
1. They are freed from memory. You won't be notified about that. Exactly. Don't store pointers to bitmaps that are automatically freed in a pointer.
2. Nothing. Take care that you don't loose the pointer to such bitmaps or they won't be accessible any more.
3. Nothing
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: BMAP after level_load
[Re: Uhrwerk]
#409039
10/10/12 16:53
10/10/12 16:53
|
Joined: Jan 2010
Posts: 150 iran - tehran
flatron
OP
Member
|
OP
Member
Joined: Jan 2010
Posts: 150
iran - tehran
|
ok I have some problem with BMAP*. I have some global BMAP* and now try to use them as local. thank you.
about number 3: that means bmap remain in memory and unaccessible because there is no pointer to it.is it true?
Last edited by flatron; 10/10/12 16:56.
|
|
|
Re: BMAP after level_load
[Re: flatron]
#409041
10/10/12 17:08
10/10/12 17:08
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You can use any global bitmap pointer locally as well. There is no restriction. Why not posting your code and describing the problem?
3. Exactly. I believe that if you recreate the bitmap with the same filname it won't be loaded again because it is cached, but I wouldn't rely on that.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|