Load widget resources from lumps

Add banner
This commit is contained in:
Magnus Norddahl 2023-12-28 18:39:04 +01:00 committed by Christoph Oelckers
commit 71ff4d3685
10 changed files with 667 additions and 63 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include <memory>
#include <string>
enum class ImageFormat
{
@ -19,4 +20,5 @@ public:
virtual void* GetData() const = 0;
static std::shared_ptr<Image> Create(int width, int height, ImageFormat format, const void* data);
static std::shared_ptr<Image> LoadResource(const std::string& resourcename);
};

View file

@ -5,3 +5,4 @@
#include <string>
std::vector<uint8_t> LoadWidgetFontData(const std::string& name);
std::vector<uint8_t> LoadWidgetImageData(const std::string& name);