Contents

C++ and Computer Graphics Weekly-01

This series is inspired by Graphics Programming weekly updated by Jendrik Lllner, which collected awesome articles on graphics programming posted last week.

I think it’s a good way to record progress and get satisfaction, comparing to create a column and carefully write a survey for each topic. Of course sometimes it’s still necessary to do that to discuss some topic deeply. But I’d like to write down every great article, video or anything fantasy I saw in fragmented time.

Here’s the first one.

C++

CRTP Series from Fluent C++

Although I still did not find a good place to use it, I know now that the service interface is implemented using this pattern to provide mandatory function current() in the core.

It seems that everybody hates virtual functions a lot, lol.

Inline Variable in C++17

The example is intuitive and complete. Although it’s difficult to discuss all the cases, as cpp is such a complicated language, this is a great introduction for inline mechanism in modern C++.

Performance Comparation between std::variant and Other Stuffs

This happened to me that there’re quite a lot of events corresponding to different callbacks. It’s very confusing which way is the best, simply switch, enum index for array or wrapping callback information by variant. I saw detailed discussion and progressive refinement on the implementation of benchmark.

Graphics

Introduction to Color

A great blog introduces color from a bulb to pixels on the monitor. It answered my question about what’s the relationship between radiometry and photometry and how the intensity of light in photometry is evaluated. And the way is fantastic that it introduces color space from the slice of a rainbow cube to the color gamuts. I think I understand the sentence “There’re some colors that you can never see from screen”.