#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> | |
| T | next (T t) |
| template<typename Chunk> | |
| Chunk::Ptr | getOrAddChunk (ChunkMaterialPtr cm, Type2Type< Chunk >=Type2Type< Chunk >()) |
| T next | ( | T | t | ) | [inline] |
Definition at line 64 of file OSGMakeTransparentGraphOp.cpp.
Referenced by osg::HalfEdgeGraph::calcOptPrim(), osg::NodeGraph::Node::release(), osg::MergeGraphOp::traverse(), and osg::MaterialMergeGraphOp::traverse().
| 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 }
1.5.5