{"id":13466351,"url":"https://github.com/tboox/gbox","last_synced_at":"2025-03-25T21:32:19.021Z","repository":{"id":20341056,"uuid":"23615667","full_name":"tboox/gbox","owner":"tboox","description":"🎨 A multi-platform graphic library","archived":true,"fork":false,"pushed_at":"2023-10-10T03:47:05.000Z","size":79103,"stargazers_count":263,"open_issues_count":0,"forks_count":49,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-11-11T17:02:40.848Z","etag":null,"topics":["algorithm","drawing","framebuffer","glut","graphics-library","opengles","sdl"],"latest_commit_sha":null,"homepage":"https://tboox.org","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tboox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-09-03T10:09:48.000Z","updated_at":"2024-07-28T20:02:55.000Z","dependencies_parsed_at":"2022-09-01T15:34:44.939Z","dependency_job_id":"4a8e8c47-9556-4652-af33-45163d1bf373","html_url":"https://github.com/tboox/gbox","commit_stats":null,"previous_names":["waruqi/gbox"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tboox%2Fgbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tboox%2Fgbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tboox%2Fgbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tboox%2Fgbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tboox","download_url":"https://codeload.github.com/tboox/gbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245548307,"owners_count":20633555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","drawing","framebuffer","glut","graphics-library","opengles","sdl"],"created_at":"2024-07-31T15:00:42.802Z","updated_at":"2025-03-25T21:32:14.009Z","avatar_url":"https://github.com/tboox.png","language":"C","funding_links":[],"categories":["C","Projects"],"sub_categories":[],"readme":"\u003cp\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003egbox\u003c/h1\u003e\n\n  \u003cdiv\u003e\n    \u003ca href=\"https://github.com/tboox/gbox/blob/master/LICENSE.md\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/license/tboox/vm86.svg?colorB=f48041\u0026style=flat-square\" alt=\"license\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://gitter.im/tboox/tboox?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\"\u003e\n      \u003cimg src=\"https://img.shields.io/gitter/room/tboox/tboox.svg?style=flat-square\u0026colorB=96c312\" alt=\"Gitter\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://t.me/joinchat/F2dIAw5iTkDUMwCQ_8CStw\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/chat-on%20telegram-blue.svg?style=flat-square\" alt=\"Telegram\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://tboox.bearychat.com/signup/98bf6970b9f889d6ae3fbc3d50ee8a36\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/chat-on%20bearychat-brightgreen.svg?style=flat-square\" alt=\"Bearychat\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://jq.qq.com/?_wv=1027\u0026k=5hpwWFv\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/chat-on%20QQ-ff69b4.svg?style=flat-square\" alt=\"QQ\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://tboox.org/donation/\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/donate-us-orange.svg?style=flat-square\" alt=\"Donate\" /\u003e\n    \u003c/a\u003e\n  \u003c/div\u003e\n\n  \u003cp\u003eThe Graphic Box Library\u003c/p\u003e\n\u003c/div\u003e\n\u003c/p\u003e\n\n## No longer maintained\n\nSee new project: [lanox2d](https://github.com/lanox2d/lanox2d)\n\n## Introduction\n\ngbox is a mutli-platform c graphic library. \n\nIt is now in the early stages of development only for reference and learning.\n\nIf you are interesting to this project, please view the source code.\n\n#### Features\n\n- Support 2d vector drawing\n- Support matrix transform\n- Support fill and stroke for solid, gradient and image\n- Support custom path and drawing\n- Support float and fixed point computation\n- Provide custom drawing devices\n- Support OpenGL ES 1.0/2.0 \n- Support soft algorithm for drawing\n- Implement mesh structure and algorithm\n- Implement complex polygon tessellator and triangulation\n- Support odd and nonzero fill\n- Implement polygon scanning algorithm\n- Provide multi-platform windows(.e.g glut, sdl and x11, framebuffer, ios, android in the feature)\n\n#### In the plans\n\n- Draw svg images\n- Implement anti-aliasing\n- More drawing devices and windows\n- Draw text \n- Development ui and game engine\n\n#### Build\n\nplease install xmake first: [xmake](http://www.xmake.io)\n\n    $ cd ./gbox\n    $ xmake\n\n#### Run\n\n    $ xmake run core\n\n#### Documents\n\n* [Documents](https://github.com/tboox/gbox/wiki/documents)\n* [Codes](https://github.com/tboox/gbox)\n\n#### Contacts\n\n- Email:   \t    \n\t- waruqi@gmail.com\n- Website: \t    \n\t- http://www.tboox.org\n\n\n## 简介\n\nGBOX是一个用c语言实现的多平台图形库，支持windows、linux、mac、ios、android以及其他嵌入式系统。\n\n现在这个项目，正处于早期开发阶段，暂不提供使用，仅供参考学习\n\n如果您感兴趣，可以阅读源码\n\n#### 已实现的功能\n\n- 矢量2d渲染，支持矩阵变换，画刷、画笔的设置和渲染\n- 支持复杂矢量路径渲染和填充\n- 支持纯色填充、梯度填充、图像填充（正在重构）\n- 支持全定点或者浮点计算（可配置切换）\n- 实现渲染设备扩展，目前支持gpu加速的opengl es 1.0/2.0设备、纯算法渲染的bitmap设备\n- 实现复杂多边形分割（三角形分割、凸多边形分割），支持奇偶填充、非零填充等填充规则（这个算法花了我一年时间 =。=）\n- 实现mesh结构和封装\n- 实现多边形扫描算法\n- 支持多平台窗口扩展，目前支持glut、sdl窗口，后续会支持（x11，framebuffer, ios/android，windows等原生窗口）\n\n#### 后续工作\n\n- svg矢量图形渲染（之前的版本实现过一整套，最近正在重构，所以暂时移除了）\n- 反走样支持\n- 实现更多平台窗口和渲染设备\n- 实现字体渲染\n- ui框架的实现\n- 有时间的话，再整整游戏引擎，当然这个是后话，看心情和时间了。\n\n#### 测试效果\n\n- 目前基于opengl的渲染设备，绘制tiger.svg可达到60fps\n- 基于bitmap的纯算法渲染设备，绘制tiger.svg可达到30-40fps（pc上测试，数据仅供参考）\n\n#### 编译\n\n请先安装: [xmake](http://www.xmake.io)\n\n    cd ./gbox\n    xmake\n\n#### 运行\n\n    $ xmake run core\n\n#### 文档\n\n* [Documents](https://github.com/tboox/gbox/wiki/documents)\n* [Codes](https://github.com/tboox/gbox)\n\n#### 联系\n\n- Email:   \t    \n\t- waruqi@gmail.com\n- Website: \t    \n\t- http://www.tboox.org\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftboox%2Fgbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftboox%2Fgbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftboox%2Fgbox/lists"}