https://github.com/blend2d/blend2d
2D Vector Graphics Engine Powered by a JIT Compiler
https://github.com/blend2d/blend2d
2d-graphics asmjit cpp jit rasterization
Last synced: about 1 month ago
JSON representation
2D Vector Graphics Engine Powered by a JIT Compiler
- Host: GitHub
- URL: https://github.com/blend2d/blend2d
- Owner: blend2d
- License: zlib
- Created: 2014-02-02T02:01:04.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2026-09-05T10:05:35.000Z (3 months ago)
- Last Synced: 2026-10-10T08:21:08.361Z (about 2 months ago)
- Topics: 2d-graphics, asmjit, cpp, jit, rasterization
- Language: C++
- Homepage: https://blend2d.com
- Size: 5.68 MB
- Stars: 1,996
- Watchers: 82
- Forks: 161
- Open Issues: 49
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome_c-cpp_projects - Blend2D - 由 JIT 编译器驱动的 2D 矢量图形引擎。 (📚 项目宗旨 / 图形)
- awesome-cpp-cn - Blend2D - 由JIT编译器提供技术支持的2D矢量图形引擎。 (Uncategorized / Uncategorized)
- fucking-awesome-cpp - Blend2D - 2D vector graphics engine powered by a JIT compiler. \[Zlib\] [website](https://blend2d.com/) (Graphics)
- awesome-cpp - Blend2D - 2D vector graphics engine powered by a JIT compiler. \[Zlib\] [website](https://blend2d.com/) (Graphics)
- awesome-game-engine-dev - Blend2D - High-performance 2D vector graphics engine. \[[Website](https://blend2d.com/)\] (Libraries / C++)
- awesome-computer-graphics-resources - Blend2d - Blend2D is a high performance 2D vector graphics engine written in C++ and released under the Zlib license. (Basic Raster Graphics Algorithms for Drawing 2D Primitives / 2D Libraries)
README
Blend2D
-------
2D Vector Graphics Powered by a JIT Compiler.
* [Official Home Page (blend2d.com)](https://blend2d.com)
* [Official Repository (blend2d/blend2d)](https://github.com/blend2d/blend2d)
* [Public Chat Channel](https://app.element.io/#/room/#blend2d:matrix.org)
* [Zlib License](./LICENSE.md)
See [blend2d.com](https://blend2d.com) page for more details.
Project Organization
--------------------
* **`/`** - Project root, contains this README.md, other markdown files, CMakeLists.txt, and scripts for developers
* **src** - Source code (always point include path in here)
* **blend2d** - Blend2D source code and headers, all core classes and public headers are here
* **codec** - Image codecs and codec utilities (BMP, JPEG, PNG, and QOI)
* **compression** - Implementation of compression and decompression algorithms (DEFLATE)
* **opentype** - TrueType and OpenType font support
* **pipeline** - 2D rendering pipeline definitions and implementations (reference and JIT)
* **pixelops** - Pixel operations helpers
* **raster** - 2D rendering context implementation
* **simd** - SIMD abstraction library Blend2D uses
* **support** - Support classes and utilities (arena allocator & containers, bit operations, string operations, ...)
* **simd** - SIMD abstraction library Blend2D uses
* **tables** - Lookup tables and SIMD constants
* **threading** - Multithreading abstraction (POSIX threads or Windows threads)
* **unicode** - Support for unicode and conversion between various unicode encodings
* **testing** - Testing, benchmarking, samples, and interactive demos (don't embed in your project)
* **3rdparty** - Place where to clone [asmjit](https://github.com/asmjit/asmjit) to enable JIT code generation or where to add dependencies for testing and benchmarking purposes
Roadmap
-------
* See [Roadmap](https://asmjit.com/roadmap.html) page for more details
Documentation
-------------
* [Documentation Index](https://blend2d.com/doc/index.html)
Contributing Guidelines
-----------------------
* [CONTRIBUTING.md](./CONTRIBUTING.md)
Building
--------
Blend2D is almost self-containing library. The only dependency is AsmJit, which is only required by when JIT is enabled.
To fetch both Blend2D and AsmJit, type:
```bash
$ git clone https://github.com/blend2d/blend2d
$ git clone https://github.com/asmjit/asmjit blend2d/3rdparty/asmjit
```
Then you can simply configure and build blend2d with CMake:
```bash
$ cmake -S blend2d -B blend2d/build/Release -DCMAKE_BUILD_TYPE=Release -DBLEND2D_TEST=ON
$ cmake --build blend2d/build/Release --config Release
```
And run samples:
```
$ blend2d/build/Release/bl_sample_1
$ blend2d/build/Release/bl_sample_2
...
```
To build Blend2D with interactive demos and with benchmark targeting Qt and other libraries, use `BLEND2D_DEMOS=ON`
```bash
$ cmake -S blend2d -B blend2d/build/Release -DCMAKE_BUILD_TYPE=Release -DBLEND2D_TEST=ON -DBLEND2D_DEMOS=ON
$ cmake --build blend2d/build/Release --config Release
```
Please note that to build interactive demos and benchmarking backends, you need to have Qt installed, in addition to all rendering libraries you would like to benchmark.
For more information, visit [https://blend2d.com/doc/build-instructions.html](Build Instructions)
Bindings
--------
* [Download Page](https://blend2d.com/download.html#Bindings) provides a list of Blend2D bindings
License
-------
* [LICENSE.md](./LICENSE.md)