From Ravi Mathur, "Here is an update to BlendEquation that adds checking for the

SGIX_blend_alpha_minmax and EXT_blend_logic_op extensions.  It is
tested with the osgblendequation example.  If the extensions are not
supported, a WARN level notification is generated."
This commit is contained in:
Robert Osfield
2005-10-28 13:18:09 +00:00
parent ab1bd48511
commit fa5ab64c94
2 changed files with 25 additions and 0 deletions

View File

@@ -107,6 +107,8 @@ class OSG_EXPORT BlendEquation : public StateAttribute
void setBlendEquationSupported(bool flag) { _isBlendEquationSupported=flag; }
bool isBlendEquationSupported() const { return _isBlendEquationSupported; }
bool isSGIXMinMaxSupported() const { return _isSGIXMinMaxSupported; }
bool isLogicOpSupported() const { return _isLogicOpSupported; }
void setBlendEquationProc(void* ptr) { _glBlendEquation = ptr; }
void glBlendEquation(GLenum mode) const;
@@ -116,6 +118,8 @@ class OSG_EXPORT BlendEquation : public StateAttribute
~Extensions() {}
bool _isBlendEquationSupported;
bool _isSGIXMinMaxSupported;
bool _isLogicOpSupported;
void* _glBlendEquation;