Commit Graph

75 Commits

Author SHA1 Message Date
vurtun 2cedc57f5d Extend default draw command API
The default draw command buffering API now supports filled and
outlined shapes as well as two additional commands: polygon and
polyline. While zahnrad only requires a small number of basic
filled draw command shapes to actual function the underlying canvas
to convert from draw commands to vertex buffer commands allows
for lot more. So the gap should now be filled and drawing more
complex custom is now a little bit easier. I thought about adding a
path drawing API to the draw command API but decided it is not
worth the hassle, at least for now.
2016-03-16 13:01:47 +01:00
vurtun 32277127ac Added color picker widget
An additional widget for picking a color was added. Color picker use
the new draw call command multicolor rectangle which is not supported
everywhere. All demos using the optional vertex buffer output can use
the color picker without problems. Other platforms need to support
a drawing function or do not it.
2016-03-04 17:13:30 +01:00
vurtun c19a6a1bbe Finished experimental recording features
First version supporting the new record and play feature which allows
to `record` a number of API calls and lets you replay them at a later
point of time. This could be the basis for creating an Editor and
other more advanced features. While I tested the functionality there
still could be a number of bugs and I would recommend waiting
until all bugs are removed before using it.
2016-03-01 18:48:19 +01:00
vurtun f727058044 Fixed rgb->hsv conversion and extended granularity
The conversion function from rgb color to hsv color was bugged and
provided wrong values. It is now fixed and hopefully is now correct.
In addition a number of utility functions have been added to make
conversion between user provided color format and zahnrads own
format easier.
2016-02-15 02:19:09 +01:00
vurtun fdbcc52629 Merged examples and demos into one (first step)
While dividing previously spared me from a lot of work and problems
it is probably best to have everything working for every or as many
platforms as possible. Some platforms fail to provide good ways
to support everything (e.g.:X11 does not have pixmap clipping with
different width/height or alpha-blending) but all OpenGL demos
outside allegro (needs some additional work) should be able to run.
2016-02-11 23:29:02 +01:00
vurtun 5c8cc7228c removed tab input code 2016-01-26 21:38:54 +01:00
vurtun 9757f59c66 Finally fixed the oldest bug in this library
For now month I failed to find out why text calculation was
bugged for zahnrads own vertex buffer font. I finally found
the problem and fixed it.
2016-01-26 14:56:28 +01:00
vurtun 04d0b75108 split draw rectangle function 2016-01-07 16:00:25 +01:00
vurtun 86d00cbe6e added rounding to x11 demo 2016-01-06 18:00:25 +01:00
vurtun fd51ad4488 fixed text input for X11 & fixed utf8 edit box 2016-01-06 15:08:55 +01:00
vurtun 9a52c86548 removed clang -Weverything warnings 2016-01-05 12:54:23 +01:00
vurtun 138f6b3af5 some cleaning up 2016-01-03 20:23:12 +01:00
vurtun 080b59dcc2 removed sin & cos dependency 2016-01-03 01:47:01 +01:00
vurtun bcabde32ab update LICENSE year 2016-01-01 09:51:35 +01:00
vurtun 20b9d3cd45 massive rewrite 2015-12-30 16:31:08 +01:00
vurtun f43e3ea5e9 uses higher default compiler optimization #30 2015-12-12 15:57:56 +01:00
vurtun 2b2b33fc0b added multiline editbox + fixed some bugs 2015-12-01 00:21:34 +01:00
vurtun c3f02270dd updated demos 2015-11-21 12:20:36 +01:00
vurtun 1aac008546 rewrote demo for better examples 2015-11-05 19:47:04 +01:00
vurtun b0af454098 added zr_input_unicode as another text input method 2015-10-14 09:28:15 +02:00
vurtun bf426606f3 moved space key into text input 2015-10-13 13:03:30 +02:00
vurtun cb65e13381 removed unused variable in scrollbarh + moved demo helper macros into demo.c 2015-10-05 23:38:21 +02:00
vurtun 10aaf0ac31 added tooltips + helper function to peek next widget bounds 2015-09-25 14:06:44 +02:00
vurtun 664463de78 removed binaries 2015-09-23 11:18:15 +02:00
vurtun 273e337895 restructured demo 2015-09-23 11:16:03 +02:00