~ubuntu-branches/ubuntu/trusty/openscenegraph/trusty

« back to all changes in this revision

Viewing changes to OpenSceneGraph/include/osg/Fog

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-11-12 02:21:14 UTC
  • mfrom: (31.1.3 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131112022114-qaxfhdnhn88vnh10
Tags: 3.2.0~rc1-1ubuntu1
Fix deprecated url_feof.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
*/
13
13
 
48
48
namespace osg {
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
{
54
54
    public :
67
67
            _useRadialFog(fog._useRadialFog)    {}
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
73
73
        {
113
113
 
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
        {
122
122
            FOG_COORDINATE = GL_FOG_COORDINATE,
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; }
128
128