Fast Extend library — Thread 2

Blitz3D Forums/Blitz3D Userlibs/Fast Extend library — Thread 2

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.

@_33:

I cannot see a MAV, I do all as you have told. But I all the same shall put protection in library from animated textures.

And about your code:
term\font[font_id]\name$ = ""
term\font[font_id]\filename$ = ""
FreeTexture term\font[font_id]\texture
FreeImageEx(term\font[font_id]\texture)
term\font[font_id]\texture = 0
FreeImageEx(term\font[font_id]\image)
term\font[font_id]\image = 0
FreeBank term\font[font_id]\bitdata
term\font[font_id]\bitdata = 0

; don't use FreeImageEx with first param = texture, read help-file! FreeImageEx(term\font[font_id]\texture) - it's incorrect
; you can correct your code, see below

term\font[font_id]\name$ = ""
term\font[font_id]\filename$ = ""
FreeImageEx term\font[font_id]\image, 1  ; auto-free texture for this image
term\font[font_id]\texture = 0
term\font[font_id]\image = 0
FreeBank term\font[font_id]\bitdata
term\font[font_id]\bitdata = 0