diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerimage.h | 22 |
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. |