Changeset 13041 for OpenSceneGraph/trunk/include/osg/BlendEquation
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/BlendEquation (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/BlendEquation
r11808 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 */ … … 54 54 55 55 BlendEquation(); 56 56 57 57 BlendEquation(Equation equation); 58 58 … … 66 66 67 67 META_StateAttribute(osg, BlendEquation,BLENDEQUATION); 68 68 69 69 /** Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */ 70 70 virtual int compare(const StateAttribute& sa) const … … 100 100 /** Encapsulates queries of extension availability, obtains extension 101 101 * function pointers, and provides convenience wrappers for 102 * calling extension functions. */ 102 * calling extension functions. */ 103 103 class OSG_EXPORT Extensions : public osg::Referenced 104 104 { … … 107 107 108 108 Extensions(const Extensions& rhs); 109 109 110 110 void lowestCommonDenominator(const Extensions& rhs); 111 111 112 112 void setupGLExtensions(unsigned int contextID); 113 113 … … 116 116 bool isSGIXMinMaxSupported() const { return _isSGIXMinMaxSupported; } 117 117 bool isLogicOpSupported() const { return _isLogicOpSupported; } 118 118 119 119 void glBlendEquation(GLenum mode) const; 120 120 void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) const; … … 123 123 124 124 ~Extensions() {} 125 125 126 126 typedef void (GL_APIENTRY * GLBlendEquationProc)(GLenum mode); 127 127 typedef void (GL_APIENTRY * GLBlendEquationSeparateProc)(GLenum modeRGB, GLenum modeAlpha); … … 131 131 bool _isSGIXMinMaxSupported; 132 132 bool _isLogicOpSupported; 133 133 134 134 GLBlendEquationProc _glBlendEquation; 135 135 GLBlendEquationSeparateProc _glBlendEquationSeparate; 136 136 }; 137 137 138 138 /** Returns the Extensions object for the given context. 139 139 * If createIfNotInitalized is true and the Extensions object doesn't
