Changeset 13041 for OpenSceneGraph/trunk/include/osg/Fog
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Fog (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Fog
r11808 r13041 1 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 */ … … 49 49 50 50 51 /** Fog - encapsulates OpenGL fog state. */ 51 /** Fog - encapsulates OpenGL fog state. */ 52 52 class OSG_EXPORT Fog : public StateAttribute 53 53 { … … 68 68 69 69 META_StateAttribute(osg, Fog,FOG); 70 70 71 71 /** return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.*/ 72 72 virtual int compare(const StateAttribute& sa) const … … 114 114 inline void setColor( const Vec4 &color ) { _color = color; } 115 115 inline const Vec4& getColor() const { return _color; } 116 116 117 117 inline void setUseRadialFog( bool useRadialFog ) { _useRadialFog = useRadialFog; } 118 118 inline bool getUseRadialFog() const { return _useRadialFog; } 119 119 120 120 enum FogCoordinateSource 121 121 { … … 123 123 FRAGMENT_DEPTH = GL_FRAGMENT_DEPTH 124 124 }; 125 125 126 126 inline void setFogCoordinateSource(GLint source) { _fogCoordinateSource = source; } 127 127 inline GLint getFogCoordinateSource() const { return _fogCoordinateSource; }
