Mikko Mononen
7a282bd934
Added some TODOs, no return value for textbox
2014-04-13 21:57:57 +03:00
Mikko Mononen
635f4a4afb
Added multi-line text drawing
...
- fixed some warnings
- changed nvgLetterSpacing() to nvgTextLetterSpacing()
- added nvgTextBox()
- added nvgTextLineHeight()
- added some documentation
2014-04-13 21:55:43 +03:00
Mikko Mononen
ff8b521506
Added text break line and glyph position functions
...
- added debug configs for the lib
- added more data for font stash text iterator (ptr to current and next
position in string, code point)
- renamed nvgVertMetrics() to nvgTextMetrics()
- added nvgTextGlyphPositions() which returns glyph x position for the
text
- added nvgTextBreakLines breaks a text into multiple rows based on
newlines and max row width
- tweaked tessellation tolerance
2014-04-13 19:01:25 +03:00
Mikko Mononen
2d5c1845ac
Removed unused function
2014-04-11 16:27:24 +03:00
Mikko Mononen
888103db39
Adjusted tessellation
...
- changed tessellation flatness test which produces less vertices
(especially when using straight lines)
- added nvgDebugDumpPathCache which allows to dump path cache state to
stout
2014-04-11 16:25:57 +03:00
Mikko Mononen
8d88a9b38e
Fixed bug in fonsTextIterNext()
2014-04-11 11:00:29 +03:00
Mikko Mononen
1db6eec59a
Merge pull request #56 from dougbinks/NVGcolor
...
Merged NVGcolor, which implements the color as floats, colors can be > 1.0, allowing HDR rendering when needed.
2014-04-10 13:54:48 +03:00
Doug Binks
f398f26018
Bugfix to nvgRGBf
2014-04-10 12:41:25 +02:00
Doug Binks
c3f50b9c01
Removed nvgIsBlack, and added isBlack to demo.c
2014-04-10 12:19:03 +02:00
Doug Binks
253dc627e7
Added nvgTransRGBAf
2014-04-10 12:16:28 +02:00
Doug Binks
a83913bc87
Added nvgRGBf and nvgRGBAf constructor functions.
2014-04-10 12:13:36 +02:00
Doug Binks
466ab4b19a
Converted spaces to tabs.
2014-04-10 12:08:29 +02:00
Doug Binks
d16b4df7fd
Warning/Error fix: added int return type to nvgIsBlack
2014-04-07 14:22:12 +02:00
Doug Binks
730b8c2edd
Converted gl3 unbuffered version.
2014-04-06 21:22:10 +02:00
Doug Binks
5ed1b21855
Converted gl2 path.
2014-04-06 21:18:32 +02:00
Doug Binks
3d3582cd9a
Moved to floating point color via NVGcolor structure.
...
Currently working with gl3buf backend.
2014-04-06 18:15:40 +02:00
Mikko Mononen
857d2efe45
Small addition to debug hints
2014-04-01 16:35:29 +03:00
Mikko Mononen
885844a845
Added quick hints on how to debug rendering issues
2014-04-01 16:33:49 +03:00
Mikko Mononen
b47f256607
Updated fontstash
2014-03-23 20:40:32 +02:00
Mikko Mononen
8695be3216
Update README.md
2014-03-16 18:27:14 +02:00
Mikko Mononen
6a4cb80891
Merge pull request #50 from devnought/dev
...
Variable initialization, unused var removal, and casts.
2014-03-09 21:00:46 +02:00
Mikko Mononen
0262883c55
Fixes for AA on retina, a bit finer tessellation
...
- changed tessellation threshold from 0.3 to 0.25
- fixed scissor AA on retina
- fixed stroke AA on retina
2014-03-09 20:55:23 +02:00
Kyle Gretchev
db5c78fb00
Variable initialization, unused var removal, and casts.
...
Removed some unused variables to silence compiler warnings, initialized
variables to 0, added varialbe casts to silence additional compiler
warnings.
2014-03-09 14:22:39 -04:00
Mikko Mononen
8b55ae414e
Improved miter and bevel line joins
2014-03-09 19:46:59 +02:00
Mikko Mononen
22e58d6d83
Merged latest changes from fontstash
...
- merged font stash optional FreeType support
2014-02-26 12:28:29 +02:00
Mikko Mononen
ba3c0cbce1
Fix for issue #40 : Added support to render using premultiplied alpha
...
- added support to take screen shots
- added support to render to frame buffer using premultiplied alpha
- fixed spelling NVGaling -> NVGalign
2014-02-25 22:53:46 +02:00
Mikko Mononen
51c7d9fc6b
Merge pull request #39 from SirSlaxalot/master
...
fixed error return value
2014-02-23 13:04:12 +02:00
Sebastian Wagner
7013386026
fixed error return value
2014-02-22 21:07:06 +01:00
Mikko Mononen
5de5c1d2a0
Improve stroke rendering
...
- added better logic for inner bevels
- tweaks to reduce overdraw at edges
- fixed convex shape logic
2014-02-20 23:00:31 +02:00
Mikko Mononen
53ae1d0804
Merge pull request #38 from andrewcorrigan/master
...
reduces warnings
2014-02-20 20:17:11 +02:00
Andrew Corrigan
38bb65617e
reduces warnings
2014-02-20 11:44:01 -05:00
Mikko Mononen
2d11c2ee8a
Merge pull request #36 from dougbinks/master
...
Reset pixel storage settings after load texture.
2014-02-19 23:04:32 +02:00
Doug Binks
5d8e63c81c
Another reset pixel storage settings after load texture.
2014-02-19 22:01:46 +01:00
Doug Binks
a5965635a6
Reset pixel storage settings after load texture.
2014-02-19 21:53:22 +01:00
Mikko Mononen
9d51cb6818
Update windows build settings as discussed in issue #24
2014-02-19 21:26:34 +02:00
Mikko Mononen
677c85668e
Merge pull request #35 from Nairou/master
...
Improve VC support
2014-02-19 08:30:33 +02:00
Caleb Gingles
fbdc947802
Improve VC support
2014-02-18 16:53:48 -05:00
Mikko Mononen
7f07b7953c
Merge pull request #34 from Nairou/patch-1
...
Remaining change for VC support
2014-02-18 22:53:02 +02:00
Caleb Gingles
731cb55221
Update nanovg.c
2014-02-18 15:41:10 -05:00
Mikko Mononen
99bd7b358e
Moving variables at top of blocks for better VC support
2014-02-18 22:17:30 +02:00
Mikko Mononen
aaafbd32c6
Renamed FPScounter to PerfGraph
...
- Renamed FPScounter to PerfGraph
- dump avg times at exit
2014-02-18 21:51:28 +02:00
Mikko Mononen
1517841023
Performance timer tweaks
...
- moved performance counter and drawing to separate file
- tweaks to performance drawing
2014-02-18 21:40:52 +02:00
Mikko Mononen
0c6d5d3702
Added NVG_ANTIALIAS into read me, commented line cap/join
2014-02-18 19:39:43 +02:00
Mikko Mononen
31f8f6075c
Merge pull request #33 from dougbinks/timing
...
Support for cases where the gl header does not include GL_ARB_TIMER_QUERY
2014-02-18 19:38:54 +02:00
Mikko Mononen
9ad2fa14ae
Merge pull request #32 from jtilander/master
...
Quick guard against NULL ptr dereference of texture type on CPU side
2014-02-18 19:37:39 +02:00
Doug Binks
fe22b8c07d
Support for cases where the gl header does not include GL_ARB_TIMER_QUERY
2014-02-18 18:17:09 +01:00
Jim Tilander
683785dbfa
Quick guard against NULL ptr dereference of texture type on CPU side
2014-02-18 08:17:56 -08:00
Mikko Mononen
cdca70aea5
Merge pull request #31 from dougbinks/timing
...
Timing for CPU inner frame and GPU inner frame added
2014-02-18 17:10:46 +02:00
Doug Binks
7d6058c572
Changed name of new functionality to keep other examples compiling.
2014-02-18 15:45:41 +01:00
Doug Binks
e21683f14e
Added name to timer render.
2014-02-18 15:32:04 +01:00