Load widget resources from lumps
Add banner
This commit is contained in:
parent
3f50136c8d
commit
71ff4d3685
10 changed files with 667 additions and 63 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,3 +5,4 @@
|
|||
#include <string>
|
||||
|
||||
std::vector<uint8_t> LoadWidgetFontData(const std::string& name);
|
||||
std::vector<uint8_t> LoadWidgetImageData(const std::string& name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue