ObsidianDragon - DragonX ImGui Wallet

Full-node GUI wallet for DragonX cryptocurrency.
Built with Dear ImGui, SDL3, and OpenGL3/DX11.

Features:
- Send/receive shielded and transparent transactions
- Autoshield with merged transaction display
- Built-in CPU mining (xmrig)
- Peer management and network monitoring
- Wallet encryption with PIN lock
- QR code generation for receive addresses
- Transaction history with pagination
- Console for direct RPC commands
- Cross-platform (Linux, Windows)
This commit is contained in:
2026-02-26 02:31:52 -06:00
commit 3aee55b49c
306 changed files with 177789 additions and 0 deletions

39
src/ui/widgets/qr_code.h Normal file
View File

@@ -0,0 +1,39 @@
// DragonX Wallet - ImGui Edition
// Copyright 2024-2026 The Hush Developers
// Released under the GPLv3
#pragma once
#include <cstdint>
namespace dragonx {
namespace ui {
/**
* @brief QR Code rendering utilities
*/
/**
* @brief Generate a texture containing a QR code
* @param data The data to encode in the QR code
* @param out_width Output: width of the texture
* @param out_height Output: height of the texture
* @return Texture handle (OpenGL texture ID or DX11 SRV pointer), or 0 on failure
*/
uintptr_t GenerateQRTexture(const char* data, int* out_width, int* out_height);
/**
* @brief Free a QR texture
* @param texture_id Texture handle returned by GenerateQRTexture
*/
void FreeQRTexture(uintptr_t texture_id);
/**
* @brief Render a QR code using ImGui
* @param texture_id Texture handle from GenerateQRTexture
* @param size Display size (width and height)
*/
void RenderQRCode(uintptr_t texture_id, float size);
} // namespace ui
} // namespace dragonx