In file ./include/vob/stats/TexAccum.hxx:
A class that allows accumulation of estimated LODs of textured polys.
Documentation
A class that allows accumulation of
estimated LODs of textured polys.
Used to estimate what mipmap level of texture would
be required.
-
double pixels[NLEVELS]
- The number of pixels estimated to have been rendered at each level of detail.
-
void add(ZPt &p1, ZPt &p2, ZPt &p3, Pt &t1, Pt &t2, Pt &t3, float texAreaMult)
- Add a triangle.
- double pixels[NLEVELS]
- The number of pixels estimated to have been rendered
at each level of detail.
Level 0 : texture coordinates (0,1)x(0,1) == 1 pixel,
Level 1 : texture coordinates (0,.5)x(0,.5) == 1 pixel, ...
- void add(ZPt &p1, ZPt &p2, ZPt &p3, Pt &t1, Pt &t2, Pt &t3, float texAreaMult)
- Add a triangle.
Currently, this will calculate a rough estimate
of the LOD, assuming isotropic transformations,
by calculating the ratio of the areas; a more accurate
algorithm may be substituted later.
- Parameters:
- p1 - ,p2,p3 The corners in screen space, in pixel coords
t1 - ,t2,t3 The corners in texture coordinate space.
texAreaMult - The area in texture space will be multiplied by this.
Alphabetic index Hierarchy of classes
This page was generated with the help of DOC++.