Click here to Skip to main content
15,886,795 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: The magic of coffee Pin
Cpichols13-Jun-23 3:09
Cpichols13-Jun-23 3:09 
GeneralRe: The magic of coffee Pin
Slacker0079-Jun-23 4:42
professionalSlacker0079-Jun-23 4:42 
GeneralRe: The magic of coffee Pin
honey the codewitch9-Jun-23 5:17
mvahoney the codewitch9-Jun-23 5:17 
GeneralRe: The magic of coffee PinPopular
Gary Wheeler9-Jun-23 5:56
Gary Wheeler9-Jun-23 5:56 
GeneralRe: The magic of coffee Pin
Slacker0079-Jun-23 6:04
professionalSlacker0079-Jun-23 6:04 
GeneralRe: The magic of coffee Pin
Brisingr Aerowing11-Jun-23 3:59
professionalBrisingr Aerowing11-Jun-23 3:59 
GeneralRe: The magic of coffee Pin
Marc Clifton9-Jun-23 4:48
mvaMarc Clifton9-Jun-23 4:48 
GeneralRe: The magic of coffee Pin
honey the codewitch9-Jun-23 5:16
mvahoney the codewitch9-Jun-23 5:16 
channelr is a template function that takes one argument - 0 in this case.

template simply disambiguates it for the compiler. It's not always required - not even sure if it is in this case, but all it does in this context is tell the compiler "i'm about to instantiate a template"

the first line is grabbing a type alias declaration off of the type that corresponds to faAnchorLock. What it means in lay terms is "let me know what type of pixel format the faAnchorLock icon is using."

The pixel format is something like rgb_pixel<16> (rgb565 format, 16 bit) or in this case alpha_pixel<8>, which is a pixel that is nothing but an alpha channel. You can also have gsc_pixel<4> for example which is 4-bit grayscale, or many other types, and you can define more.

I'm using that to read the values out of the faAnchorLock icon. channelr gets them as a "real" value (floating point) scaled from 0-1 so I don't have to care about the source's bit depth (8 in this case, but that's an implementation detail)
There's smoke in my iris
But I painted a sunny day on the insides of my eyelids
So I'm ready now (What you ready for?)
I'm ready for life in this city
And my wings have grown almost enough to lift me

GeneralRe: The magic of coffee Pin
Member 1180367312-Jun-23 2:22
Member 1180367312-Jun-23 2:22 
GeneralRe: The magic of coffee Pin
kmoorevs9-Jun-23 6:19
kmoorevs9-Jun-23 6:19 
GeneralRe: The magic of coffee Pin
jeron19-Jun-23 7:12
jeron19-Jun-23 7:12 
GeneralRe: The magic of coffee Pin
PIEBALDconsult9-Jun-23 9:19
mvePIEBALDconsult9-Jun-23 9:19 
JokeRe: The magic of coffee Pin
jeron19-Jun-23 9:44
jeron19-Jun-23 9:44 
GeneralRe: The magic of coffee Pin
kmoorevs9-Jun-23 9:39
kmoorevs9-Jun-23 9:39 
GeneralRe: The magic of coffee Pin
jeron19-Jun-23 9:49
jeron19-Jun-23 9:49 
GeneralRe: The magic of coffee Pin
PIEBALDconsult9-Jun-23 9:19
mvePIEBALDconsult9-Jun-23 9:19 
GeneralRe: The magic of coffee Pin
kmoorevs9-Jun-23 9:50
kmoorevs9-Jun-23 9:50 
GeneralRe: The magic of coffee Pin
Amarnath S9-Jun-23 6:29
professionalAmarnath S9-Jun-23 6:29 
GeneralRe: The magic of coffee Pin
honey the codewitch9-Jun-23 6:30
mvahoney the codewitch9-Jun-23 6:30 
GeneralWSO CCC OTD 2023-06-09 Pin
OriginalGriff8-Jun-23 21:24
mveOriginalGriff8-Jun-23 21:24 
GeneralRe: WSO CCC OTD 2023-06-09 Pin
pkfox8-Jun-23 21:31
professionalpkfox8-Jun-23 21:31 
GeneralRe: WSO CCC OTD 2023-06-09 - we have a winner! Pin
OriginalGriff8-Jun-23 21:48
mveOriginalGriff8-Jun-23 21:48 
GeneralRe: WSO CCC OTD 2023-06-09 - we have a winner! Pin
pkfox8-Jun-23 21:54
professionalpkfox8-Jun-23 21:54 
GeneralRe: WSO CCC OTD 2023-06-09 - we have a winner! Pin
OriginalGriff8-Jun-23 23:02
mveOriginalGriff8-Jun-23 23:02 
GeneralRe: WSO CCC OTD 2023-06-09 - we have a winner! Pin
yacCarsten9-Jun-23 0:03
yacCarsten9-Jun-23 0:03 

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.