isle-portable/extensions/include/extensions/textureloader.h
2025-07-09 16:12:56 -07:00

26 lines
575 B
C++

#pragma once
#include "extensions/extensions.h"
#include "legotextureinfo.h"
namespace Extensions
{
class TextureLoader {
public:
static constexpr const char* key = "extensions:texture loader";
static bool PatchTexture(LegoTextureInfo* p_textureInfo);
private:
static constexpr const char* texturePath = "/textures/";
static SDL_Surface* FindTexture(const char* p_name);
};
#ifdef EXTENSIONS
constexpr auto PatchTexture = &TextureLoader::PatchTexture;
#else
constexpr decltype(&TextureLoader::PatchTexture) PatchTexture = nullptr;
#endif
}; // namespace Extensions