osgEarth 2.1.1
Public Types | Public Member Functions | Public Attributes

anonymous_namespace{Terrain.cpp}::QuickReleaseGLCallback Struct Reference

Inheritance diagram for anonymous_namespace{Terrain.cpp}::QuickReleaseGLCallback:
Collaboration diagram for anonymous_namespace{Terrain.cpp}::QuickReleaseGLCallback:

List of all members.

Public Types

typedef std::vector
< osg::observer_ptr< Terrain > > 
ObserverTerrainList

Public Member Functions

 QuickReleaseGLCallback (Terrain *terrain, osg::Camera::DrawCallback *next)
virtual void operator() (osg::RenderInfo &renderInfo) const

Public Attributes

osg::observer_ptr< Terrain_terrain

Detailed Description

Definition at line 66 of file Terrain.cpp.


Member Typedef Documentation

typedef std::vector< osg::observer_ptr<Terrain> > anonymous_namespace{Terrain.cpp}::QuickReleaseGLCallback::ObserverTerrainList

Definition at line 68 of file Terrain.cpp.


Constructor & Destructor Documentation

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

Definition at line 70 of file Terrain.cpp.

            : NestingDrawCallback(next), _terrain(terrain) { }

Member Function Documentation

virtual void anonymous_namespace{Terrain.cpp}::QuickReleaseGLCallback::operator() ( osg::RenderInfo &  renderInfo) const [inline, virtual]

Reimplemented from anonymous_namespace{Terrain.cpp}::NestingDrawCallback.

Definition at line 73 of file Terrain.cpp.

        {
            osg::ref_ptr<Terrain> terrainSafe = _terrain.get();
            if ( terrainSafe.valid() )
            {
                terrainSafe->releaseGLObjectsForTiles( renderInfo.getState() );
            }
            dispatch( renderInfo );
        }

Member Data Documentation

osg::observer_ptr<Terrain> anonymous_namespace{Terrain.cpp}::QuickReleaseGLCallback::_terrain

Definition at line 83 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