Giter Club home page Giter Club logo

vkvg's Introduction


vkvg

Vulkan Vector Graphics

What is vkvg?

vkvg is a multiplatform c library for drawing 2D vector graphics with Vulkan.

Cairo was missing a Vulkan backend, so I decided to start one myself trying to keep my api as close to Cairo as possible.

Current status:

vkvg is in early development stage, 0.1 beta release is on the road.

  • Fill (with stencil even-odd technic) and Stroke functional.
  • 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:

  • Vulkan
  • FontConfig
  • Freetype
  • PkgConfig (currently used only to find harbfbuzz)
  • Harfbuzz
  • GLSLC: spirv compiler, included in LunarG SDK (building only)
  • xxd: generate headers with precompiled shaders (building only)
  • GLFW (only for running demo app)
  • CMake

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

Building

git clone https://github.com/jpbruyere/vkvg.git     # Download source code from github
cd vkvg                                             # Enter the source directory
git submodule update --init --recursive             # Dowload vkhelpers sources
mkdir build					    # Create build directory
cd build
cmake ..					    # Run CMake, optionaly setup glslc path
make						    # Run Make

Roadmap

  • Radial gradients.
  • Dashed lines.
  • Operators.
  • Improve stroke algorithms.
  • Offscreen pattern building.
  • Optimize vulkan memory allocations by sub-allocating from a single shared memory chunk per type.
  • Optimize command submissions.
  • Test SDF font rendering.
  • Avoid line joins inside curves and arc.
  • Structured unit testing.
  • Perf and memory checks.
  • Code clean and comment.
  • Documentations.

vkvg's People

Contributors

jpbruyere avatar panaman67 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.