aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerimage.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerimage.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewerimage.h b/linden/indra/newview/llviewerimage.h
index c90a672..a84cb72 100644
--- a/linden/indra/newview/llviewerimage.h
+++ b/linden/indra/newview/llviewerimage.h
@@ -182,6 +182,7 @@ protected:
182 /*virtual*/ ~LLViewerImage(); 182 /*virtual*/ ~LLViewerImage();
183 183
184public: 184public:
185 LLViewerImage(const LLString& filename, const LLUUID& id, BOOL usemipmaps = TRUE);
185 LLViewerImage(const LLUUID& id, BOOL usemipmaps = TRUE); 186 LLViewerImage(const LLUUID& id, BOOL usemipmaps = TRUE);
186 LLViewerImage(const U32 width, const U32 height, const U8 components, BOOL usemipmaps); 187 LLViewerImage(const U32 width, const U32 height, const U8 components, BOOL usemipmaps);
187 LLViewerImage(const LLImageRaw* raw, BOOL usemipmaps); 188 LLViewerImage(const LLImageRaw* raw, BOOL usemipmaps);
@@ -291,6 +292,11 @@ public:
291 292
292 bool doLoadedCallbacks(); 293 bool doLoadedCallbacks();
293 294
295 // returns dimensions of original image for local files (before power of two scaling)
296 // and returns 0 for all asset system images
297 S32 getOriginalWidth() { return mOrigWidth; }
298 S32 getOriginalHeight() { return mOrigHeight; }
299
294private: 300private:
295 /*virtual*/ void cleanup(); // Cleanup the LLViewerImage (so we can reinitialize it) 301 /*virtual*/ void cleanup(); // Cleanup the LLViewerImage (so we can reinitialize it)
296 302
@@ -304,6 +310,10 @@ public:
304 S32 mFullWidth; 310 S32 mFullWidth;
305 S32 mFullHeight; 311 S32 mFullHeight;
306 312
313 S32 mOrigWidth;
314 S32 mOrigHeight;
315 LLString mLocalFileName;
316
307 // Data used for calculating required image priority/quality level/decimation 317 // Data used for calculating required image priority/quality level/decimation
308 mutable F32 mMaxVirtualSize; // The largest virtual size of the image, in pixels - how much data to we need? 318 mutable F32 mMaxVirtualSize; // The largest virtual size of the image, in pixels - how much data to we need?
309 mutable F32 mMaxCosAngle; // The largest cos of the angle between camera X vector and the object 319 mutable F32 mMaxCosAngle; // The largest cos of the angle between camera X vector and the object