项目
在 GitHub 查看
jamboree/niji
关于
Generic 2D graphics library for C++14
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文niji
Generic 2D graphics library for C++14.
Introduction
Niji is a generic library for 2D graphical path manipulation, it provides containers, generators (graphics), adaptors (views) and algorithms for path, in a sense like STL/Boost.Range.
On the other hand, niji doesn't have the ability to render these paths on its own, you can think it as a generic front-end for arbitrary graphic engines which can do the real rendering.
Overview
Niji can be divided into these submodules:
- core - path fundamentals.
- container - various path containers, e.g.
path,group, etc. - graphic - common graphics, e.g.
ellipse,round_rect, etc. - geometry - adapted geometry path for Boost.Geometry.
- view - various path adaptors, e.g.
inverse,transform,stroke, etc. - make - convenient path makers.
- algorithm - path algorithms, e.g.
bounds,length, etc. - support - traits, basic geometries, math...
- sink - predefined backends, e.g. Skia, Direct2D, etc.
Quick Example
The following example shows how to output the path of a dashed ellipse:
using namespace niji;
render(ellipse<double>({100, 100}, 50) | views::dash<double>({6, 2}), sink);
- all components reside in namespace
niji. render(path, sink)sends the path commands to sink.ellipse<T>is a predefined path generator.views::dash<T>(pattern)returns a path adaptor that generates dash lines.sinkis something that handles the path commands.
Documentation
- Tutorial
- Reference
Dependencies
License
Copyright (c) 2014-2018 Jamboree
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
探索相关项目
加载中…