OSGMakeTransparentGraphOp.cpp File Reference

#include <OSGBlendChunk.h>
#include <OSGMakeTransparentGraphOp.h>
#include <OSGPolygonChunk.h>
#include <OSGSimpleMaterial.h>
#include <OSGGLEXT.h>

Go to the source code of this file.

Namespaces

namespace  osg

Classes

struct  Type2Type< T >

Functions

template<typename T>
next (T t)
template<typename Chunk>
Chunk::Ptr getOrAddChunk (ChunkMaterialPtr cm, Type2Type< Chunk >=Type2Type< Chunk >())


Function Documentation

template<typename T>
T next ( t  )  [inline]

Definition at line 64 of file OSGMakeTransparentGraphOp.cpp.

Referenced by osg::MergeGraphOp::traverse(), and osg::MaterialMergeGraphOp::traverse().

00065 {
00066     return ++t;
00067 }

template<typename Chunk>
Chunk::Ptr getOrAddChunk ( ChunkMaterialPtr  cm,
Type2Type< Chunk >  = Type2Type<Chunk>() 
) [inline]

Definition at line 171 of file OSGMakeTransparentGraphOp.cpp.

References osg::beginEditCP(), and osg::endEditCP().

00172                                                                          {
00173     osg::StateChunkPtr stateChunk = cm->find(Chunk::getClassType());
00174     typename Chunk::Ptr chunk = Chunk::Ptr::dcast(stateChunk);
00175     if (!chunk) {
00176         chunk = Chunk::create();
00177         beginEditCP(cm);
00178         cm->addChunk(chunk);
00179         endEditCP(cm);
00180     }
00181     return chunk;
00182 }


Generated on Mon Mar 17 11:10:11 2008 for OpenSG by  doxygen 1.5.5