mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-21 09:49:01 +00:00
VideoCommon: Replace SOIL with libpng for hires textures
This commit is contained in:
parent
0706add584
commit
17e65a7167
9 changed files with 228 additions and 56 deletions
|
@ -16,8 +16,6 @@ enum class TextureFormat;
|
|||
class HiresTexture
|
||||
{
|
||||
public:
|
||||
using ImageDataPointer = std::unique_ptr<u8, void (*)(unsigned char*)>;
|
||||
|
||||
static void Init();
|
||||
static void Update();
|
||||
static void Shutdown();
|
||||
|
@ -39,14 +37,11 @@ public:
|
|||
|
||||
struct Level
|
||||
{
|
||||
Level();
|
||||
|
||||
ImageDataPointer data;
|
||||
std::vector<u8> data;
|
||||
AbstractTextureFormat format = AbstractTextureFormat::RGBA8;
|
||||
u32 width = 0;
|
||||
u32 height = 0;
|
||||
u32 row_length = 0;
|
||||
size_t data_size = 0;
|
||||
};
|
||||
std::vector<Level> m_levels;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue