Andrew Corrigan
3eeafc1a14
Fix for issue #172
10 years ago
Mikko Mononen
3a5e25cc67
Merge pull request #196 from waywardmonkeys/fix-typos
Fix typos.
10 years ago
Bruce Mitchener
98b116165d
Fix typos.
10 years ago
Mikko Mononen
31f9feb401
Fix for #191
- fixed stroke to use lino join style to calculate required vertex
count
10 years ago
Mikko Mononen
90862ce25c
Fix for issue #175
Line break would duplicate a word if the first character of a word
would cause a line break
10 years ago
Mikko Mononen
1a0550ebc7
Merge pull request #185 from SmilyOrg/patch-2
Added check in addPoint to avoid duplicated moveTos breaking
10 years ago
Mikko Mononen
8b849004d4
Merge pull request #165 from floooh/pr_redundant_state_filter
Redundant GL state filter
10 years ago
Miha Lunar
f8086a2006
Added check in addPoint to avoid duplicated moveTos breaking
It guards addPoint from "stealing" the point from the previous path if they're the same, which makes it break when you do something like this:
```
moveTo(50, 50)
moveTo(50, 50)
lineTo(100, 100)
```
Before the fix there's no line shown. With the second moveTo, there's a second path added, but without the 50,50 point, because it was already added with the first moveTo. This makes the second path only contain the point 100,100 so it doesn't draw at all.
After the fix, the point equality check is ignored for the first point in the path, so the second path gets the 50,50 point too and that makes it behave as expected.
This is only one solution to the duplicated moveTo problem and it's likely not the best one, but it's one that's easy to add and it seems to work just fine.
10 years ago
Mikko Mononen
315914acfd
Merge pull request #184 from olliwang/fbo
Fixes nvgluCreateFramebuffer().
10 years ago
Olli Wang
71a2bdf8af
Fixes nvgluCreateFramebuffer().
The framebuffer and renderbuffer did restore in `nvgluCreateFramebuffer()` on succeed. However, they are not restored if error occurs. This commit fixes it.
10 years ago
Mikko Mononen
f75078f594
Merge pull request #183 from csaken/master
Fixed compile error occuring if FONS_USE_FREETYPE is defined.
10 years ago
Jancsi Farkas
a473d72ecf
Fixed compile occuring if FONS_USE_FREETYPE is defined.
10 years ago
Mikko Mononen
b048742da4
Updated out dated docs in read me
10 years ago
Mikko Mononen
fc3b7a013e
Merge pull request #174 from SmilyOrg/patch-1
Consistent code syntax and typo fix
10 years ago
Miha Lunar
13e877ed37
Consistent code syntax and typo fix
10 years ago
Mikko Mononen
cab10c7c0f
Merge pull request #170 from olliwang/static
Fixed syntax error of checking defined identifier
10 years ago
Olli Wang
2300bf3594
Fixed syntax error of checking defined identifier
The syntax is wrong when checking defined identifier.
10 years ago
Mikko Mononen
bf29db7d60
Merge pull request #169 from olliwang/cancel
Added nvgCancelFrame()
10 years ago
Olli Wang
c120079425
Added nvgCancelFrame()
This commit implements a new nvgCancelFrame() function for the purpose described in #168 .
Currently, if calling nvgBeginFrame(), the nvgEndFrame() function must be called to finish the drawing. However, if knowing the drawing would take too much time and want to give up the drawing. There is no way to cancel it. nvgCancelFrame() gives another choice to end the frame without actually drawing.
10 years ago
Mikko Mononen
388ea6b8c6
Merge pull request #164 from floooh/pr_uniform_array_2
Merge uniforms into a single uniform array
10 years ago
Mikko Mononen
4ce074f9b6
Merge pull request #163 from olliwang/gles_fbo
Add FBO support for GLES
10 years ago
Mikko Mononen
24ae5f0fb9
Merge pull request #166 from olliwang/pow2check
Fix for issue #162
10 years ago
Olli Wang
2cee1c0f93
Add FBO support for GLES
To support FBO for iOS, the current framebuffer and renderbuffer must be restored after calling nvgluCreateFramebuffer(). The framebuffer should also be restored when calling nvgluBindFramebuffer(NULL) as well.
10 years ago
Olli Wang
8e401a5f42
Fix for issue #162
10 years ago
Andre Weissflog
4aadf46465
Don't set redundant GL state (glBindTexture, glStencilFunc, glStencilMask)
10 years ago
Andre Weissflog
aa6751ee4a
Merge uniforms into a single uniform array, reducing number of glUniform calls.
Conflicts:
src/nanovg_gl.h
10 years ago
Mikko Mononen
994b60b83f
Moved image repeat (tiling) from pattern to image creation
- API changed!
- moved image repeat from nvgImagePattern() into image creation
nvgCreateImage*()
- made flip-y and premultiplied common image flags (not just GL)
- removed nvglImageFlags(), flags passed in via
nvglCreateImageFromHandle() flags
- nvgluCreateFramebuffer takes image flags as param
10 years ago
Mikko Mononen
96f08f4ca4
Fix for issue #155
- added NVG_DEBUG which can be used to omit calls to glGetError()
- removed return value for glnvg__checkError
- create flag defines to enum
10 years ago
Mikko Mononen
64960cf82d
Merge pull request #148 from pupil-labs/master
added new graph style
10 years ago
Mikko Mononen
dc70bbc3f3
Merge pull request #156 from floooh/pr_clamp_to_edge
Fix texture completeness for non-POT textures on GLES2/WebGL
10 years ago
Andre Weissflog
e9add93849
Fix texture completeness for non-POT textures on GLES2/WebGL
10 years ago
Mikko Mononen
9bb72f02bd
Merge pull request #149 from rockolo/master
Restore openGL state / unbind buffer
10 years ago
Philipp Rockel
697bfd824d
Restore openGL state / unbind buffer
These changes make it possible to integrate nanoVG into other openGL libraries like Cinder and openFrameworks and be able to draw afterwards.
10 years ago
Moritz Kassner
b112ce00b7
added new graph style
10 years ago
Mikko Mononen
6b69e7bce0
Fix for issue #143
- removed duplicate call to nvgTextMetrics()
11 years ago
Mikko Mononen
bd762f81a6
Fix for issue #142
- set default lineHeight to 1.0
11 years ago
Mikko Mononen
646b0a56cc
Merge pull request #138 from notlion/fix-double-transform
Set commandx/y before the transform
11 years ago
Ryan Alexander
312052816e
Set commandx/y before the transform
This prevents commands like `nvgQuadTo` and `nvgArcTo` from double-transforming the previous point when they pass it back to `nvg__appendCommands`.
11 years ago
Mikko Mononen
14df146ea1
Added nvgIntersectScissor()
- added function to allow to combine scissor rects using intersection
11 years ago
Mikko Mononen
f56b9e6c42
Started projects section
- added projects section to read me
- added processing API link (issue #135 )
11 years ago
Mikko Mononen
8519f09569
Changed demos to use types not structs
11 years ago
Mikko Mononen
19f19847fe
Typedef'd structs.
- added typedefs for all structs
- fixed some compiler warnings
11 years ago
Mikko Mononen
14fe41af89
Merge pull request #129 from andrewcorrigan/master
only specify precision for fragment shader
11 years ago
Mikko Mononen
d26ddd6c1f
Merge branch 'cmaughan-nanovg_master'
11 years ago
Mikko Mononen
a52c9a1241
Merged font texture creationg conflict.
11 years ago
Andrew Corrigan
cb5f9cdd50
spaces --> tabs
11 years ago
Andrew Corrigan
ad1f260b91
spaces --> tabs
11 years ago
Andrew Corrigan
ad59d66bf0
only specifies precision for fragment shader, vertex shader defaults to highp as per gles2/gles3 spec
11 years ago
Mikko Mononen
84595438f3
Fix for issue #127
- set stb_image flags so that it loads correct data in iPhone
11 years ago
Mikko Mononen
68f9e4b4c4
Merge pull request #125 from starwing/master
update upstream stb things.
11 years ago