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: 1431
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

Re: 10 - 12 Bit Color

Post by jacdelad »

No, not natively.
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
User avatar
Mijikai
Addict
Addict
Posts: 1360
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: 544
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