osgEarth 2.1.1
Defines | Functions

/home/cube/sources/osgearth/src/osgEarthFeatures/StencilVolumeNode.cpp File Reference

#include <osgEarthFeatures/StencilVolumeNode>
#include <osg/Stencil>
#include <osg/StencilTwoSided>
#include <osg/Depth>
#include <osg/Drawable>
#include <osg/CopyOp>
#include <osg/CullFace>
#include <osg/MatrixTransform>
#include <osg/Projection>
#include <osg/GLExtensions>
#include <osg/Geode>
#include <osg/Notify>
#include <osgUtil/Tessellator>
#include <algorithm>
Include dependency graph for StencilVolumeNode.cpp:

Go to the source code of this file.

Defines

#define ON_AND_PROTECTED   osg::StateAttribute::ON | osg::StateAttribute::PROTECTED
#define OFF_AND_PROTECTED   osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED
#define PARALLEL_EPSILON   0.01

Functions

static void tessellate (osg::Geometry *geom)

Define Documentation

#define OFF_AND_PROTECTED   osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED

Definition at line 35 of file StencilVolumeNode.cpp.

#define ON_AND_PROTECTED   osg::StateAttribute::ON | osg::StateAttribute::PROTECTED

Definition at line 34 of file StencilVolumeNode.cpp.

#define PARALLEL_EPSILON   0.01

Function Documentation

static void tessellate ( osg::Geometry *  geom) [static]

Definition at line 335 of file StencilVolumeNode.cpp.

{
    osgUtil::Tessellator tess;
    tess.setTessellationType( osgUtil::Tessellator::TESS_TYPE_GEOMETRY );
    tess.setWindingType( osgUtil::Tessellator::TESS_WINDING_ODD );
//    tess.setWindingType( osgUtil::Tessellator::TESS_WINDING_POSITIVE );
    tess.retessellatePolygons( *geom );
}

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines