This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "QrCode.hpp" // from https://github.com/nayuki/QR-Code-generator | |
#include "ImageUtils.h" // from Unreal Engine (4.24) | |
/// <summary>Generates a QR code texture from a string.</summary> | |
/// <param name="parent">UE parent (required)</param> | |
/// <param name="string">String to encode</param> | |
UTexture2D* UWebBuzzers::GenerateQrCode(UObject* parent, FString string) | |
{ | |
qrcodegen::QrCode qr = qrcodegen::QrCode::encodeText(TCHAR_TO_UTF8(*string), qrcodegen::QrCode::Ecc::LOW); |