Skip to content

Commit

Permalink
Added a batch file to build the shader headers, fixed up for latest v…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
cmaughan committed Oct 15, 2014
1 parent 1a72242 commit 3c4ceb8
Show file tree
Hide file tree
Showing 7 changed files with 1,588 additions and 8,202 deletions.
4 changes: 2 additions & 2 deletions example/example_d3d11.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
}

#ifdef DEMO_MSAA
vg = nvgCreateD3D11(pDevice, 512, 512, NVG_STENCIL_STROKES);
vg = nvgCreateD3D11(pDevice, NVG_STENCIL_STROKES);
#else
vg = nvgCreateD3D11(pDevice, 512, 512, NVG_ANTIALIAS | NVG_STENCIL_STROKES);
vg = nvgCreateD3D11(pDevice, NVG_ANTIALIAS | NVG_STENCIL_STROKES);
#endif
if (vg == NULL)
{
Expand Down
20 changes: 20 additions & 0 deletions premake4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,23 @@ solution "nanovg"
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}

project "example_d3d11"
kind "ConsoleApp"
language "C"
files { "example/example_d3d11.c", "example/demo.c", "example/perf.c" }
includedirs { "src", "example" }
targetdir("build")
links { "nanovg" }

configuration { "windows" }
links { "d3d11", "gdi32", "winmm", "user32", "kernel32" }
defines { "NANOVG_D3D11", "_CRT_SECURE_NO_WARNINGS" }

configuration "Debug"
defines { "DEBUG" }
flags { "Symbols", "ExtraWarnings"}

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

0 comments on commit 3c4ceb8

Please sign in to comment.