#nano-vg #opengl #wgpu #nvgx

nvgx-ogl

OpenGL 3.1 backend for Pure-rust implementation of NanoVG

3 releases (breaking)

new 0.3.0 May 15, 2025
0.2.0 May 14, 2025
0.1.0 May 14, 2025

#523 in Graphics APIs

Download history

77 downloads per month

MIT license

435KB
5K SLoC

OpenGL Impl: NVGX Pure-rust NanoVG

Note

The current OpenGL backend API is based on OpenGL 3.1, while WebGL 2.0 (GLES 3.0) compatibility has been considered but not yet tested. The fragmentation and problematic nature of GPU driver implementations across different vendors remain significant issues, as discussed in the Glium post-mortem. With OpenGL 4.0+ APIs being gradually replaced by the more standardized Vulkan, the OpenGL backend should prioritize the relatively stable and unified OpenGL 3.1 standard. Although OpenGL 4.0 has been in existence for 15 years and is supported by the vast majority of modern GPUs, backward compatibility concerns for OpenGL 3.1 are largely obsolete for contemporary hardware. Earlier versions like OpenGL 2.0+ are no longer supported due to their lack of instanced rendering APIs and the excessive complexity of cross-version API and shader compatibility, which introduces unnecessary technical debt.

Dependencies

~5MB
~97K SLoC