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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user