Click here to Skip to main content
15,887,334 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Come to the dark side - we have cookies! Pin
jmaida1-Jan-23 14:29
jmaida1-Jan-23 14:29 
JokeRe: Come to the dark side - we have cookies! Pin
Nelek1-Jan-23 10:14
protectorNelek1-Jan-23 10:14 
GeneralRe: Come to the dark side - we have cookies! Pin
charlieg1-Jan-23 10:46
charlieg1-Jan-23 10:46 
GeneralRe: Come to the dark side - we have cookies! Pin
jmaida1-Jan-23 14:32
jmaida1-Jan-23 14:32 
GeneralRe: Come to the dark side - we have cookies! Pin
honey the codewitch1-Jan-23 18:27
mvahoney the codewitch1-Jan-23 18:27 
GeneralRe: Come to the dark side - we have cookies! Pin
jmaida2-Jan-23 14:56
jmaida2-Jan-23 14:56 
GeneralRe: Come to the dark side - we have cookies! Pin
charlieg2-Jan-23 15:54
charlieg2-Jan-23 15:54 
GeneralRe: Come to the dark side - we have cookies! Pin
honey the codewitch2-Jan-23 15:59
mvahoney the codewitch2-Jan-23 15:59 
I've written articles like that Metaprogramming in C++: A Gentle Introduction[^]

This for example, was basically gleaned from the starting point of my GFX library.

Now, as for a real world problem, consider supporting arbitrary binary footprints and color spaces for pixels. Pixels you can declare in any color model, with any bit depth, divided however you want among the color channels.

Now imagine computing the bitshifts to draw to a bitmap with say, RGB666 format, or indexed color, or RGB565, etc.

You can do it at runtime, and you'll get 3 frames per second.

Or you can do it at compile time and get better than 30.

Here's the documentation on my pixel<> template.

This would be impossible to do realistically without templates.

https://honeythecodewitch.com/gfx/wiki/pixels.md[^]
To err is human. Fortune favors the monsters.

GeneralRe: Come to the dark side - we have cookies! Pin
charlieg2-Jan-23 16:06
charlieg2-Jan-23 16:06 
GeneralRe: Come to the dark side - we have cookies! Pin
honey the codewitch2-Jan-23 16:24
mvahoney the codewitch2-Jan-23 16:24 
GeneralRe: Come to the dark side - we have cookies! Pin
honey the codewitch2-Jan-23 16:30
mvahoney the codewitch2-Jan-23 16:30 
GeneralRe: Come to the dark side - we have cookies! Pin
BillWoodruff2-Jan-23 1:25
professionalBillWoodruff2-Jan-23 1:25 
GeneralThe catastrophic outcome of COVID-19 Pin
Kornfeld Eliyahu Peter31-Dec-22 20:02
professionalKornfeld Eliyahu Peter31-Dec-22 20:02 
GeneralRe: The catastrophic outcome of COVID-19 Pin
David On Life31-Dec-22 20:28
David On Life31-Dec-22 20:28 
GeneralRe: The catastrophic outcome of COVID-19 Pin
Kornfeld Eliyahu Peter31-Dec-22 21:49
professionalKornfeld Eliyahu Peter31-Dec-22 21:49 
GeneralRe: The catastrophic outcome of COVID-19 Pin
Chris C-B31-Dec-22 20:29
Chris C-B31-Dec-22 20:29 
GeneralRe: The catastrophic outcome of COVID-19 Pin
OriginalGriff31-Dec-22 20:33
mveOriginalGriff31-Dec-22 20:33 
GeneralRe: The catastrophic outcome of COVID-19 Pin
Kornfeld Eliyahu Peter31-Dec-22 21:48
professionalKornfeld Eliyahu Peter31-Dec-22 21:48 
GeneralRe: The catastrophic outcome of COVID-19 Pin
Super Lloyd31-Dec-22 21:41
Super Lloyd31-Dec-22 21:41 
GeneralRe: The catastrophic outcome of COVID-19 Pin
Kornfeld Eliyahu Peter31-Dec-22 21:50
professionalKornfeld Eliyahu Peter31-Dec-22 21:50 
GeneralRe: The catastrophic outcome of COVID-19 Pin
yacCarsten31-Dec-22 23:18
yacCarsten31-Dec-22 23:18 
GeneralRe: The catastrophic outcome of COVID-19 Pin
Kornfeld Eliyahu Peter31-Dec-22 23:24
professionalKornfeld Eliyahu Peter31-Dec-22 23:24 
GeneralRe: The catastrophic outcome of COVID-19 Pin
Super Lloyd1-Jan-23 9:14
Super Lloyd1-Jan-23 9:14 
GeneralRe: The catastrophic outcome of COVID-19 Pin
Daniel Pfeffer31-Dec-22 23:32
professionalDaniel Pfeffer31-Dec-22 23:32 
GeneralRe: The catastrophic outcome of COVID-19 Pin
fgs19631-Jan-23 6:22
fgs19631-Jan-23 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.