OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MWRender::Sun::OcclusionCallback Class Reference
Inheritance diagram for MWRender::Sun::OcclusionCallback:
Collaboration diagram for MWRender::Sun::OcclusionCallback:

Public Member Functions

 OcclusionCallback (osg::ref_ptr< osg::OcclusionQueryNode > oqnVisible, osg::ref_ptr< osg::OcclusionQueryNode > oqnTotal)
 

Protected Member Functions

float getVisibleRatio (osg::Camera *camera)
 

Private Attributes

osg::ref_ptr
< osg::OcclusionQueryNode > 
mOcclusionQueryVisiblePixels
 
osg::ref_ptr
< osg::OcclusionQueryNode > 
mOcclusionQueryTotalPixels
 
std::map< osg::observer_ptr
< osg::Camera >, float > 
mLastRatio
 

Constructor & Destructor Documentation

MWRender::Sun::OcclusionCallback::OcclusionCallback ( osg::ref_ptr< osg::OcclusionQueryNode >  oqnVisible,
osg::ref_ptr< osg::OcclusionQueryNode >  oqnTotal 
)
inline

Member Function Documentation

float MWRender::Sun::OcclusionCallback::getVisibleRatio ( osg::Camera *  camera)
inlineprotected

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::map<osg::observer_ptr<osg::Camera>, float> MWRender::Sun::OcclusionCallback::mLastRatio
private
osg::ref_ptr<osg::OcclusionQueryNode> MWRender::Sun::OcclusionCallback::mOcclusionQueryTotalPixels
private
osg::ref_ptr<osg::OcclusionQueryNode> MWRender::Sun::OcclusionCallback::mOcclusionQueryVisiblePixels
private

The documentation for this class was generated from the following file: