Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2004 Robert Osfield
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2004 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
@@ -33,7 +33,7 @@ class OSG_EXPORT Material : public StateAttribute
|
||||
public :
|
||||
|
||||
Material();
|
||||
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
|
||||
Material(const Material& mat,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
|
||||
StateAttribute(mat,copyop),
|
||||
@@ -55,7 +55,7 @@ class OSG_EXPORT Material : public StateAttribute
|
||||
_shininessBack(mat._shininessBack) {}
|
||||
|
||||
META_StateAttribute(osg, Material, MATERIAL);
|
||||
|
||||
|
||||
/** return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
@@ -108,7 +108,7 @@ class OSG_EXPORT Material : public StateAttribute
|
||||
SPECULAR = GL_SPECULAR,
|
||||
EMISSION = GL_EMISSION,
|
||||
AMBIENT_AND_DIFFUSE = GL_AMBIENT_AND_DIFFUSE,
|
||||
OFF
|
||||
OFF
|
||||
};
|
||||
|
||||
inline void setColorMode(ColorMode mode) { _colorMode = mode; }
|
||||
@@ -122,27 +122,27 @@ class OSG_EXPORT Material : public StateAttribute
|
||||
const Vec4& getDiffuse(Face face) const;
|
||||
inline bool getDiffuseFrontAndBack() const { return _diffuseFrontAndBack; }
|
||||
|
||||
/** Set specular value of specified face(s) of the material,
|
||||
/** Set specular value of specified face(s) of the material,
|
||||
* valid specular[0..3] range is 0.0 to 1.0.
|
||||
*/
|
||||
void setSpecular( Face face, const Vec4& specular );
|
||||
|
||||
|
||||
/** Get the specular value for specified face. */
|
||||
const Vec4& getSpecular(Face face) const;
|
||||
|
||||
|
||||
/** Return whether specular values are equal for front and back faces
|
||||
* or not.
|
||||
*/
|
||||
inline bool getSpecularFrontAndBack() const { return _specularFrontAndBack; }
|
||||
|
||||
/** Set emission value of specified face(s) of the material,
|
||||
/** Set emission value of specified face(s) of the material,
|
||||
* valid emission[0..3] range is 0.0 to 1.0.
|
||||
*/
|
||||
void setEmission( Face face, const Vec4& emission );
|
||||
|
||||
|
||||
/** Get the emission value for specified face. */
|
||||
const Vec4& getEmission(Face face) const;
|
||||
|
||||
|
||||
/** Return whether emission values are equal for front and back faces
|
||||
* or not.
|
||||
*/
|
||||
@@ -152,15 +152,15 @@ class OSG_EXPORT Material : public StateAttribute
|
||||
* valid shininess range is 0.0 to 128.0.
|
||||
*/
|
||||
void setShininess(Face face, float shininess );
|
||||
|
||||
|
||||
/** Get the shininess value for specified face. */
|
||||
float getShininess(Face face) const;
|
||||
|
||||
|
||||
/** Return whether shininess values are equal for front and back faces
|
||||
* or not.
|
||||
*/
|
||||
inline bool getShininessFrontAndBack() const { return _shininessFrontAndBack; }
|
||||
|
||||
|
||||
/** Set the alpha value of ambient, diffuse, specular and emission
|
||||
* colors of specified face, to 1-transparency.
|
||||
* Valid transparency range is 0.0 to 1.0.
|
||||
|
||||
Reference in New Issue
Block a user