osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{Terrain.cpp}::NestingDrawCallback Struct Reference

Inheritance diagram for anonymous_namespace{Terrain.cpp}::NestingDrawCallback:

List of all members.

Public Member Functions

 NestingDrawCallback (osg::Camera::DrawCallback *next)
virtual void operator() (osg::RenderInfo &renderInfo) const
void dispatch (osg::RenderInfo &renderInfo) const

Public Attributes

osg::ref_ptr
< osg::Camera::DrawCallback > 
_next

Detailed Description

A draw callback to calls another, nested draw callback.

Definition at line 45 of file Terrain.cpp.


Constructor & Destructor Documentation

anonymous_namespace{Terrain.cpp}::NestingDrawCallback::NestingDrawCallback ( osg::Camera::DrawCallback *  next) [inline]

Definition at line 47 of file Terrain.cpp.

: _next(next) { }

Member Function Documentation

void anonymous_namespace{Terrain.cpp}::NestingDrawCallback::dispatch ( osg::RenderInfo &  renderInfo) const [inline]

Definition at line 54 of file Terrain.cpp.

        {
            if ( _next )
                _next->operator ()( renderInfo );
        }
virtual void anonymous_namespace{Terrain.cpp}::NestingDrawCallback::operator() ( osg::RenderInfo &  renderInfo) const [inline, virtual]

Reimplemented in anonymous_namespace{Terrain.cpp}::QuickReleaseGLCallback.

Definition at line 49 of file Terrain.cpp.

        {
            dispatch( renderInfo );
        }

Member Data Documentation

osg::ref_ptr<osg::Camera::DrawCallback> anonymous_namespace{Terrain.cpp}::NestingDrawCallback::_next

Definition at line 60 of file Terrain.cpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines