Commit Graph

560 Commits

Author SHA1 Message Date
Brain Developer
721b3755f4
I removed an additional #include <math.h>
I found an additional "#include <math.h>" so I removed it.
Thinking that it was additional.
2018-10-22 21:10:01 +05:30
Vincent Torri
1fdf7828af demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
Micha Mettke
4ce3b6a0b3
Merge pull request #701 from buserror/fix-out-of-bound-access
overview.c: Fix an out of bound access
2018-06-29 21:43:12 +02:00
Michel Pollet
8ddb3e59f6 xlib: Add support for x11_xft for antialiases fonts
Looks a lot better.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2018-06-21 13:41:04 +01:00
Michel Pollet
e5dee6bf3d overview.c: Fix an out of bound access
Access 8 elements in a 4 elements array.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2018-06-21 11:08:28 +01:00
vurtun
0981c1a321 Fixed #677 contextual right-click behavior
Closing a contextual menu by right click caused invalid behavior and
bocking. In addition having consecutive contextual menus and closing an
earlier menu will wrongfully open a following menu. Both are now fixed.
2018-04-23 10:55:35 +02:00
vurtun
3f99a80f11 Added selectable tree nodes #626 2018-04-14 13:57:25 +02:00
vurtun
aa6752487f Merge branch 'lumonix-glfw_opengl4_demo' 2018-04-06 09:24:56 +02:00
vurtun
1098b22423 Changed GLFW context version to OpenGL 4 2018-04-06 09:20:53 +02:00
Micha Mettke
9a8899fb29
Merge pull request #644 from vtorri/master
d3d11 demo: release target view with ID3D11RenderTargetView_Release()…
2018-04-01 04:15:57 -07:00
Dickby
0dabcdd1f9
correct major/minor version of opengl in x11_opengl2 2018-03-23 16:14:32 +01:00
Vincent Torri
602ad7d6f9 d3d11 demo: release target view with ID3D11RenderTargetView_Release() and not with ID3D11ShaderResourceView_Release() 2018-03-14 10:14:17 +01:00
Micha Mettke
d9ccea11fe
Merge pull request #640 from vtorri/master
d3d11 demo: GetBuffer requires a void ** as 4th argument.
2018-03-01 09:37:55 -08:00
Vincent Torri
30a5709e0a d3d11 demo: GetBuffer requires a void ** as 4th argument.
Fix warning with gcc.
2018-03-01 16:22:19 +01:00
vurtun
19ce2bf091 Removed cursor hidding while property dragging 2018-02-12 09:53:18 +01:00
Patrick Rudolph
66946dc3cf nuklear_rawfb: Use pitch in offset calculation
Use the framebuffer pitch to calculate the correct offset.
Fixes garbled rendering on framebuffer that have
pitch != x_resolution * bpp / 8.

The demo application is unaffected as the pitch always aligns with
the x resolution of the window.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
2018-02-04 17:08:17 +01:00
um
e409328ff2 fixed nk_gdi_stroke_rect() : used old version (Rectangle/RoundRect) but with transparent brush. 2018-02-02 10:32:45 +03:00
um
f771450e93 Correct GDI window sizing handling 2018-02-01 17:26:27 +03:00
Martins Mozeiko
5acdfc9e34 correctly draw non-filled rectangle for GDI demo 2018-01-29 22:14:41 -08:00
vurtun
48a9d3176b Fixed ANSI C warnings 2018-01-28 11:59:06 +01:00
vurtun
f8dfddd732 Applied patch from #603 for panel border drawing 2018-01-28 11:48:44 +01:00
Kees Rijnen
205089ff62 Add opengl 4 demo that uses bindless textures and pesistent mapped vertex buffer 2018-01-22 06:00:39 -08:00
vurtun
2891c6afbc Update demos to new color picker API 2018-01-05 13:09:27 +01:00
vurtun
bd30c124a6 Fixed #544 color picker (breaking change) 2018-01-05 12:32:42 +01:00
Micha Mettke
df96bac317
Merge pull request #590 from mgerhardy/travis
TravisCI changes
2018-01-03 12:27:14 -08:00
William Emerison Six
1b64d1241d show full label in overview popup by expanding horizontal space 2018-01-02 22:06:19 -05:00
Martin Gerhardy
b17ec490ef TRAVIS: include demo windows and activate warnings 2018-01-02 08:26:29 +01:00
vurtun
6bddc5c5f0 Update demos configurables and removed warnings 2018-01-01 17:20:55 +01:00
Micha Mettke
5b9d6a9e6f
Merge pull request #591 from mgerhardy/issue584
Fixed parts of issue #584
2018-01-01 06:34:47 -08:00
Martin Gerhardy
be55f26a9f Fixed parts of issue #584 2017-12-31 17:26:52 +01:00
Martin Gerhardy
43277a4ff2 Fixed issue #588 2017-12-31 16:54:43 +01:00
vurtun
a9e5e7299c Added extended submenus to overview.c 2017-12-07 11:50:27 +01:00
vurtun
f7833d0379 Fixed #569 and added additional formated tooltip 2017-12-04 13:23:18 +01:00
Micha Mettke
7e32431af8
Merge pull request #549 from GreenByteSoftware/master
Fix D3D9 rendering in certain scenarios
2017-11-29 22:13:08 +01:00
vurtun
9e2cce1ebc Removed not needed } from comment 2017-11-28 12:21:39 +01:00
vurtun
054136075c Fixed warnings and UB in demo code 2017-11-27 20:44:13 +01:00
Aurimas Blažulionis
a012e7b48c Merge branch 'master' of https://github.com/vurtun/nuklear 2017-11-26 19:45:52 +02:00
Krzysztof Starzyk
c7d9d09522 Ident 2017-11-12 12:49:15 +01:00
Krzysztof Starzyk
dde257903c Fix ident 2017-11-12 12:47:13 +01:00
Krzysztof Starzyk
bcd0234ff8 Add OSX build for SFML demo 2017-11-12 12:39:23 +01:00
Aurimas
9a07540974 Fix D3D9 rendering in certain scenarios 2017-11-11 15:32:22 +02:00
Michael Bosse
0fca7e2045 Adds protection of the texture matrix stack which allows the user to use sf::Sprites with this code unmodified otherwise 2017-10-17 17:16:55 -04:00
Micha Mettke
056af25e27 Merge pull request #534 from DeXP/gles2
OpenGL ES2.0: Emscripten support
2017-10-17 12:23:56 +02:00
Patrick Rudolph
3705464605 demo/x11_rawfb: Change license to MIT
Relicense all x11_rawfb demo files under MIT license.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
2017-10-09 17:41:06 +02:00
DeXP
e57e0149f3 Emscripten support 2017-10-08 21:26:33 +02:00
vurtun
e5850a01b9 Fixed style issues in software renderer 2017-10-07 14:30:22 +02:00
vurtun
5d72fe5f86 Merge branch 'nuklear_softrast' of https://github.com/siro20/nuklear into siro20-nuklear_softrast 2017-10-07 14:01:22 +02:00
Patrick Rudolph
2eb72b26e4 Add software rasterizer library and demo.
The software rasterizer is to be used with raw framebuffer
devices, where no GPU or X11 is available.
The demo emulates a raw framebuffer on X11 using XShmImage / XImage.

Features implemented:
* Drawing primitives
* Drawing polygons (using Darel Rex Finley algorithm)
* Drawing arcs and circles (using Bresenham's elipses algorithm)
* Drawing images using nearest filtering
* Bounds check on every operation
* Fastpath for lines
* Font rendering using nearest filtering
* Window resize
* Thread safe implementation by using a context
* Fixed lower and upper scissors on fast-path
* Adapted coding style to nuklear's style
* Implemented text scissors

Color formats:
Define one of them at compile time.
* RAWFB_RGBX_8888 (32bpp)
* RAWFB_XRGB_8888 (32bpp)

Tested:
The library has been tested on Lenovo Thinkpad T500 and is able to render
more than 30fps on a single core with no further optimizations and VSNYC enabled.

TODO:
* Improve font rendering by using filters.
* Account font foreground color.

Usage:
The raw framebuffer library needs a "texture" that holds the prerendered
font data. The texture is used at runtime to blit the letters onto screen.
You have to provide the framebuffer address, dimension and pitch.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
2017-10-07 12:08:24 +02:00
Micha Mettke
ed57400644 Merge pull request #529 from DeXP/gdip-fonts
GDI+ multiple fonts support
2017-10-04 21:41:41 +02:00
Dmitry Hrabrov
49c3bcd0c6 nk_ prefix 2017-10-04 20:05:47 +03:00