Mikko Mononen
ed86765026
Removed unused mx,my,len
11 years ago
Mikko Mononen
197af889db
Merge pull request #115 from cforfang/small_fixes
Memory leak + small fixes
11 years ago
Christian Forfang
565fa16265
Fixed missing void in function with no parameters
11 years ago
Christian Forfang
893f31c318
Fixed potentially uninitialized local variable warning
11 years ago
Christian Forfang
119f315a75
Fixed memory leak
11 years ago
Mikko Mononen
0c7feda665
Changed not used macro from do {} while(0), to for(;;) { ... break; }
11 years ago
Mikko Mononen
ec2dfba0f1
Removed unused mu variable
11 years ago
Mikko Mononen
ff96ef9565
Merge pull request #104 from starwing/master
fix nvgCreateImageFromHandle for GLES2/3.
11 years ago
Mikko Mononen
c648e0dcf1
Fix for issue #108
- fixed stroke cap tessellation amount calculation
11 years ago
Mikko Mononen
a98d17cf24
Fix for issue #111
- added nvgQuadTo, draws quadratic bezier curve segment
11 years ago
Mikko Mononen
709475c513
API changed! Fixed slowdown, Shader uses premultiplied colors
- all colors in the shader is handled as premultiplied
- removed alphaBlend param from nvgBeginFrame(), it became obsolete
- added NVGL_TEXTURE_PREMULTIPLIED flag
- separated FBO example
- FBOs are treated as premultipied for correct alpha
- changed FBO storage from depth/stencil 24/8 to stencil 8
- moved discard to end of shader which restores the render speed again
11 years ago
StarWing
9b8de47d79
fix nvgCreateImageFromHandle for GLES2/3.
11 years ago
Mikko Mononen
0dbf53ebad
Updated screenshot
11 years ago
Mikko Mononen
0ae3a54bce
Added links to nanovg ports
11 years ago
Mikko Mononen
003561e721
Fix for issue #92
- added (optional) 3-pass stencil trick to stroke rendering, reduces
overdraw artifacts, a little slower
- fixed some text bounds issues
11 years ago
Mikko Mononen
83c876b9a8
Made FBO helper to work on OSX when using GL2
11 years ago
Mikko Mononen
84bec2962e
Fix for issue #95
- Added alpha for images
- Added global alpha
11 years ago
Mikko Mononen
f0994aee92
Fix for issue #100
- fixed glyph position bounds for whitespace
11 years ago
Mikko Mononen
7a06c56edb
Fixes and tweaks for frame buffer handling
- fixed flags setup in nvglCreateImageFromHandle
- changed frame buffer to only compile on GL3
- changed nvgluCreateFramebuffer() to return FBO struct instead of
filling existing one (for consistency)
11 years ago
Mikko Mononen
43a8dcc981
Merge pull request #101 from starwing/master
add external APIs to GL backend to get native Texture Id.
11 years ago
Mikko Mononen
adb7528ed3
Merge pull request #93 from jacereda/master
Relax stroke width limit
11 years ago
Mikko Mononen
59030bf722
Separated fill and store expansion code
11 years ago
Mikko Mononen
7a576015e4
Merge pull request #102 from notlion/gles-highp
Use highp precision when available for GLES
11 years ago
Ryan Alexander
fa12dd899b
Use highp precision when available for GLES
11 years ago
StarWing
bea097165b
add external APIs to GL backend to get native Texture Id.
11 years ago
Jorge Acereda
0957a7763f
Merge upstream/master
11 years ago
Mikko Mononen
bf2037a426
Fix for issue #94
- bezier tessellation was using second control point instead of last
point in error calculation
11 years ago
Jorge Acereda
6a96f91abf
Relax stroke width limit
11 years ago
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