summaryrefslogtreecommitdiffstats
path: root/examples/examples.pro
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2014-09-21 12:17:21 +0100
committerSean Harmer <sean.harmer@kdab.com>2014-09-21 16:59:33 +0200
commit6d9febedb5b734541c037521c39f705c0fdbbc95 (patch)
treead2a7ee57ed73d21c66a9e38fdec5cbcc1d7a9be /examples/examples.pro
parentbb7d6c2b10b291a93b04dc9a1753a6eec29b68c7 (diff)
Add an example to exercise tessellation shader support
Also extended Renderer and friends to support setting the number of vertices per patch with glPathParameteri(GL_PATCH_VERTICES, n). To support this QMeshData now also stores the vertices per patch. This demonstrates how to tessellate using quad tessellation mode. Follow-up commits will add objects to show triangle and isoline modes. Change-Id: I68afb31815db430d0b4d8d9cc525efcfb9a216fc Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/examples.pro')
-rw-r--r--examples/examples.pro7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/examples.pro b/examples/examples.pro
index c6abffcc4..6a1703e48 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -47,6 +47,10 @@ src_wireframe.subdir = $$PWD/wireframe
src_wireframe.target = sub-wireframe
src_wireframe.depends = src_exampleresources
+src_tessellationmodes.subdir = $$PWD/tessellation-modes
+src_tessellationmodes.target = sub-tessellationmodes
+src_tessellationmodes.depends = src_exampleresources
+
SUBDIRS += \
src_exampleresources \
src_simpleqml \
@@ -58,7 +62,8 @@ SUBDIRS += \
src_toruscpp \
src_bigmodelqml \
src_deferredrenderer \
- src_wireframe
+ src_wireframe \
+ src_tessellationmodes
# TODO Port the old examples to new APIs
#SUBDIRS += qt3d