Commit Graph

113 Commits

Author SHA1 Message Date
Alexandre Erwin Ittner
72e9496768 Use standard C compiler by default
Always use the standard compiler as defined by the environment
variable CC. User can set it when a different compiler if required
(e.g. CC=clang make)
2016-04-19 21:44:46 -03:00
vurtun
6b5a4f16e8 Merge branch 'fdb-osx-support' 2016-04-19 16:47:09 +02:00
Frederik De Bleser
da9899c618 Make examples work on OS X
All examples use GLFW, so we update the Makefile, remove OpenGL include
headers (GLFW will include them automatically) and conditionally set a
different shader version.
2016-04-19 13:49:07 +02:00
Bruce Mitchener
da46d536f9 Fix some typos. 2016-04-19 15:23:33 +07:00
vurtun
d7a9f14c1c Fixed some small bugs and added calc example
Fixed window movement for windows without header and some small
wrong calculation inside the panel layout code. In addition I
added another example implementing a simple calculator.
2016-04-15 20:13:50 +02:00
vurtun
b2c87ed7c0 Release Version 1.0
This is the first release version of nuklear (previously: zahnrad).
As for those who no the old version will notice: a lot has changed.

Most obvious should be the two biggest changes. First the name change
because I got critique that the name is hard to comprehend and
remember (understandable for non-germans) and the second is the
transistion from four files (zahnrad.h, zahnrad.c, stb_truetype
and stb_rect_pack) to one single header library file nuklear.h.
I am not 100% convinced that using a single header library is the
right choice here but so far I haven't encountered any problems.

Noticable should be as well that nuklear now directly embeds three
stb libraries: stb_truetype, stb_rect_pack and stb_textedit. Like
in previous versions the first two are optional and the library
can be compiled without. stb_textedit on the other hand powers
the text edit implementation for single as well as multiline
text manipulation. The text edit implementation is still relative
new and untested so you can expect some bugs I have not found yet.

In the demo department a lot changed as well. All platform demos
now don't compile one big demo but instead contain a simple
demo and small abstraction layer over the platform. Main benefit is
better understandablity improved ease of use. The old demo
is now split up and transfered into the example folder while each part
is self contained and compileable. (All examples use glfw I don't now
if this is the best platform but it is at least the simplest.
I also removed the apple demo because I don't have an apple system
and cannot make sure the new version runs with the old version.

Finally a lot of small bugs have been fixed as well as bugs found by
clang analyzer and coverity.
2016-04-14 16:26:15 +02: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
c85ed0c50c Restructered context functions for better clarity 2016-02-02 22:30:22 +01:00
vurtun
19a49780f7 Added event based updates back into examples
After some thought I decided to turn all examples back into
event based updated UIs. While it is possible to run all
examples without vsync with good performance it is probably best to
keep the examples in a accessable format which makes it possible
to be just by as many people as possible.
2016-01-26 22:52:09 +01:00
vurtun
0970db1088 Removed event based updates for examples
Previously all examples used an event based update scheme since
they caused performance issues on Linux. Further testing revealed
that vsync + tripple buffering causes problems and just needs to be
turned off to smoothly run all examples.
2016-01-25 23:42:21 +01:00
vurtun
c98153b59a removed need to pass string id to combobox 2016-01-20 19:36:40 +01:00
vurtun
70598bc887 updated contextual in example/demo 2016-01-09 13:59:34 +01:00
vurtun
183013231b extended demo + fixed some bugs 2016-01-05 17:24:45 +01:00
vurtun
9a52c86548 removed clang -Weverything warnings 2016-01-05 12:54:23 +01:00
vurtun
8945d97eae updated demo and fixed some small bugs 2016-01-04 21:34:48 +01:00
vurtun
1be6475e5b fixed #35 2016-01-04 00:19:38 +01:00
vurtun
333d5f33e7 fixed typo #34 no3,4 2016-01-03 23:26:07 +01:00
vurtun
138f6b3af5 some cleaning up 2016-01-03 20:23:12 +01:00
vurtun
ffe8a98d62 fixed contextual 2016-01-03 13:36:25 +01:00
vurtun
080b59dcc2 removed sin & cos dependency 2016-01-03 01:47:01 +01:00
vurtun
7c37c06e4c event-based updates round.2 2016-01-02 14:54:45 +01:00
vurtun
1f0004f274 changed examples to event-based updates 2016-01-02 13:35:16 +01:00
vurtun
bcabde32ab update LICENSE year 2016-01-01 09:51:35 +01:00
vurtun
d10862e866 added grid window back into demo 2015-12-31 00:37:17 +01:00
vurtun
20b9d3cd45 massive rewrite 2015-12-30 16:31:08 +01:00
vurtun
daae1b8804 major update no.1 2015-12-17 16:48:35 +01:00
vurtun
847645a29c removed unused variable 2015-12-15 13:33:14 +01:00
vurtun
f43e3ea5e9 uses higher default compiler optimization #30 2015-12-12 15:57:56 +01:00
vurtun
a7780551e7 made piemenu variables clearer 2015-12-12 11:53:38 +01:00
vurtun
ffc6d32cd9 removed debug code 2015-12-12 10:59:38 +01:00
vurtun
fb4e6c3992 fixed piemenu selection 2015-12-12 10:43:39 +01:00
vurtun
afb9c3b45c fixed contextual menu 2015-12-12 01:36:11 +01:00
vurtun
f80e43dff4 removed unused code 2015-12-12 00:56:23 +01:00
vurtun
307a94b499 added piemenu to example/demo 2015-12-12 00:55:21 +01:00
vurtun
6888141745 simplified icon handling 2015-12-10 20:24:19 +01:00
vurtun
b1011f457f updated examples to changes 2015-12-09 22:58:13 +01:00
vurtun
8125b4bb4c fixed menu 2015-12-09 15:26:33 +01:00
vurtun
3eeacea7b6 updated example + demo 2015-12-08 16:25:56 +01:00
vurtun
6db11ac7ce added icon/symbol menus 2015-12-07 13:46:29 +01:00
Yasuhiro Matsumoto
7be9ee3448 fix Makefile for windows 2015-11-26 23:42:01 +09:00
Yasuhiro Matsumoto
2495b03b30 win32 porting 2015-11-26 23:41:32 +09:00
vurtun
8c61671141 removed unused variables 2015-11-25 18:12:32 +01:00
vurtun
61a56a48c4 added additional more clean demo version 2015-11-24 17:47:52 +01:00
vurtun
19e4080537 changed window header API for less draw calls 2015-11-22 20:03:42 +01:00
vurtun
61a527f0d7 updated examples to new font callback 2015-11-22 01:20:39 +01:00
vurtun
b1f35976ca update examples 2015-11-19 21:39:23 +01:00
vurtun
fb43cc83ab added group border 2015-11-08 11:02:37 +01:00
vurtun
cb2e9c2f41 updated examples 2015-11-05 19:39:14 +01:00
vurtun
f88e92dd43 fixed text overdraw 2015-10-27 12:05:22 +01:00
vurtun
ddd8e41f37 removed option group widget 2015-10-24 20:37:37 +02:00
vurtun
ffb4e28bc5 added splitter to file browser 2015-10-24 16:00:26 +02:00
vurtun
a90df46eb5 Revert "removed tiled layout + added splitter to file browser example"
This reverts commit 5b07222968.
2015-10-24 15:57:26 +02:00
vurtun
5b07222968 removed tiled layout + added splitter to file browser example 2015-10-24 15:51:20 +02:00
vurtun
2a4c10c012 set file browser path as menubar 2015-10-23 23:40:13 +02:00
vurtun
c2dacf23cc added linux file selector example 2015-10-23 22:55:42 +02:00
vurtun
d050b444ef removed space event in nodedit example 2015-10-17 01:00:14 +02:00
vurtun
7223a1ee23 removed logic gate example 2015-10-10 22:16:01 +02:00
vurtun
8d46169e6a added logic gate editor example 2015-10-10 17:23:24 +02:00
vurtun
2341c37ce5 update node editor example to changes 2015-10-01 16:26:05 +02:00
vurtun
fb7d6536b3 fixed #14 and fixed #15 2015-09-30 10:19:19 +02:00
vurtun
e992b1f535 added node editor example 2015-09-27 21:02:38 +02:00
vurtun
653d19a7e2 switched curve/quad command argument list 2015-09-04 11:51:28 +02:00
vurtun
a1cf25306d added bare bone node editor example 2015-08-31 17:36:39 +02:00