
Handle Window Resizes and Framebuffer Size Changes in GLFW
Keep the OpenGL viewport and projection correct when a GLFW 3.4 window resizes, using the framebuffer size callback and the window size versus pixel size rules.
Tag
445 posts

Keep the OpenGL viewport and projection correct when a GLFW 3.4 window resizes, using the framebuffer size callback and the window size versus pixel size rules.

Understand the three stages that turn Verilog into an FPGA bitstream: synthesis to LUTs, place and route onto the fabric, and the configuration bits.

Find out whether your CPU supports hardware virtualization on Linux by reading the vmx and svm flags, running kvm-ok and checking that /dev/kvm exists.

Replace strcpy, strcat and sprintf in C with snprintf, memcpy with a checked length, and strlcpy, and detect truncation instead of overflowing a buffer.

Learn why computers use layers of memory from registers to storage, how a cache line works, and how to read your own machine's cache sizes with a C program.

Play local files, HTTP streams and network URLs in GStreamer with playbin, and use uridecodebin when you need your own sinks, with C and gst-launch examples.

Build a single-threaded C echo server that serves many clients with select, fd_set, FD_SET and FD_ISSET, and learn why you rebuild the set on every loop.

Launch threads in C++ with std::thread and the C++20 std::jthread, which joins automatically. Covers arguments, references, join rules and std::terminate.

What $@, $<, $^ and $? mean inside a make recipe, with a Makefile that uses each one and the mistakes that make $< and $^ behave unexpectedly.

Learn why CICS programs end after each screen, how EXEC CICS RETURN TRANSID with a COMMAREA keeps state between turns, and the conversational mode it replaces.

Add two float arrays of any length with SSE intrinsics in C: a four-wide main loop, a scalar tail, unaligned loads and the assembly you should see.

Use dtc to compile a .dts into a .dtb, turn a .dtb back into readable source and read the warnings it prints. The flags that matter, with exact commands.