From 553dc44ca5d063321116370083c1a048a1f42f4a Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Thu, 23 Jan 2014 18:23:55 -0500 Subject: [PATCH] Allow access to the compressed data if the user promises not to change it. --- Core/include/CompressedImage.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/include/CompressedImage.h b/Core/include/CompressedImage.h index 4c10cc2..71f8fbf 100644 --- a/Core/include/CompressedImage.h +++ b/Core/include/CompressedImage.h @@ -94,6 +94,8 @@ class CompressedImage : public FasTC::Image { // size for a given compressed image. bool DecompressImage(uint8 *outBuf, uint32 outBufSz) const; + const uint8 *GetCompressedData() const { return m_CompressedData; } + FasTC::ECompressionFormat GetFormat() const { return m_Format; } };