Commit Graph

112 Commits

Author SHA1 Message Date
Rob Loach ca49016428
Rename more null variables to tex_null 2022-07-30 17:45:12 -04:00
Rob Loach 54fd67bddd
Rename additional .null variables 2022-07-30 17:43:46 -04:00
Rob Loach ec4acc7cf4
Rename the null variable to tex_null 2022-07-30 17:38:10 -04:00
Cameron Cawley 60c52adfaf
Enable and fix most GCC warnings (#377)
Co-authored-by: Rob Loach <robloach@gmail.com>
2021-12-16 20:44:00 +01:00
luz paz 297e463d37 Fix various typos
Found via `codespell -q 3 -L acount,modifyable,nd,pixelx,seperator,te,vertexes`
2021-11-30 21:45:48 -05:00
Phoenix a859103836
Fix canvas example not rendering fully on macOS (#288) 2021-09-08 18:12:06 +02:00
dumblob 9f0bca461b
Merge pull request #88 from mgerhardy/master
Fixed compiler warnings - bring your own sin/cos/strtod/... implementations and unused functions
2020-04-17 10:20:02 +02:00
Martin Gerhardy 455b404d86 Fixed issue #87 - Compiler warnings about unused functions
Fixed compiler warning by removing unused function nk_sqrt
Fixed compiler warning if you bring your own sin/cos/strtod....
Bump version for breaking nk_sqrt changes
Updated changelog
2020-04-17 09:58:30 +02:00
Zane Ashby 9818f642da Fix memory leak in demo and example code.
Clear cmds nk_buffer after each frame to stop it growing over time.
2020-04-12 01:40:09 +12:00
bigov 5f3830d8fd fix Makefile for Windows_NT 2020-03-29 15:19:47 +09:00
crazyBaboon 4f6b838748 Remove duplicated #include <math.h> 2020-03-09 21:51:08 +00:00
crazyBaboon 1de7702b84
update comment related to icon_load() 2019-10-01 10:30:30 +01:00
crazyBaboon f7e79476ee
comment out icon_load()
As suggested, altought icon_load() is not used to build this example/canvas.c,
it might still be useful. So instead of deleting, the function is now commented.
2019-10-01 10:29:34 +01:00
crazyBaboon c52193b3f2
icon_load() function not used
This function was not used in this file, so... removed.
2019-09-30 23:58:37 +01:00
Jupiter b3b0c9ee02
Fix `Error 65543: NSGL` on macOS
## Forward compatibility (GLFW_OPENGL_FORWARD_COMPAT)
Fix for error 65543 on macOS:
Error `65543`: NSGL: The targeted version of OS X only supports forward-compatible contexts for OpenGL 3.2 and above

Quote from docs:
GLFW_OPENGL_FORWARD_COMPAT specifies whether the OpenGL context should be forward-compatible, i.e. one where all functionality deprecated in the requested version of OpenGL is removed. This must only be used if the requested OpenGL version is 3.0 or above.
2018-04-11 14:40:18 +03:00
Martin Gerhardy b17ec490ef TRAVIS: include demo windows and activate warnings 2018-01-02 08:26:29 +01:00
vurtun 0b95e3e5a0 Fixed #525 by updating canvas example 2017-09-23 14:53:55 +02:00
Micha Mettke 48f659abd8 Merge pull request #497 from jwdeitch/master
fix compiling error on OSX (-lglfw3 not found)
2017-09-18 17:41:54 +02:00
Valera Rozuvan 3757f56824 Remove unused line of code 2017-09-18 12:00:58 +03:00
jwdeitch 52f24d4e67 fix compiling error on OSX
error: ld: library not found for -lglfw3
2017-08-17 00:58:08 -04:00
Rokas Kupstys 25e6ba2597 Fix examples to use nk_vec2 in nk_input_scroll() calls. 2017-03-30 13:46:39 +03:00
vurtun be7ac9b903 Updated Makefile as of #256 2017-01-14 09:46:13 +01:00
su21 72491bafb1 remove useless variable 2016-11-01 16:59:08 +08:00
vurtun bd3fd8300f Pulled panel memory managment into nuklear
I simplified a lot of API calls by pulling panel memory management
inside the library. All API calls which previously required a panel
as parameter are now handling their panel themself.
2016-10-29 23:28:47 +02:00
dankan1890 3967fb533c Improved and fixed example/Makefile. 2016-10-22 21:43:33 +02:00
vurtun 85d109e351 Fixed non-blocking popup closing behavior
This is a breaking change which fixes bad closing behavior in
non-blocking popups. If the maximum size of a non-blocking popup was
not reached and you clicked to close the popup under it could happen
that it wouldn't be closed. This is now fixed in combination with
more popup control by allowing to set both the maximum height as
well as popup width.
2016-09-15 18:20:07 +02:00
vurtun 9e6b4f67cc Changes to fix #233 and #238
For more informatio please look inside the issues and for the
actual changes overview please look inside `CHANGELOG.md`
2016-09-08 20:20:02 +02:00
vurtun 7279f0f0cc Updated examples to new vertex layout API 2016-09-04 10:02:28 +02:00
vurtun 550a2b03d3 Fixed some bug introduced by last commit and more
This commit fixed some bugs from the last commit as well as some general
changes and fixes of some old bugs. For overview of all changes please
look inside `CHANGELOG.md`.
2016-08-31 19:19:06 +02:00
vurtun 727b912390 Update canvas example with background color arg
`nk_canvas_begin` now takes a background color directly instead of
requiring the user of the API to clear the window background with
another draw call.
2016-08-26 19:48:04 +02:00
kim yongbin 285e43c787 make all examples 2016-08-24 00:34:13 +09:00
kim yongbin b54bc88e47 add missing CLFW_PRESS check for GLFW_KEY_RIGHT_CONTROL 2016-08-23 23:00:40 +09:00
vurtun 2dab85fde1 Enhanced the canvas example a little bit
Removed some global varibles and made the canvas a little bit easier
to use and embed into code.
2016-08-15 10:35:42 +02:00
vurtun 4b910e0f31 Update example version numbers 2016-08-07 21:26:53 +02:00
vurtun 100480c6c7 Fixed swapping out fonts
I had a long standing bug inside nuklear which prevents you from
swapping out a font while the code is being build. This bug is now
fixed but the fix requires _ALL_ `nk_user_font` data structures
provided by `nk_style_set_font` to be persistent.
2016-08-04 14:18:29 +02:00
vurtun 69df3f5369 Fixed #194 example/extended.c compile error 2016-08-04 08:59:17 +02:00
vurtun 831a9c32da Update examples to version 1.03 2016-07-29 23:26:44 +02:00
vurtun d57fce9b85 Added missing label text color 2016-06-12 15:48:47 +02:00
vurtun 2e7dd3dc04 Added GWEN style skinning example #155
This commit adds a GWEN UI style skinning example. It is
certainly not perfect right now (especially windows suck) but
it is probably useful for a general overview. One thing that is
pretty clear for me now is that I need a way to read in a style from
file or memory since manually setting up properties, colors
and images is quite a pain.
2016-06-12 15:28:38 +02:00
vurtun ba1ff9c23c Added canvas example
Added another example to show how to use Nuklear to only draw stuff
to the screen instead of using it for UI (or both).
2016-05-27 13:27:29 +02:00
Alex 45bbe7d6bb Example: add OS X specific include and library paths to Makefile 2016-05-21 23:48:10 +08:00
vurtun 539dde6cde Fixed #138 piemenu and combo open at same time
Fixed piemenu behavior inside extended example.
2016-05-19 16:11:54 +02:00
vurtun 71ee9a3986 Fixed #132 piemenu clipping bug
Previously the piemenu had a clipping bug caused by different offset
between internal and external properties. I just set spacing and
padding to zero to let the piemenu take the whole popup.
2016-05-16 14:10:14 +02:00
vurtun 8a01de120a Restructured demos and examples
All platform and renderbackend independent examples are now optional
demos for all platforms in `demo/`. Moving some demos from `example/`
provides an easier way to test GUI concepts for users and simplifies
maintenance.
2016-04-28 17:01:19 +02:00
vurtun bbe282a272 Hopefully fixed high DPI display mouse mapping #74 2016-04-27 13:08:31 +02:00
vurtun 62ff1861a4 Hopefully fixed retina display issues #111 #74
I personally do not have a retina display, but I added some changes
to all `GLFW` demos/examples. If there are still issues please
report back to me what is not working correct (please test out clipping
by playing around with scrollbars as well)
2016-04-25 14:07:04 +02:00
Andrey Gursky 590c27d40f example: fix typo 2016-04-23 22:01:01 +02:00
vurtun ca4d5bad8c Fixed blurry font for examples
Oversampling for the default font is tweaked for the default font
with height 13. I set the wrong height for all examples which should
now be fixed.
2016-04-20 19:53:26 +02:00
vurtun 18b93fcc8a Fixed #90 cppcheck warning and errors
Thanks to @codemeow I fixed some bugs and warnings found with
cppcheck. NOTE: it seems like all static analyzer fail to
detect the assert macro or hate combining assert ans if checks.
2016-04-20 10:31:20 +02:00
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