10 - 12 Bit Color

Just starting out? Need help? Post your questions and find answers here.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

10 - 12 Bit Color

Post by chris319 »

Can PB's graphics routines handle > 8-bit color (10 or 12 bits per color)?

Thank you.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: 10 - 12 Bit Color

Post by jacdelad »

No, not natively.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: 10 - 12 Bit Color

Post by Mijikai »

If you want to stick mostly with PB and emulate those modes you could draw to a rendertarget normally and filter the output or draw
into a buffer with custom 8/10/12 bit drawing routines and then do the conversion while transfering the pixels to a rendertarget.

Doing the color conversion manually is ofc. slower - but given the nature of retro games completely negligible imho. (if thats the goal).
The only other option would be to build something from scratch to support those color modes as they are pretty much obsolete nowdays.

Btw. im currently writing an experimental 2d 8 bit software renderer (Windows only) that im planning to release this year.
I could however post an template on how to go about implementing 8 bit gfx it in PureBasic using PB platform independent functions only.
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: 10 - 12 Bit Color

Post by juergenkulow »

Please ask your questions, because switch on the cognition apparatus decides on the only known life in the universe.Wersten :DDüsseldorf NRW Germany Europe Earth Solar System Flake Bubble Orionarm
Milky Way Local_Group Virgo Supercluster Laniakea Universe
Post Reply