Added multicolor VIC mode to bitmap graphics

Discussion about other targets
Post Reply
sgjava
Member
Posts: 25
Joined: Thu Feb 22, 2024 9:25 pm

Added multicolor VIC mode to bitmap graphics

Post by sgjava »

Just committed changes to C3L that allow VIC 160x200 to use common graphics functions. I had to put together a font for bitmap mode, but now you can use VDC/VIC hires and VIC multicolor bitmap modes interchangeably. Make sure you log into demo.d71 disk since multicolor font is leaded from current drive. https://github.com/sgjava/c3l/blob/main/disks/demo.d71

vice-screen-2024060815404307.png
vice-screen-2024060815423663.png
vice-screen-2024060816142025.png
You do not have the required permissions to view the files attached to this post.
stefano
Well known member
Posts: 2183
Joined: Mon Jul 16, 2007 7:39 pm

Re: Added multicolor VIC mode to bitmap graphics

Post by stefano »

It's beautiful! I've just rewritten the filled square loop used by clga(), fillb() and xorclga().
I'm not a c128 expert though, Fabrizio Caruso asked how to redefine the font in 80 columns mode, which I couldn't do (yet).
sgjava
Member
Posts: 25
Joined: Thu Feb 22, 2024 9:25 pm

Re: Added multicolor VIC mode to bitmap graphics

Post by sgjava »

So in bitmap mode I use the same fonts as text mode since the bitmaps are laid out the same way. i.e. 8x8 bit matrix. This is why rendering is so fast because you just copy 8 bytes from/to memory. I do use it for VDC bitmap mode since the character set gets wiped out. I just copy it to memory. I use https://github.com/sgjava/c3l/blob/main ... _mem_chr.c now. So if you load a font into memory this is how you'd store it in the VDC.
sgjava
Member
Posts: 25
Joined: Thu Feb 22, 2024 9:25 pm

Re: Added multicolor VIC mode to bitmap graphics

Post by sgjava »

All graphics code moved to its own disk. https://github.com/sgjava/c3l/blob/main ... aphics.d71
Post Reply