See new project: lanox2d
gbox is a mutli-platform c graphic library.
It is now in the early stages of development only for reference and learning.
If you are interesting to this project, please view the source code.
- Support 2d vector drawing
- Support matrix transform
- Support fill and stroke for solid, gradient and image
- Support custom path and drawing
- Support float and fixed point computation
- Provide custom drawing devices
- Support OpenGL ES 1.0/2.0
- Support soft algorithm for drawing
- Implement mesh structure and algorithm
- Implement complex polygon tessellator and triangulation
- Support odd and nonzero fill
- Implement polygon scanning algorithm
- Provide multi-platform windows(.e.g glut, sdl and x11, framebuffer, ios, android in the feature)
- Draw svg images
- Implement anti-aliasing
- More drawing devices and windows
- Draw text
- Development ui and game engine
please install xmake first: xmake
$ cd ./gbox
$ xmake
$ xmake run core
- Email:
- Website:
GBOX
现在这个项目,
如果您感兴趣,
矢 量 2d渲染,支持 矩 阵变换,画 刷 、画 笔的设置和 渲染支持 复杂矢 量 路 径 渲染和 填 充 支持 纯色填 充 、梯 度 填 充 、图像填 充 (正 在 重 构)支持 全 定点 或 者 浮点计算(可 配置 切 换)- 实现渲染设备扩展,
目前 支持 gpu加速 的 opengl es 1.0/2.0设备、纯算法 渲染的 bitmap设备 - 实现复杂
多 边形分割 (三角形 分割 、凸 多 边形分割 ),支持 奇 偶填充 、非 零 填 充 等 填 充 规则(这个算法 花 了 我 一 年 时间 =。=) - 实现mesh结构
和 封 装 - 实现
多 边形扫描算法 支持 多 平台 窗 口 扩展,目前 支持 glut、sdl窗 口 ,后 续会支持 (x11,framebuffer, ios/android,windows等 原生 窗 口 )
- svg
矢 量 图形渲染(之 前 的 版本 实现过一整 套,最近 正 在 重 构,所以 暂时移 除 了 ) 反 走 样支持 - 实现
更 多 平台 窗 口和 渲染设备 - 实现
字体 渲染 - ui
框 架 的 实现 有 时间的 话,再 整 整 游 戏引擎,当然 这个是 后 话,看 心情 和 时间了 。
目前 基 于opengl的 渲染设备,绘制tiger.svg可 达到60fps基 于bitmap的 纯算法 渲染设备,绘制tiger.svg可 达到30-40fps(pc上 测试,数 据 仅供参考 )
请先
cd ./gbox
xmake
$ xmake run core
- Email:
- Website: