181 Commits

Author SHA1 Message Date
Uwe Rathmann
296b2f368a code simplified/harmonized 2022-12-05 13:05:13 +01:00
Uwe Rathmann
125fe1e9f4 QskBoxNode renamed to QskBoxRectangleNode, QskShadedBoxNode renamed to QskBoxNode 2022-12-05 12:34:08 +01:00
Uwe Rathmann
d82f3d08ff calculating vertexes manually instead of using the expensive painter
path triangulator
2022-12-05 11:39:09 +01:00
Uwe Rathmann
4888fcc5ba crash fixed 2022-12-05 11:18:35 +01:00
Uwe Rathmann
f4275c5098 using the more efficient QVector< qreal > instead of QPainterPath 2022-12-04 21:13:14 +01:00
Uwe Rathmann
4dddb8abf5 unused method removed 2022-12-04 21:13:00 +01:00
Uwe Rathmann
7abd90b2dd Finally all types of gradients can be set to boxes.
For radial/conic and tilted linear gradients shape/border metrics
will be translated into a QPainterPath to be fed into the triangulation.
However the borders remain being done by QskBoxRenderer.
2022-12-04 19:54:05 +01:00
Uwe Rathmann
38cbefac78 using QskGradient::firstColor 2022-12-04 19:53:25 +01:00
Uwe Rathmann
7eecc63571 QPainterPath support added 2022-12-04 19:52:07 +01:00
Uwe Rathmann
0925b40b7a QGradient::Spread -> QskGradient::Spread 2022-12-01 12:03:36 +01:00
Uwe Rathmann
974e7372dd code moved to QskColorRamp 2022-11-16 17:26:50 +01:00
Uwe Rathmann
0f028e4239 qsb files recreated 2022-11-16 16:00:36 +01:00
Uwe Rathmann
ff0599686d unused parameters removed 2022-11-16 14:33:10 +01:00
Uwe Rathmann
18b0594cd6 internal API simplyfied 2022-11-16 14:23:47 +01:00
Uwe Rathmann
615e0016c2 working more with RGBA values instead of QColor 2022-11-16 13:46:37 +01:00
Uwe Rathmann
70f4d28285 using QRgb instead of QColor 2022-11-14 09:01:07 +01:00
Uwe Rathmann
b140d1b30a QskGradientDirection introduced - no more classes derived from
QskGradient
2022-11-13 17:22:09 +01:00
Uwe Rathmann
a658a2a4e4 palette -> colorRamp 2022-11-13 11:05:53 +01:00
Uwe Rathmann
ad67d035f3 new QskGradient 2022-10-31 14:42:08 +01:00
Uwe Rathmann
bad4f90a16 if/else cascade reordered 2022-10-25 18:19:32 +02:00
Uwe Rathmann
506dd4f60c working towards introducing new type of gradients 2022-10-25 18:17:21 +02:00
Uwe Rathmann
e67b0b385a allowing gradient stops that do not start/end with 0.0/1.0 ( like
QGradient )
2022-10-24 17:29:39 +02:00
Uwe Rathmann
03ce740b29 towards improved QskGradient 2022-10-24 16:40:47 +02:00
Uwe Rathmann
99132276fc first adjustments for QskGradient improvements 2022-10-24 16:02:46 +02:00
Uwe Rathmann
4a04a27d0d making code more readable 2022-10-21 16:49:05 +02:00
Uwe Rathmann
f0c9548b4c using QskGradient::isVisisble() instead of isValid() 2022-10-21 16:46:59 +02:00
Uwe Rathmann
b1f63999c6 preparations for gradient updates 2022-10-20 09:29:20 +02:00
Uwe Rathmann
d5ba7d9504 QskGradient::qtStops added 2022-10-20 09:22:11 +02:00
Uwe Rathmann
4ca794f7db linear shaders modified 2022-10-18 17:37:31 +02:00
Uwe Rathmann
0d49820cad bad memory allocation size fixed 2022-10-18 17:36:55 +02:00
Uwe Rathmann
618a97235e auto keyword 2022-10-14 17:13:57 +02:00
Uwe Rathmann
6fef215310 using QskGradient::hash 2022-10-14 17:13:33 +02:00
Uwe Rathmann
51a7e4e589 Using our own gradient shaders ( no dependencies from quickshapes
anymore ). shapes/Gradient has not yet been merged into QskGradient
and we still have some stupid conversions to QGradient in the way.
2022-10-13 19:39:57 +02:00
Uwe Rathmann
9d640d3f06 Qt5 fixes 2022-10-07 16:17:52 +02:00
Uwe Rathmann
1c98c90e8c radial gradints fixed 2022-10-07 14:32:20 +02:00
Uwe Rathmann
477a284cfa more expressive API 2022-10-05 09:38:35 +02:00
Uwe Rathmann
8052074c42 Conical->Conic ( following CSS naming ) 2022-10-04 12:46:17 +02:00
Uwe Rathmann
f031e78a7b storing path and transformation to know when geometry updates are
necessary
2022-09-30 15:23:55 +02:00
Uwe Rathmann
ee7dbb300a scaling of pens moved to QskStrokeNode 2022-09-30 15:09:52 +02:00
Uwe Rathmann
cd19b047ab setting an initial material, so that the node can be inserted into the
scene grapf without rnning into Qt assertions
2022-09-30 15:08:19 +02:00
Uwe Rathmann
45e59d6c10 wip 2022-09-29 17:26:15 +02:00
Uwe Rathmann
f798f2228c more details around shapes 2022-09-29 16:50:46 +02:00
Uwe Rathmann
634ca3bed3 smarter matrial updates 2022-09-29 12:40:22 +02:00
Uwe Rathmann
b138d04053 shaders for gradients ( QGradient variations ) added 2022-09-28 20:14:10 +02:00
Uwe Rathmann
12e462e657 filling the vertex buffer fixed 2022-09-26 17:50:07 +02:00
Uwe Rathmann
60efe3649b QSK_EXPORT added 2022-09-26 17:49:47 +02:00
Uwe Rathmann
3ccaa113fd QskShapeNode introduced ( completely untestest, without gradients in the
first version )
2022-09-26 14:44:23 +02:00
Uwe Rathmann
96906e04ca code reorganized 2022-09-26 14:44:06 +02:00
Uwe Rathmann
b2d7d77640 QskStrokeNode introduced ( untested so far ) 2022-09-23 17:49:49 +02:00
Uwe Rathmann
ab34af0b03 include changed 2022-09-23 17:49:13 +02:00