GBOX is participating 2021 OSC China Open Source Project Selection , please vote for it!
GBOX in 2021 OSC China Open Source Project Selection {{projectVoteCount} has been obtained in, please vote for it!
2021 OSC China Open Source Project Selection It is in hot progress. Come and vote for your favorite open source project!
2021 OSC China Open Source Project Selection>>> Midfield Review
GBOX won the 2021 OSC China Open Source Project Selection "The Best Popularity Project" !
Authorization Agreement Apache License 2.0
development language C/C++
operating system Cross platform
Software type Open source software
Open source organizations nothing
region domestic
deliverer ruki
intended for unknown
Recording time 2016-06-15

Software Introduction

GBOX is a multi platform graphics rendering library implemented in c language

At present, this project is in the early development stage and is not available for use. It is only for reference

 

 

If you are interested, you can read the source code. The currently implemented functions are:

  1. Vector 2d rendering, support matrix transformation, brush and brush settings and rendering

  2. Support for complex vector path rendering and filling

  3. Support solid color filling, gradient filling and image filling (reconstruction in progress)

  4. Support full fixed point or floating point calculation (configurable switching)

  5. Realize the extension of rendering devices. Currently, it supports gpu accelerated opengl es 1.0/2.0 devices and pure algorithm rendering bitmap devices

  6. Realize complex polygon segmentation (triangle segmentation, convex polygon segmentation), support odd and even filling, non-zero filling and other filling rules

  7. Implement mesh structure and encapsulation

  8. Implement polygon scanning algorithm

  9. It supports multi platform window expansion. Currently, it supports glut and sdl windows, and will support (x11, framebuffer, ios/android, windows and other native windows) later

Follow up work:

  1. SVG vector graphics rendering (the previous version has implemented a whole set, and recently it is being reconstructed, so it is temporarily removed)

  2. Anti aliasing support

  3. Implement more platform windows and rendering devices

  4. Implement font rendering

  5. Implementation of ui framework

  6. If you have time, you can adjust the game engine. Of course, this is the later part. It depends on your mood and time.

Test effect:

  1. Currently, opengl based rendering equipment can draw tiger.svg at 60fps

  2. Bitmap based pure algorithm rendering device, drawing tiger.svg can reach 30-40fps (tested on PC, data is for reference only)

Expand to read the full text

code

comment

Click to join the discussion 🔥 (2) Post and join the discussion 🔥
No content temporarily
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
No more
No content temporarily
Issued a question and answer
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
No more
No content temporarily
No content temporarily
two comment
eighty-nine Collection
 OSCHINA
Log in to view more high-quality content
 Back to top
Top