Commit Graph

20 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
Phoenix
a859103836
Fix canvas example not rendering fully on macOS (#288) 2021-09-08 18:12:06 +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
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
vurtun
0b95e3e5a0 Fixed #525 by updating canvas example 2017-09-23 14:53:55 +02:00
Rokas Kupstys
25e6ba2597 Fix examples to use nk_vec2 in nk_input_scroll() calls. 2017-03-30 13:46:39 +03: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
vurtun
7279f0f0cc Updated examples to new vertex layout API 2016-09-04 10:02:28 +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
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
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