qtdeclarative/examples/quick/shapes
Eskil Abrahamsen Blomfeldt be813b9955 Introduce hardware accelerated curve renderer for Shapes
This implements the Loop/Blinn algorithm for quadratic curves
as an optional backend for Qt Quick Shapes, basically distance
fields where the distance to curves are calculated in the
fragment shader.

This means cubic curves are approximated, which will give
varying results, but for many shapes (such as text) this is
efficient and means the shapes can be zoomed indefinitely
while still retaining curvature as well as anti-aliasing
working without MSAA.

Preliminary results give some frame rate improvements
compared to doing MSAA and GeometryRenderer, but the major
improvement is that you can get smooth curves at any zoom
level without re-triangulating the shape.

Note that the renderer currently does not do antialiasing
for straight lines. This would still require MSAA, but at
a lower cost than for GeometryRenderer since there are
much fewer triangles. Adding AA here as well is work in
progress.

Task-number: QTBUG-104122
Done-with: Paul Olav Tvete <paul.tvete@qt.io>
Done-with: Eirik Aavitsland <eirik.aavitsland@qt.io>
Done-with: Amr Elsayed <amr.elsayed@qt.io>
Change-Id: I6b4a1103546fbdfe760906f7a183101f8eedb9d3
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
2023-05-26 14:45:21 +02:00
..
doc Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
CMakeLists.txt Examples: Use versioned CMake targets for Qt modules 2023-05-02 12:12:35 +02:00
arcDirection.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
arcRotation.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
capStyles.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
clippedtigers.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
cubicCurve.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
dashPattern.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
ellipticalArcs.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
fillRules.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
gradientSpreadModes.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
interactive.qml Introduce hardware accelerated curve renderer for Shapes 2023-05-26 14:45:21 +02:00
joinStyles.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
largeOrSmallArc.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
linearGradient.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
main.cpp Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
main.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
quadraticCurve.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
radialGradient.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
sampling.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
shapegallery.qml Introduce hardware accelerated curve renderer for Shapes 2023-05-26 14:45:21 +02:00
shapes.pro Clean up shapes example 2021-09-01 11:49:06 +02:00
shapes.qrc Adapt examples to AUTO_RESOURCE_PREFIX 2022-06-24 08:45:43 +02:00
strokeOrFill.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
tapableTriangle.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
text.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00
tiger.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
tigerLoader.qml Shapes example: adhere to guidelines 2023-03-10 10:08:14 +01:00