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

32 lines
592 B
C++

#pragma once
#include "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::Internal {
bool LoadEmbeddedPngBytes(
UINT resourceId,
const std::uint8_t*& outData,
std::size_t& outSize,
std::string& outError);
bool LoadEmbeddedPngTexture(
Host::TextureHost& renderer,
UINT resourceId,
::XCEngine::UI::UITextureHandle& outTexture,
std::string& outError);
} // namespace XCEngine::UI::Editor::App::Internal