diff options
Diffstat (limited to 'Source/Core/VideoCommon/AbstractTexture.h')
| -rw-r--r-- | Source/Core/VideoCommon/AbstractTexture.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AbstractTexture.h b/Source/Core/VideoCommon/AbstractTexture.h index d2ef2272fc..c18e1f17d3 100644 --- a/Source/Core/VideoCommon/AbstractTexture.h +++ b/Source/Core/VideoCommon/AbstractTexture.h @@ -17,8 +17,8 @@ class AbstractTexture public: explicit AbstractTexture(const TextureConfig& c); virtual ~AbstractTexture(); + virtual void Bind(unsigned int stage) = 0; - bool Save(const std::string& filename, unsigned int level); struct RawTextureInfo { @@ -43,6 +43,8 @@ public: virtual void Load(u32 level, u32 width, u32 height, u32 row_length, const u8* buffer, size_t buffer_size) = 0; + bool Save(const std::string& filename, unsigned int level); + static bool IsCompressedFormat(AbstractTextureFormat format); static size_t CalculateStrideForFormat(AbstractTextureFormat format, u32 row_length); static size_t GetTexelSizeForFormat(AbstractTextureFormat format); |
