Changeset 13041 for OpenSceneGraph/trunk/include/osgFX/Scribe
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgFX/Scribe (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgFX/Scribe
r5328 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 26 26 27 27 /** 28 This is a two-passes effect; the first pass renders the subgraph as usual 29 while the second pass switches to wireframe mode, sets up lighting and 28 This is a two-passes effect; the first pass renders the subgraph as usual 29 while the second pass switches to wireframe mode, sets up lighting and 30 30 material to obtain a fixed (user-defined) color and then renders the subgraph. 31 This effect uses the PolygonOffset attribute to avoid Z-fighting, so it 31 This effect uses the PolygonOffset attribute to avoid Z-fighting, so it 32 32 requires at least OpenGL version 1.1. 33 33 */ … … 39 39 // effect class informations 40 40 META_Effect( 41 osgFX, 42 Scribe, 43 44 "Scribe", 45 41 osgFX, 42 Scribe, 43 44 "Scribe", 45 46 46 "This is a two-passes effect; the first pass renders the subgraph as usual " 47 47 "while the second pass switches to wireframe mode, sets up lighting and " … … 49 49 "This effect uses the PolygonOffset attribute to avoid Z-fighting, so it " 50 50 "requires at least OpenGL version 1.1.", 51 51 52 52 "Marco Jez"); 53 53 54 54 /** get the wireframe color */ 55 55 inline const osg::Vec4& getWireframeColor() const; 56 56 57 57 /** set the wireframe color */ 58 58 inline void setWireframeColor(const osg::Vec4& color); 59 59 60 60 /** get the wireframe line width */ 61 61 inline float getWireframeLineWidth() const; 62 62 63 63 /** set the wireframe line width */ 64 64 inline void setWireframeLineWidth(float w); … … 86 86 _wf_mat->setEmission(osg::Material::FRONT_AND_BACK, color); 87 87 } 88 88 89 89 inline float Scribe::getWireframeLineWidth() const 90 90 { 91 91 return _wf_lw->getWidth(); 92 92 } 93 93 94 94 inline void Scribe::setWireframeLineWidth(float w) 95 95 {
