Commit Graph

17 Commits (master)

Author SHA1 Message Date
Cem Karan 112567c975 Added "-framework Carbon" as a link option to premake4.lua.
To get nanovg to link correctly under OS X 12.3, it needs to be linked against
the Carbon libraries.  This was missing in the premake4.lua files.  Now fixed.
2017-02-23 09:52:02 -05:00
Christopher Maughan 62fccfbaad Removed accidental d3d11 project. 2014-06-21 11:20:20 +01:00
Christopher Maughan b79ab71a71 Added mipmap generation option - useful for clients that need images with mipmaps for better quality scaling.
Tweaked premake to remove some windows warnings.
2014-06-21 10:38:25 +01: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
Caleb Gingles c80df84140 Made FreeType support a bit clearer 2014-05-22 09:53:02 -04:00
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.
2014-04-24 19:13:23 +02:00
StarWing a07cb82780 add support for MinGW. 2014-04-22 14:58:44 +08:00
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
2014-04-13 19:01:25 +03:00
Mikko Mononen 9d51cb6818 Update windows build settings as discussed in issue #24 2014-02-19 21:26:34 +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
Andrew Corrigan c0883e3e6a GLES3 2014-02-14 08:54:04 -05: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 c8a3ba4b69 Added OpenGL ES 2.0 back end 2014-02-14 11:26:01 +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 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
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 b89907ba6b First commit 2013-11-12 08:34:27 +01:00