Recent Posts

How to abuse unique_ptr

2 minute read

After all those years there is still no unique_resource for exception-safe and correct low-level code. Abusing unique_ptr is a quick and dirty alternative, a...

Bufferless rendering in OpenGL

1 minute read

A simple operation like rendering a quad to run a fullscreen pixel shader pass requires a lot of boilerplate setup code, something like:

Embedded development with CMake

1 minute read

Using CMake for embedded development is actually not that hard. The main thing you need is a proper toolchain file which sets the necessary variables like CM...

Reducing C/C++ code

less than 1 minute read

Once in a while I run into internal compiler errors. To provide a nice minimal test case with the bug report I still use DustMite. It was actually written fo...