Files
XCEngine/editor/app/Support/EmbeddedPngLoader.h
2026-04-25 16:46:01 +08:00

32 lines
595 B
C++

#pragma once
#include "Rendering/Host/HostFwd.h"
#include <XCEngine/UI/Types.h>
#include <cstddef>
#include <cstdint>
#include <string>
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
namespace XCEngine::UI::Editor::App {
bool LoadEmbeddedPngBytes(
UINT resourceId,
const std::uint8_t*& outData,
std::size_t& outSize,
std::string& outError);
bool LoadEmbeddedPngTexture(
Rendering::Host::UiTextureHost& renderer,
UINT resourceId,
::XCEngine::UI::UITextureHandle& outTexture,
std::string& outError);
} // namespace XCEngine::UI::Editor::App