Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: danny90444 on July 08, 2012, 08:16:29 pm

Title: Bitmaps
Post by: danny90444 on July 08, 2012, 08:16:29 pm
Can someone explain what Bitmaps are?
Title: Re: Bitmaps
Post by: Builderboy on July 08, 2012, 08:17:26 pm
A bitmap is like a sprite, but it can be any size, even larger than the screen itself!  They offer a relatively easy alternative to displaying large images.
Title: Re: Bitmaps
Post by: shmibs on July 08, 2012, 09:04:24 pm
in axe, bitmaps are images that are drawn directly to the lcd, like text usually is, rather than drawn to a screen buffer that is then sent to the lcd all at once. this is useful when you want to have an overlay (say, a menu or something) that doesn't affect the image currently on the buffer. it shouldn't be used for displaying in-game sprites or anything like that, though, because the method of drawing directly to the lcd is much slower than using a buffer (and is, in fact, one of the biggest reasons why Basic games are so slow)

EDIT: runer pointed out that i'm behind the times and the bitmap command no longer draws directly to the screen in recent versions of axe, meaning builder is right and it's just an easy way to draw multi-sized images. if you have a single-small sprite to draw, though, the sprite commands will still be more optimised, and thus faster.