Changeset 13041 for OpenSceneGraph/trunk/include/osg/BlendFunc
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/BlendFunc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/BlendFunc
r11808 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 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 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 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 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 */ … … 69 69 70 70 BlendFunc(); 71 71 72 72 BlendFunc(GLenum source, GLenum destination); 73 73 BlendFunc(GLenum source, GLenum destination, GLenum source_alpha, GLenum destination_alpha); … … 82 82 83 83 META_StateAttribute(osg, BlendFunc,BLENDFUNC); 84 84 85 85 /** Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */ 86 86 virtual int compare(const StateAttribute& sa) const … … 147 147 void setSourceAlpha(GLenum source) { _source_factor_alpha = source; } 148 148 inline GLenum getSourceAlpha() const { return _source_factor_alpha; } 149 149 150 150 void setDestination(GLenum destination) { _destination_factor = _destination_factor_alpha = destination; } 151 151 inline GLenum getDestination() const { return _destination_factor; } … … 160 160 /** Encapsulates queries of extension availability, obtains extension 161 161 * function pointers, and provides convenience wrappers for 162 * calling extension functions. */ 162 * calling extension functions. */ 163 163 class OSG_EXPORT Extensions : public osg::Referenced 164 164 {
