SRL Archive - SRL Archives

CreateTextBitmap


Renax

2006-03-07 21:00:42

i pimped out CreateBitmapMaskFromText, and made it store every bmp into an array so it will only load the bmp once and hopefully save time, i woulda added it but i don't know if it would be useful it's open for discussion.

masquerader

2006-03-07 22:38:31

From: Renax
i pimped out CreateBitmapMaskFromText, and made it store every bmp into an array so it will only load the bmp once and hopefully save time, i woulda added it but i don't know if it would be useful it's open for discussion.


if you look at library, you see that loadchars2 is really just assembling a bitmap array of letters. the various text functions use these already loaded bmps. i kinda thought that creating a text bitmap is not very hard for the computer, so i think it would be almost faster than searching through arrays

i dunno though, run some tests
nice code btw

Lorax

2006-03-08 02:34:47

I think the comment ruins the all-over look of the script, I was like woot ?!