Mikko Mononen
							
						 
						
							
							
							
								
							
								ec53dd417d 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #89  from cforfang/alignment_fix_2  
							
							 
							
							 
							
							
								
							
							
							Explicit cast to make C++ compilers happy 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Christian Forfang
							
						 
						
							
							
							
								
							
								7b567dacc5 
								
							
								 
							
						 
						
							
							
								
								Explicit cast to make C++ compilers happy  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								1da366c239 
								
							
								 
							
						 
						
							
							
								
								Fix for issue  #82  
							
							 
							
							 
							
							
								
							
							
							- fixed basic shape windings
- clamp radius of rounded rect so that it behaves nicely when squashed 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								effe1a5fce 
								
							
								 
							
						 
						
							
							
								
								Fix for issue  #81  
							
							 
							
							 
							
							
								
							
							
							- use regular uniforms for once-per-frame values
- set tex sampler when using NANOVG_GL_USE_UNIFORMBUFFER 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								44c168b84e 
								
							
								 
							
						 
						
							
							
								
								Fix for issue  #75  
							
							 
							
							 
							
							
								
							
							
							- fixed copy/paste bug in bevel calculations 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								611b043fff 
								
							
								 
							
						 
						
							
							
								
								Fix for issue  #77  
							
							 
							
							 
							
							
								
							
							
							- line caps did not consider AA width 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								4ee8aa9cde 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #87  from Nairou/master  
							
							 
							
							 
							
							
								
							
							
							Made FreeType support a bit clearer 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Caleb Gingles
							
						 
						
							
							
							
								
							
								c80df84140 
								
							
								 
							
						 
						
							
							
								
								Made FreeType support a bit clearer  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								42afd62df2 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #86  from Ziflin/master  
							
							 
							
							 
							
							
								
							
							
							Removed GL_BLEND disable and enable inside glnvg__fill() to prevent performance warning. 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Douglas Cox
							
						 
						
							
							
							
								
							
								eff24cc040 
								
							
								 
							
						 
						
							
							
								
								Removed GL_BLEND disable and enable inside glnvg__fill() to prevent performance warning:  
							
							 
							
							 
							
							
								
							
							
							"Fragment Shader is going to be recompiled because the shader key based on GL state mismatches." 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								2b35f5f306 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #85  from cforfang/alignment_fix_2  
							
							 
							
							 
							
							
								
							
							
							Make sure fons__tmpalloc returns a 16-byte aligned pointer 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Christian Forfang
							
						 
						
							
							
							
								
							
								15c963f8b5 
								
							
								 
							
						 
						
							
							
								
								Make sure fons__tmpalloc returns a 16-byte aligned pointer  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								02ca24ad75 
								
							
								 
							
						 
						
							
							
								
								Fix to update alloc count after successful alloc  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								3f37dccb29 
								
							
								 
							
						 
						
							
							
								
								Fix for issue  #78  
							
							 
							
							 
							
							
								
							
							
							- use one not used macro for all 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								7f55decf8f 
								
							
								 
							
						 
						
							
							
								
								More error checking on allocations  
							
							 
							
							 
							
							
								
							
							
							- changed remainder of allocations to follow same 1.5x patters
- do not leak memory when realloc() fails
- added error handling in case allocations fail 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								b2d93429e5 
								
							
								 
							
						 
						
							
							
								
								Fixed issue  #80  
							
							 
							
							 
							
							
								
							
							
							- increased initial buffer sizes
- change all allocator patterns to over allocate by 1.5x
- fixes bug where nvgl back-end was not allocating +n as requested 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								0426fe9f4c 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #79  from cforfang/master  
							
							 
							
							 
							
							
								
							
							
							Set glFrontFace in glnvg__renderFlush 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Christian Forfang
							
						 
						
							
							
							
								
							
								46bc758234 
								
							
								 
							
						 
						
							
							
								
								Added mention of glFrontFace to README.md  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Christian Forfang
							
						 
						
							
							
							
								
							
								d7344e0699 
								
							
								 
							
						 
						
							
							
								
								Added glFrontFace(GL_CCW) to glnvg__renderFlush  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								7aa5a74ec5 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #76  from elmindreda/master  
							
							 
							
							 
							
							
								
							
							
							Removed GLFW 2 option macro 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Camilla Berglund
							
						 
						
							
							
							
								
							
								57308993cb 
								
							
								 
							
						 
						
							
							
								
								Removed GLFW 2 option macro.  
							
							 
							
							 
							
							
								
							
							
							GLFW_NO_GLU is a GLFW 2 feature.  GLFW 3 does not include the GLU header
by default. 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								4cc5fd68d1 
								
							
								 
							
						 
						
							
							
								
								Improved nvgTextGlyphPositions()  
							
							 
							
							 
							
							
								
							
							
							- added glyph min/max x
- fixed first glyph position 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								df537491f2 
								
							
								 
							
						 
						
							
							
								
								Include GLFW_INCLUDE_GLCOREARB only on Macs  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								847f0f591d 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #74  from elmindreda/master  
							
							 
							
							 
							
							
								
							
							
							Replaced hardcoded GLFW link flags with pkgconfig 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Camilla Berglund
							
						 
						
							
							
							
								
							
								3b6515bd63 
								
							
								 
							
						 
						
							
							
								
								Replaced hardcoded GLFW link flags with pkgconfig.  
							
							 
							
							 
							
							
								
							
							
							The GLFW library path and link flags may differ between Linux
distributions.  This makes the build system use the GLFW pkgconfig file,
which hides such differences. 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								2beba289c4 
								
							
								 
							
						 
						
							
							
								
								Fix for issue  #72  
							
							 
							
							 
							
							
								
							
							
							- scale and letterspacing were mixed in call to getQuad 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								143f5daf5d 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #71  from starwing/master  
							
							 
							
							 
							
							
								
							
							
							add support for MinGW. 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   StarWing
							
						 
						
							
							
							
								
							
								a07cb82780 
								
							
								 
							
						 
						
							
							
								
								add support for MinGW.  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								b085ce3ace 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #70  from andrewcorrigan/master  
							
							 
							
							 
							
							
								
							
							
							fixes texture formats for GLES2/GLES3 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								9d62d28bdf 
								
							
								 
							
						 
						
							
							
								
								Fix for issue  #69  
							
							 
							
							 
							
							
								
							
							
							- make default uniform struct align 4 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Andrew Corrigan
							
						 
						
							
							
							
								
							
								ee1e66e721 
								
							
								 
							
						 
						
							
							
								
								fixes texture formats for GLES2/GLES3  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								5a4e5a3d7c 
								
							
								 
							
						 
						
							
							
								
								Added nvgCurrentTransform() and exposed matrix functions  
							
							 
							
							 
							
							
								
							
							
							- added nvgCurrentTransform() which allows to get the current
transformation matrix
- added skew x/y transforms
- exposed functions 2x3 matrix functions
- exposed point transform
- added deg/rad conversion functions 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								7fc116418c 
								
							
								 
							
						 
						
							
							
								
								Fix for issue  #14  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								64de0f6321 
								
							
								 
							
						 
						
							
							
								
								Update README.md  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								be16b4dff3 
								
							
								 
							
						 
						
							
							
								
								Made old GL backends obsolete, added docs  
							
							 
							
							 
							
							
								
							
							
							- added documentation about changed GL state
- made old GL2 and GL3 backends obsolete 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								6edc46e5b0 
								
							
								 
							
						 
						
							
							
								
								Allow small strokes, fixed textBoxBounds()  
							
							 
							
							 
							
							
								
							
							
							- added test for multiple stroke widths
- allow stroke width down to 1px size, then scale with alpha
- fixed textBoxBounds() in hi-dpi 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								b54faeff30 
								
							
								 
							
						 
						
							
							
								
								Added TODO about GLES2 pixel shader precision  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								b416f76b1c 
								
							
								 
							
						 
						
							
							
								
								Added nvgTextBoxBounds, fixed nvgTextBounds  
							
							 
							
							 
							
							
								
							
							
							- nvgTextBounds() API changed, assumes x,y as input too
- fixed nvgTextBounds() return values
- added nvgTextBoxBounds()
- text line width is handle more consistently
- added note about return values of text measure funds
- changed demo to show text(box)bounds usage 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								407cd75a98 
								
							
								 
							
						 
						
							
							
								
								Fixed rendering artefacts when not using uniform buffers  
							
							 
							
							 
							
							
								
							
							
							- made uniform buffer support behind separate define for easier toggling
- calculate scissor and stroke alpha outside type selection to simplify
the shader (or else it produces rendering artefacts)
- restore default pixel store settings instead of restoring old state
- set active texture to 0 when starting to render a frame 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								8f16ad0e07 
								
							
								 
							
						 
						
							
							
								
								Clear frag uniforms before filling  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								9d367dcb81 
								
							
								 
							
						 
						
							
							
								
								GL3buf backend supports GL2 too (not yet enabled)  
							
							 
							
							 
							
							
								
							
							
							- added support for GL(ES)2 for nanovg_gl3buf (something is still not
quite there)
- nanovg now sets all required GL state
- removed compiler warnings about unused vars 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								fdb96903c8 
								
							
								 
							
						 
						
							
							
								
								Fixed text related calculations for hi-dpi rendering  
							
							 
							
							 
							
							
								
							
							
							- calculate all text related stuff using scaling
- removed a couple of compiler warnings
- tweaked caret picking 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								7a282bd934 
								
							
								 
							
						 
						
							
							
								
								Added some TODOs, no return value for textbox  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								635f4a4afb 
								
							
								 
							
						 
						
							
							
								
								Added multi-line text drawing  
							
							 
							
							 
							
							
								
							
							
							- fixed some warnings
- changed nvgLetterSpacing() to nvgTextLetterSpacing()
- added nvgTextBox()
- added nvgTextLineHeight()
- added some documentation 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   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 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								2d5c1845ac 
								
							
								 
							
						 
						
							
							
								
								Removed unused function  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   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 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Mikko Mononen
							
						 
						
							
							
							
								
							
								8d88a9b38e 
								
							
								 
							
						 
						
							
							
								
								Fixed bug in fonsTextIterNext()  
							
							 
							
							
								
							
							
						 
						11 years ago  
					 
				
					
						
							
							
								   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. 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Doug Binks
							
						 
						
							
							
							
								
							
								f398f26018 
								
							
								 
							
						 
						
							
							
								
								Bugfix to nvgRGBf  
							
							 
							
							
								
							
							
						 
						11 years ago