diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llviewerimage.h | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llviewerimage.h')
-rw-r--r-- | linden/indra/newview/llviewerimage.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewerimage.h b/linden/indra/newview/llviewerimage.h index a84cb72..60d9fb8 100644 --- a/linden/indra/newview/llviewerimage.h +++ b/linden/indra/newview/llviewerimage.h | |||
@@ -182,7 +182,7 @@ protected: | |||
182 | /*virtual*/ ~LLViewerImage(); | 182 | /*virtual*/ ~LLViewerImage(); |
183 | 183 | ||
184 | public: | 184 | public: |
185 | LLViewerImage(const LLString& filename, const LLUUID& id, BOOL usemipmaps = TRUE); | 185 | LLViewerImage(const std::string& filename, const LLUUID& id, BOOL usemipmaps = TRUE); |
186 | LLViewerImage(const LLUUID& id, BOOL usemipmaps = TRUE); | 186 | LLViewerImage(const LLUUID& id, BOOL usemipmaps = TRUE); |
187 | 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); |
188 | LLViewerImage(const LLImageRaw* raw, BOOL usemipmaps); | 188 | LLViewerImage(const LLImageRaw* raw, BOOL usemipmaps); |
@@ -226,15 +226,13 @@ public: | |||
226 | // Set callbacks to get called when the image gets updated with higher | 226 | // Set callbacks to get called when the image gets updated with higher |
227 | // resolution versions. | 227 | // resolution versions. |
228 | void setLoadedCallback(loaded_callback_func cb, | 228 | void setLoadedCallback(loaded_callback_func cb, |
229 | S32 discard_level, | 229 | S32 discard_level, BOOL keep_imageraw, BOOL needs_aux, |
230 | BOOL keep_imageraw, | ||
231 | void* userdata); | 230 | void* userdata); |
232 | 231 | ||
233 | // ONLY call from LLViewerImageList | 232 | // ONLY call from LLViewerImageList |
234 | BOOL createTexture(S32 usename = 0); | 233 | BOOL createTexture(S32 usename = 0); |
235 | 234 | ||
236 | BOOL needsAux() const { return mNeedsAux; } | 235 | BOOL needsAux() const { return mNeedsAux; } |
237 | void setNeedsAux(const BOOL needs_aux) { mNeedsAux = needs_aux; } | ||
238 | 236 | ||
239 | // setDesiredDiscardLevel is only used by LLViewerImageList | 237 | // setDesiredDiscardLevel is only used by LLViewerImageList |
240 | void setDesiredDiscardLevel(S32 discard) { mDesiredDiscardLevel = discard; } | 238 | void setDesiredDiscardLevel(S32 discard) { mDesiredDiscardLevel = discard; } |
@@ -303,7 +301,7 @@ private: | |||
303 | void init(bool firstinit); | 301 | void init(bool firstinit); |
304 | 302 | ||
305 | // Used to be in LLImageGL | 303 | // Used to be in LLImageGL |
306 | LLImageRaw* createRawImage(S8 discard_level = 0, BOOL allocate = FALSE); | 304 | LLImageRaw* readBackRawImage(S8 discard_level = 0); |
307 | void destroyRawImage(); | 305 | void destroyRawImage(); |
308 | 306 | ||
309 | public: | 307 | public: |
@@ -312,7 +310,7 @@ public: | |||
312 | 310 | ||
313 | S32 mOrigWidth; | 311 | S32 mOrigWidth; |
314 | S32 mOrigHeight; | 312 | S32 mOrigHeight; |
315 | LLString mLocalFileName; | 313 | std::string mLocalFileName; |
316 | 314 | ||
317 | // Data used for calculating required image priority/quality level/decimation | 315 | // Data used for calculating required image priority/quality level/decimation |
318 | mutable F32 mMaxVirtualSize; // The largest virtual size of the image, in pixels - how much data to we need? | 316 | mutable F32 mMaxVirtualSize; // The largest virtual size of the image, in pixels - how much data to we need? |
@@ -385,6 +383,8 @@ public: | |||
385 | static LLPointer<LLImageGL> sNullImagep; // Null texture for non-textured objects. | 383 | static LLPointer<LLImageGL> sNullImagep; // Null texture for non-textured objects. |
386 | 384 | ||
387 | static S32 sImageCount; | 385 | static S32 sImageCount; |
386 | static S32 sRawCount; | ||
387 | static S32 sAuxCount; | ||
388 | static LLTimer sEvaluationTimer; | 388 | static LLTimer sEvaluationTimer; |
389 | static F32 sDesiredDiscardBias; | 389 | static F32 sDesiredDiscardBias; |
390 | static F32 sDesiredDiscardScale; | 390 | static F32 sDesiredDiscardScale; |