All Projects → jpbruyere → Vkvg

jpbruyere / Vkvg

Licence: mit
Vulkan 2D graphics library

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Vkvg

Rvg
High level vulkan 2D vector-like graphics api (C++)
Stars: ✭ 171 (-56.6%)
Mutual labels:  vector, vulkan
glm
OpenGL Mathematics (GLM)
Stars: ✭ 6,667 (+1592.13%)
Mutual labels:  vulkan, vector
footile
A 2D vector graphics library written in Rust
Stars: ✭ 32 (-91.88%)
Mutual labels:  vector, 2d
Synfig
This is the Official source code repository of the Synfig project
Stars: ✭ 1,056 (+168.02%)
Mutual labels:  vector, 2d
framework
The exomia/framework is used for building 2D and 3D games and more inspired by the XNA/Mono framework.
Stars: ✭ 21 (-94.67%)
Mutual labels:  vulkan, 2d
Svg.skia
An SVG rendering library.
Stars: ✭ 122 (-69.04%)
Mutual labels:  vector, 2d
nautilus
another graphics engine
Stars: ✭ 16 (-95.94%)
Mutual labels:  vulkan, graphics-library
Vulkan2drenderer
Easy to use 2D rendering engine using Vulkan API as backend.
Stars: ✭ 60 (-84.77%)
Mutual labels:  vulkan, 2d
Nabla
OpenGL/OpenGL ES/Vulkan/CUDA/OptiX Modular Rendering Framework for PC/Linux/Android
Stars: ✭ 235 (-40.36%)
Mutual labels:  vulkan, graphics-library
Wasabi
Wasabi Vulkan Game Engine
Stars: ✭ 34 (-91.37%)
Mutual labels:  vulkan, graphics-library
Rgx
Modern mid-level 2D graphics library
Stars: ✭ 172 (-56.35%)
Mutual labels:  vulkan, 2d
Graphene
A thin layer of graphic data types
Stars: ✭ 268 (-31.98%)
Mutual labels:  vector, graphics-library
Serpent
Cross-platform gaming kit in the D programming language
Stars: ✭ 140 (-64.47%)
Mutual labels:  vulkan, 2d
Plutovg
Tiny 2D vector graphics library in C
Stars: ✭ 141 (-64.21%)
Mutual labels:  vector, 2d
Diligentengine
A modern cross-platform low-level graphics library and rendering framework
Stars: ✭ 2,142 (+443.65%)
Mutual labels:  vulkan, graphics-library
sdf-2d
A graphics library to enable the real-time rendering of 2D signed distance fields on the web.
Stars: ✭ 70 (-82.23%)
Mutual labels:  graphics-library, 2d
Code Red
A Graphics Interface for DirectX12 and Vulkan
Stars: ✭ 27 (-93.15%)
Mutual labels:  vulkan, graphics-library
Acid
A high speed C++17 Vulkan game engine
Stars: ✭ 838 (+112.69%)
Mutual labels:  vulkan, graphics-library
vector2d
2D Vector Library. Operates using Objects, Array or Float32Array types to allow flexible performance.
Stars: ✭ 28 (-92.89%)
Mutual labels:  vector, 2d
vecti
A tiny TypeScript library for 2D vector math.
Stars: ✭ 14 (-96.45%)
Mutual labels:  vector, 2d


vkvg

Vulkan Vector Graphics

vkvg is an open source 2D graphics library written in c using Vulkan as backend. It's api follows the same pattern as Cairo, but new functions and original drawing mechanics may be added.

vkvg is in early development stage, api may change, any contribution is welcome.

For API documentation and usage, please refer to the Cairo documentation for now.

Current status:

  • Fill (stencil even-odd, non-zero with ear clipping).
  • Stroke.
  • Basic painting operation.
  • Font system with caching operational.
  • Linear Gradients.
  • Line caps and joins.
  • Context should be thread safe, extensive tests required.
  • Image loading and writing with stb lib
  • Test includes svg rendering with nanoSVG

Requirements:

if glslc or xxd are not present, a precompiled version of the shaders is stored in the git tree.

Building

#fetch sources from github
git clone --recursive https://github.com/jpbruyere/vkvg.git    
cd vkvg
# Create build directory
mkdir build
cd build
# Run CMake, optionaly setup glslc path
cmake ..
make

A detailed tutorial is available for Windows.

To Do

  • [x] Use Scissor where possible.
  • [x] Improve stroke algorithms.
  • [ ] Radial gradients.
  • [x] Dashed lines.
  • [ ] Operators.
  • [x] Optimize vulkan memory allocations by sub-allocating from a single shared memory chunk per type.
  • [x] Optimize command submissions.
  • [x] Test SDF font rendering.
  • [x] Avoid line joins inside curves and arc.
  • [ ] Structured unit testing.
  • [ ] Perf and memory checks.
  • [ ] Code clean and comment.
  • [ ] Documentations.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].