348 Commits

Author SHA1 Message Date
Mikko Mononen
6840bf8478 Simplified back-end API a little
- removed assize from the back-end api
- moved image to paint in renderTriangles call
2014-02-16 13:05:24 +02:00
Mikko Mononen
1378269815 Fixed unused variables and scissor under zoom
- added NVG_NOTUSED to suppress unused param warnings
- fixed scissor anti-aliased border width when zoomed
2014-02-16 12:44:00 +02:00
Mikko Mononen
fa402cbeaa Merge pull request #22 from devnought/cwarn
Added float cast to viewport size
2014-02-16 00:10:31 +02:00
Andrew Corrigan
a1001539ae STBI_NOTUSED 2014-02-15 11:45:37 -05:00
Kyle Gretchev
28e40aeb30 gl2 size cast 2014-02-15 11:32:32 -05:00
Mikko Mononen
e39b6cb9ee Merge pull request #20 from andrewcorrigan/master
stdio.h
2014-02-15 18:25:11 +02:00
Kyle Gretchev
4aefd89450 Added float cast to viewport size
Added float cast to remove compiler warnings.
2014-02-15 11:18:37 -05:00
Andrew Corrigan
74dddb693e suppresses "explicitly assigning a variable to itself warning" and potential unused parameter warnings 2014-02-15 10:59:05 -05:00
Andrew Corrigan
79e2d7cad8 stdio.h 2014-02-14 15:38:18 -05:00
Mikko Mononen
2c5f10f33f Merge pull request #19 from andrewcorrigan/master
NANOVG_GLES2_IMPLEMENTATION implies NANOVG_GLES2
2014-02-14 22:11:35 +02:00
Andrew Corrigan
1fe6cb36dc NANOVG_GLES2_IMPLEMENTATION implies NANOVG_GLES2 2014-02-14 14:59:34 -05:00
Mikko Mononen
a888e741ac Use GL_R8 instead of GL_RED on ES3 2014-02-14 19:15:19 +02:00
Mikko Mononen
d41083886a Added retina/hi-dpi support
- fixed off-by-one pixels from demo
- added device-pixel-ratio support (retina support)
- added nvgEndFrame()
2014-02-14 19:13:12 +02:00
Mikko Mononen
8cb6eea358 Tweaks to GL ES
- use nvgCreateGLES2() instead of nvgCreateGL2() when NANOVG_GLES2 is
specified (ditto for gl3)
- use GL_RED instead of GL_LUMINANCE in ES3
2014-02-14 18:27:26 +02:00
Mikko Mononen
ecb0a9c394 Removed scaling from nvgTextBounds and nvgVertMetrics and commented the behavior 2014-02-14 18:07:57 +02:00
Mikko Mononen
6446ee236a Merge pull request #17 from andrewcorrigan/master
GLES3
2014-02-14 17:46:43 +02:00
Andrew Corrigan
c0883e3e6a GLES3 2014-02-14 08:54:04 -05:00
Mikko Mononen
d2acabf325 Fixes for GLES2 2014-02-14 14:29:16 +02:00
Mikko Mononen
cd376082ba Added MSAA option for backends
- added option to turn off AA fringe generation
- added examples which use no AA fringes and  MSAA
2014-02-14 13:11:32 +02:00
Mikko Mononen
abbf2792c1 Merged GL2 and GLES2 backends
- merged GL ES2 and GL2 backends
- GL2 uses now same structure as GL3
2014-02-14 11:33:45 +02:00
Mikko Mononen
c8a3ba4b69 Added OpenGL ES 2.0 back end 2014-02-14 11:26:01 +02:00
Mikko Mononen
56574f6eb3 Apply font scaling to nvgTextBounds and nvgVertMetrics 2014-02-13 23:43:26 +02:00
Mikko Mononen
3d3c302e6c GL3 uber shader
- added milliseconds to fps counter
- smooth fps reading a bit more
- changed GL3 to uber shader
2014-02-13 22:12:18 +02:00
Mikko Mononen
6bf81b6727 GL3: Combined vert shaders, fixed half pixel offset 2014-02-13 21:45:48 +02:00
Mikko Mononen
39602081e8 Fix for issue #11, added C++ guards 2014-02-11 20:38:24 +02:00
Mikko Mononen
9f4993e6ff Apllied vs2010 compiler fixes from fontstash. 2014-02-11 08:02:49 +02:00
Mikko Mononen
336de19a16 Better rounding for quantization to remove text rendering jitter 2014-02-10 19:11:10 +02:00
Mikko Mononen
e8c4ec22bf Fix issue #10
- link to framework CoreVideo on OSX, fixes compiling on OSX 10.9
2014-02-10 18:04:20 +02:00
Mikko Mononen
060b4521af use glewExperimental = GL_TRUE on 3.2 core profile 2014-02-09 21:45:34 +02:00
Mikko Mononen
8b234ca953 Improved rendering performance of convex shapes and on gl3 back-end
- set swap interval to 0 to better see performance
- draw convex shapes without stencil to speed things up
- improve vertex buffer upload for gl3
2014-02-09 21:21:41 +02:00
Mikko Mononen
9b00b7aaf5 Implemented OGL 3.2 core profile back-end
- moved demo stuff to separate file
- created two separate examples for gl2 and gl3
- initial stab at OGL 3.2 core profile back-end (currently twice as
slows as 2.0)
- API change: glBeginFrame() takes view witdth and height as input
- added FPS counter to demo
2014-02-09 17:33:37 +02:00
Mikko Mononen
714d18a4c6 Merge pull request #9 from r-lyeh/master
MSVC compile fix (example); win32 screenshot added
2014-02-08 21:31:59 +02:00
r-lyeh
0da08eec2e MSVC compile fix (example); win32 screenshot added 2014-02-08 20:28:41 +01:00
Mikko Mononen
6773ef52de Fixed issue #8 2014-02-08 20:13:59 +02:00
Mikko Mononen
c8e2466447 Fix text rendering flickering under rotation
- quantize font rendering scale
- round kerning values for less flicker
2014-02-08 20:11:23 +02:00
Mikko Mononen
4431218724 Fixed issue #6, font atlas size was not passed to create texture 2014-02-07 23:04:43 +02:00
Mikko Mononen
07b9a24367 Updated fontstash 2014-02-02 18:26:56 +02:00
Mikko Mononen
aeefcd1c2f Merge pull request #4 from andrewcorrigan/master
fix for https://github.com/memononen/nanovg/issues/3
2014-02-02 04:43:22 -08:00
Andrew Corrigan
1dd4cf0104 uses GLEW with Linux to avoid issues with glUniform1f, explicitly links glfw3 and C math library 2014-02-02 20:23:55 +08:00
Mikko Mononen
786dffa0cb First stab at documentation. 2013-12-03 23:27:31 +02:00
Mikko Mononen
4b9dc973f7 Fixed arcTo, small additions to API
- fixed nvgArcTo
- added nvgTransRGBA, allows to change alpha of color
- added nvgFindFont, allows to find font id by name
2013-11-23 12:24:39 +02:00
Mikko Mononen
99e7d9b21d added texture atlas size to glnvgCreate() 2013-11-14 23:31:29 +01:00
Mikko Mononen
68d27124a8 - decorated math functions
- updated font stash
- added end parameter to text (can draw substring)
- text and text measure return advance/width
2013-11-14 23:28:11 +01:00
Mikko Mononen
64e46db6f7 Fixed typo in readme 2013-11-12 22:58:53 +01:00
Mikko Mononen
6c0d41a124 Fixed small arc rendering, improved example, added screenshot
- fixed arc rendering for small arcs
- added color wheel to example
- added screenshot
2013-11-12 22:57:44 +01:00
Mikko Mononen
3507692c1d Few more additions to readme 2013-11-12 08:43:45 +01:00
Mikko Mononen
4d1ef0cace Clean up
- removed unused files
- added license
- added readme stub
2013-11-12 08:39:44 +01:00
Mikko Mononen
b89907ba6b First commit 2013-11-12 08:34:27 +01:00