Olli Wang
4ac2b44ea7
Fixes how glext header is included.
...
This commit fixes the issue caused by #357 that nanovg failed to compile on iOS due to the wrong way of including glext header.
2017-03-06 22:08:08 +08:00
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
2014-09-02 20:58:17 +03:00
Mikko Mononen
8519f09569
Changed demos to use types not structs
2014-07-11 19:21:19 +03:00
StarWing
4712e5b615
Auto detect and resize text atlas texture.
2014-06-22 16:41:19 +08:00
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
2014-06-15 11:08:12 +03:00
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
2014-06-09 15:53:26 +03:00
Mikko Mononen
84bec2962e
Fix for issue #95
...
- Added alpha for images
- Added global alpha
2014-06-08 15:10:40 +03:00
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)
2014-06-08 13:56:58 +03:00
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.
2014-04-25 12:01:48 +02:00
Mikko Mononen
df537491f2
Include GLFW_INCLUDE_GLCOREARB only on Macs
2014-04-24 21:31:40 +03:00
Mikko Mononen
7fc116418c
Fix for issue #14
2014-04-21 11:16:51 +03:00
Mikko Mononen
be16b4dff3
Made old GL backends obsolete, added docs
...
- added documentation about changed GL state
- made old GL2 and GL3 backends obsolete
2014-04-20 12:26:05 +03:00
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
2014-04-15 21:10:55 +03: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
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
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
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
Doug Binks
a1e99ea940
Bug fix for index into queries.
2014-02-18 13:32:55 +01:00
Doug Binks
bb6b19c410
Added GPU timer and fixed up formatting.
2014-02-18 12:26:41 +01:00
Doug Binks
a63854859e
Added an inner frame CPU timer.
...
Needs names for the UI components to distinguish them, and probably stacking vertically for easier comparison.
2014-02-18 11:38:55 +01:00
Doug Binks
37c03fa881
win32 changes.
2014-02-16 17:08:06 +01:00
Mikko Mononen
277d5ebb3b
Added experimental GL3 back end which buffers whole frame
2014-02-16 14:09:37 +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
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
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
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
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