28 lines
622 B
C++
28 lines
622 B
C++
#pragma once
|
|
|
|
#ifndef NOMINMAX
|
|
#define NOMINMAX
|
|
#endif
|
|
|
|
#include "EditorHostResourceService.h"
|
|
|
|
#include <windows.h>
|
|
|
|
namespace XCEngine::UI::Editor::Host {
|
|
|
|
class Win32EditorResourceService final : public EditorHostResourceService {
|
|
public:
|
|
explicit Win32EditorResourceService(HINSTANCE instance);
|
|
|
|
bool TryLoadPngResource(
|
|
EditorHostPngResourceKind kind,
|
|
EditorHostResourceBytes& outBytes,
|
|
std::string& outError) const override;
|
|
std::filesystem::path GetExecutableDirectory() const override;
|
|
|
|
private:
|
|
HINSTANCE m_instance = nullptr;
|
|
};
|
|
|
|
} // namespace XCEngine::UI::Editor::Host
|