Page 1 of 1
10 - 12 Bit Color
Posted: Thu Sep 22, 2022 3:43 pm
by chris319
Can PB's graphics routines handle > 8-bit color (10 or 12 bits per color)?
Thank you.
Re: 10 - 12 Bit Color
Posted: Thu Sep 22, 2022 5:23 pm
by jacdelad
No, not natively.
Re: 10 - 12 Bit Color
Posted: Thu Sep 22, 2022 7:28 pm
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.
Re: 10 - 12 Bit Color
Posted: Fri Sep 23, 2022 8:05 am
by juergenkulow