46 "This is a two-passes effect; the first pass renders the subgraph as usual "
47 "while the second pass switches to wireframe mode, sets up lighting and "
48 "material to obtain a fixed (user-defined) color and then renders the subgraph.\n"
49 "This effect uses the PolygonOffset attribute to avoid Z-fighting, so it "
50 "requires at least OpenGL version 1.1.",
91 return _wf_lw->getWidth();
Vec4f Vec4
Definition Vec4:21
The osgFX library is a NodeKit that extends the core scene graph to provide a special effects framewo...
Definition AnisotropicLighting:25
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
@ FRONT_AND_BACK
Definition Material:102
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
META_Effect(osgFX, Scribe, "Scribe", "This is a two-passes effect; the first pass renders the subgraph as usual " "while the second pass switches to wireframe mode, sets up lighting and " "material to obtain a fixed (user-defined) color and then renders the subgraph.\n" "This effect uses the PolygonOffset attribute to avoid Z-fighting, so it " "requires at least OpenGL version 1.1.", "Marco Jez")
void setWireframeLineWidth(float w)
set the wireframe line width
Definition Scribe:94
Scribe(const Scribe ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
float getWireframeLineWidth() const
get the wireframe line width
Definition Scribe:89
Scribe & operator=(const Scribe &)
Definition Scribe:68
virtual ~Scribe()
Definition Scribe:67
const osg::Vec4 & getWireframeColor() const
get the wireframe color
Definition Scribe:79
bool define_techniques()
abstract method to be implemented in derived classes; its purpose if to create the techniques that ca...
void setWireframeColor(const osg::Vec4 &color)
set the wireframe color
Definition Scribe:84
#define OSGFX_EXPORT
Definition Export:27