summaryrefslogtreecommitdiffstats
path: root/src/render/renderers/opengl/graphicshelpers/graphicshelpergl2.cpp
diff options
context:
space:
mode:
authorJuan Jose Casafranca <juan.casafranca@kdab.com>2018-07-16 11:33:24 +0200
committerJuan José Casafranca <juan.casafranca@kdab.com>2019-02-12 11:20:48 +0000
commit22d24c182687ef4334582d5e35744388a7f00f53 (patch)
tree2a8fa3d9b30671ca5fa81b68f6ae737bfd97da81 /src/render/renderers/opengl/graphicshelpers/graphicshelpergl2.cpp
parent6e0a8452d6b37175b53394a31af5b32aa05c7285 (diff)
Add QRasterMode render state
QRasterMode allows a user to change the raster mode from fill to lines or points Change-Id: If96848e38ac4b5a615040b3bae2dec38a03cb031 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src/render/renderers/opengl/graphicshelpers/graphicshelpergl2.cpp')
-rw-r--r--src/render/renderers/opengl/graphicshelpers/graphicshelpergl2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/renderers/opengl/graphicshelpers/graphicshelpergl2.cpp b/src/render/renderers/opengl/graphicshelpers/graphicshelpergl2.cpp
index 6b7c3661e..d6dad7de2 100644
--- a/src/render/renderers/opengl/graphicshelpers/graphicshelpergl2.cpp
+++ b/src/render/renderers/opengl/graphicshelpers/graphicshelpergl2.cpp
@@ -299,6 +299,11 @@ void GraphicsHelperGL2::deleteSync(void *)
qWarning() << "Fences are not supported by OpenGL 2.0 (since OpenGL 3.2)";
}
+void GraphicsHelperGL2::rasterMode(GLenum faceMode, GLenum rasterMode)
+{
+ m_funcs->glPolygonMode(faceMode, rasterMode);
+}
+
void GraphicsHelperGL2::blendEquation(GLenum mode)
{
m_funcs->glBlendEquation(mode);