Files
XCEngine/new_editor/app/Support/EmbeddedPngLoader.h

28 lines
560 B
C++

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