Browse Source

Made FreeType support a bit clearer

shared-context
Caleb Gingles 11 years ago
parent
commit
c80df84140
2 changed files with 16 additions and 15 deletions
  1. +2
    -2
      README.md
  2. +14
    -13
      premake4.lua

+ 2
- 2
README.md View File

@@ -4,7 +4,7 @@
NanoVG NanoVG
========== ==========


NanoVG is small antialiased vector graphics rendering library for OpenGL. It has lean API modeled after HTML5 canvas API. It is aimed to be a practical and fun toolset for building scalable user interfaces and visualizations.
NanoVG is small antialiased vector graphics rendering library for OpenGL. It has lean API modeled after HTML5 canvas API. It is aimed to be a practical and fun toolset for building scalable user interfaces and visualizations.


## Screenshot ## Screenshot


@@ -100,5 +100,5 @@ The library is licensed under [zlib license](LICENSE.txt)
[NanoVG mailing list](https://groups.google.com/forum/#!forum/nanovg) [NanoVG mailing list](https://groups.google.com/forum/#!forum/nanovg)


## Links ## Links
Uses [stb_truetype](http://nothings.org) for font rendering.
Uses [stb_truetype](http://nothings.org) (or, optionally, [freetype](http://freetype.org)) for font rendering.
Uses [stb_image](http://nothings.org) for image loading. Uses [stb_image](http://nothings.org) for image loading.

+ 14
- 13
premake4.lua View File

@@ -5,13 +5,14 @@ solution "nanovg"
location ( "build" ) location ( "build" )
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"} platforms {"native", "x64", "x32"}
project "nanovg" project "nanovg"
language "C" language "C"
kind "StaticLib" kind "StaticLib"
includedirs { "src" } includedirs { "src" }
files { "src/*.c" } files { "src/*.c" }
targetdir("build") targetdir("build")
--defines { "FONS_USE_FREETYPE" } -- Uncomment to compile with FreeType support


configuration "Debug" configuration "Debug"
defines { "DEBUG" } defines { "DEBUG" }
@@ -19,7 +20,7 @@ solution "nanovg"


configuration "Release" configuration "Release"
defines { "NDEBUG" } defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
flags { "Optimize", "ExtraWarnings"}


project "example_gl2" project "example_gl2"
kind "ConsoleApp" kind "ConsoleApp"
@@ -28,7 +29,7 @@ solution "nanovg"
includedirs { "src", "example" } includedirs { "src", "example" }
targetdir("build") targetdir("build")
links { "nanovg" } links { "nanovg" }
configuration { "linux" } configuration { "linux" }
linkoptions { "`pkg-config --libs glfw3`" } linkoptions { "`pkg-config --libs glfw3`" }
links { "GL", "GLU", "m", "GLEW" } links { "GL", "GLU", "m", "GLEW" }
@@ -48,7 +49,7 @@ solution "nanovg"


configuration "Release" configuration "Release"
defines { "NDEBUG" } defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
flags { "Optimize", "ExtraWarnings"}


project "example_gl3" project "example_gl3"
kind "ConsoleApp" kind "ConsoleApp"
@@ -57,7 +58,7 @@ solution "nanovg"
includedirs { "src", "example" } includedirs { "src", "example" }
targetdir("build") targetdir("build")
links { "nanovg" } links { "nanovg" }
configuration { "linux" } configuration { "linux" }
linkoptions { "`pkg-config --libs glfw3`" } linkoptions { "`pkg-config --libs glfw3`" }
links { "GL", "GLU", "m", "GLEW" } links { "GL", "GLU", "m", "GLEW" }
@@ -77,7 +78,7 @@ solution "nanovg"


configuration "Release" configuration "Release"
defines { "NDEBUG" } defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
flags { "Optimize", "ExtraWarnings"}


project "example_gl2_msaa" project "example_gl2_msaa"
kind "ConsoleApp" kind "ConsoleApp"
@@ -87,7 +88,7 @@ solution "nanovg"
includedirs { "src", "example" } includedirs { "src", "example" }
targetdir("build") targetdir("build")
links { "nanovg" } links { "nanovg" }
configuration { "linux" } configuration { "linux" }
linkoptions { "`pkg-config --libs glfw3`" } linkoptions { "`pkg-config --libs glfw3`" }
links { "GL", "GLU", "m", "GLEW" } links { "GL", "GLU", "m", "GLEW" }
@@ -107,7 +108,7 @@ solution "nanovg"


configuration "Release" configuration "Release"
defines { "NDEBUG" } defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
flags { "Optimize", "ExtraWarnings"}


project "example_gl3_msaa" project "example_gl3_msaa"
kind "ConsoleApp" kind "ConsoleApp"
@@ -117,7 +118,7 @@ solution "nanovg"
includedirs { "src", "example" } includedirs { "src", "example" }
targetdir("build") targetdir("build")
links { "nanovg" } links { "nanovg" }
configuration { "linux" } configuration { "linux" }
linkoptions { "`pkg-config --libs glfw3`" } linkoptions { "`pkg-config --libs glfw3`" }
links { "GL", "GLU", "m", "GLEW" } links { "GL", "GLU", "m", "GLEW" }
@@ -137,7 +138,7 @@ solution "nanovg"


configuration "Release" configuration "Release"
defines { "NDEBUG" } defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
flags { "Optimize", "ExtraWarnings"}


project "example_gles2" project "example_gles2"
kind "ConsoleApp" kind "ConsoleApp"
@@ -146,7 +147,7 @@ solution "nanovg"
includedirs { "src", "example" } includedirs { "src", "example" }
targetdir("build") targetdir("build")
links { "nanovg" } links { "nanovg" }
configuration { "linux" } configuration { "linux" }
linkoptions { "`pkg-config --libs glfw3`" } linkoptions { "`pkg-config --libs glfw3`" }
links { "GL", "GLU", "m", "GLEW" } links { "GL", "GLU", "m", "GLEW" }
@@ -174,7 +175,7 @@ solution "nanovg"
includedirs { "src", "example" } includedirs { "src", "example" }
targetdir("build") targetdir("build")
links { "nanovg" } links { "nanovg" }
configuration { "linux" } configuration { "linux" }
linkoptions { "`pkg-config --libs glfw3`" } linkoptions { "`pkg-config --libs glfw3`" }
links { "GL", "GLU", "m", "GLEW" } links { "GL", "GLU", "m", "GLEW" }
@@ -193,4 +194,4 @@ solution "nanovg"


configuration "Release" configuration "Release"
defines { "NDEBUG" } defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
flags { "Optimize", "ExtraWarnings"}

Loading…
Cancel
Save