Skip to content

Archie3d/juce_bgfx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using bgfx & nanovg with JUCE

This code demonstrates how to use bgfx rendering from within a JUCE application. Additionally an alternative rendering of JUCE components is implemented via nanovg (over bgfx).

By default bgfx will be using Direct3D on Windows and Metal on MacOS.

Implementation notes

  • On MacOS interaction between JUCE UI and bgfx is possible only on the main thread. Because of this bgfx multithreading must be disabled via BGFX_CONFIG_MULTITHREADED=0.

  • Nanovg rendering is done via custom juce::LowLevelGraphicsContext that forwards drawing calls to nanovg. Unfortunately not all call from the JUCE graphics can be mapped directly to nanovg, but custom paint can be done by accessing the NVGcontext directly.

About

Using bfgx with JUCE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages