Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Example code from Vulkan-tutorial Depth buffering modified adding NanoVG integration. Using C++ and GLFW.

License

MIT, Zlib licenses found

Licenses found

MIT
LICENSE
Zlib
LICENSE_nanovg.txt
Notifications You must be signed in to change notification settings

danilw/nanovg-vulkan-glfw-integration-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note 2024:

This is old, before danilw/nanovg_vulkan#7 in nanovg_vulkan repo. Im not going to update this to new.

__

nanovg-vulkan-glfw-integration-demo

What is it - this project show Vulkan NanoVG integration to custom render pass, using glfw.

NanoVG Vulkan port github link - nanovg_vulkan

Remember this is not GUI example, NanoVG is UI rendering library


To launch - copy builded binary to example folder(or launch when this folder is current as on build example commands below). Because required fonts and images/shaders to load.


Example description:

MAX_FRAMES_IN_FLIGHT - supported and nanovg rendered in multiple frames, screenshot below with 600+fps from 2 frames in flight.

example_vulkan_glfw_integration.cpp - this is example code from Vulkan-tutorial Depth buffering modified adding NanoVG integration.

Look at this commit 5bdb27f to see code changes from original C++ tutorial code.

Hotkey 3 to show/hide nanovg for example.

About RenderPass integration - copy paste code from integration examples above after your vkCmdEndRenderPass (or before vkCmdBeginRenderPass) and everything should work.


Build:

(use cmake to build on Windows, Windows/Linux supported and tested)

git clone https://github.com/danilw/nanovg-vulkan-glfw-integration-demo
cd nanovg-vulkan-glfw-integration-demo/example
mkdir build
cd build
cmake ../
make
cd ../
./build/example-vk_glfw_integration

Screenshot:

nvgvk


About

Example code from Vulkan-tutorial Depth buffering modified adding NanoVG integration. Using C++ and GLFW.

Topics

Resources

License

MIT, Zlib licenses found

Licenses found

MIT
LICENSE
Zlib
LICENSE_nanovg.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published