summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicshelpergl4.cpp
diff options
context:
space:
mode:
authorWieland Hagen <wieland.hagen@kdab.com>2016-01-14 17:55:03 +0100
committerWieland Hagen <wieland.hagen@kdab.com>2016-01-14 21:52:04 +0000
commit9d3b3d353aec6f410fef428e8104e59b9fe0c34d (patch)
tree3e11d38df46b2f2e0f0dc7a5de4419def1297b6b /src/render/graphicshelpers/graphicshelpergl4.cpp
parentf37155d134742e08b2aa42480fa520412da18063 (diff)
Added glEnablei, glDisablei, glBlendFuncSeparatei
Added glEnablei, glDisablei, glBlendFuncSeparate to GraphicsHelpers and GraphicsContext Task-number: QTBUG-50005 Change-Id: I01c3a6e26fde9756d62694235ba0c1a0fe5155ae Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicshelpergl4.cpp')
-rw-r--r--src/render/graphicshelpers/graphicshelpergl4.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelpergl4.cpp b/src/render/graphicshelpers/graphicshelpergl4.cpp
index d97557bdc..ca83589a4 100644
--- a/src/render/graphicshelpers/graphicshelpergl4.cpp
+++ b/src/render/graphicshelpers/graphicshelpergl4.cpp
@@ -262,6 +262,11 @@ void GraphicsHelperGL4::blendFunci(GLuint buf, GLenum sfactor, GLenum dfactor)
m_funcs->glBlendFunci(buf, sfactor, dfactor);
}
+void GraphicsHelperGL4::blendFuncSeparatei(GLuint buf, GLenum sRGB, GLenum dRGB, GLenum sAlpha, GLenum dAlpha)
+{
+ m_funcs->glBlendFuncSeparatei(buf, sRGB, dRGB, sAlpha, dAlpha);
+}
+
void GraphicsHelperGL4::alphaTest(GLenum, GLenum)
{
qCWarning(Render::Rendering) << "AlphaTest not available with OpenGL 3.2 core";
@@ -943,6 +948,16 @@ void GraphicsHelperGL4::pointSize(bool programmable, GLfloat value)
}
}
+void GraphicsHelperGL4::enablei(GLenum cap, GLuint index)
+{
+ m_funcs->glEnablei(cap, index);
+}
+
+void GraphicsHelperGL4::disablei(GLenum cap, GLuint index)
+{
+ m_funcs->glDisablei(cap, index);
+}
+
QSize GraphicsHelperGL4::getRenderBufferDimensions(GLuint renderBufferId)
{
GLint width = 0;