This commit is contained in:
2026-06-14 19:09:18 +01:00
parent 14bd1a9271
commit 13fa90a0e9
3958 changed files with 999286 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
#pragma once
#include <Windows.h>
#include <cstdint>
/**
* Write a formatted string to the connected debugger (e.g. DebugView).
*
* \param[in] fmt content to write in \c printf format (followed by optional arguments)
*/
void dprintf(char* const fmt, ...);
/**
* Converts raw RGBA data to a Windows BGRA bitmap.
*
* \param[in] src raw RGBA data
* \param[in] imgW width of the decoded image
* \param[in] imgH height of the decoded image
* \return handle to a bitmap (ownership passed to the caller)
*/
HBITMAP rgbToBitmap(const uint32_t* src, uint32_t const imgW, uint32_t const imgH, bool const flip = false);