aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerimage.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/newview/llviewerimage.h
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerimage.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerimage.h b/linden/indra/newview/llviewerimage.h
index ee19cfb..9e7689f 100644
--- a/linden/indra/newview/llviewerimage.h
+++ b/linden/indra/newview/llviewerimage.h
@@ -189,9 +189,27 @@ public:
189 189
190 // New methods for determining image quality/priority 190 // New methods for determining image quality/priority
191 // texel_area_ratio is ("scaled" texel area)/(original texel area), approximately. 191 // texel_area_ratio is ("scaled" texel area)/(original texel area), approximately.
192 void addTextureStats(F32 pixel_area) const
193 {
194 mMaxCosAngle = 1.0f;
195 if (pixel_area > mMaxVirtualSize)
196 {
197 mMaxVirtualSize = pixel_area;
198 }
199 }
200 void addTextureStats(F32 pixel_area,
201 F32 texel_area_ratio) const
202 {
203 mMaxCosAngle = 1.0f;
204 F32 virtual_size = pixel_area / texel_area_ratio;
205 if (virtual_size > mMaxVirtualSize)
206 {
207 mMaxVirtualSize = virtual_size;
208 }
209 }
192 void addTextureStats(F32 pixel_area, 210 void addTextureStats(F32 pixel_area,
193 F32 texel_area_ratio = 1.0f, 211 F32 texel_area_ratio,
194 F32 cos_center_angle = 1.0f) const; 212 F32 cos_center_angle) const;
195 void resetTextureStats(BOOL zero = FALSE); 213 void resetTextureStats(BOOL zero = FALSE);
196 214
197 // Process image stats to determine priority/quality requirements. 215 // Process image stats to determine priority/quality requirements.