The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 23 C++ 2D Projects
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
qcad
QCAD - The Open Source 2D CAD. QCAD is a cross-platform CAD solution for Windows, macOS and Linux. It supports the DXF format and optionally the DWG format (through a proprietary plugin).
-
tgfx
A lightweight 2D graphics library for rendering texts, geometries, and images with high-performance APIs that work across various platforms.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
morphologica
A library of supporting code for numerical modelling (JSON config, HDF5 data, Modern OpenGL visualization)
-
Heuristic_path_planners
Collection of classes and functions to allow 2D/3D path generation with heuristic algorithms such as A*, Theta* and LazyTheta* and ROS Interfaces
-
chronotext-cross
Cross platform infrastructure for developing 2d and 3d applications with C++ and OpenGL
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Project mention: TGFX – A Skia-alternative, lightweight, high-performance 2D graphics library | news.ycombinator.com | 2023-11-07
Jazz 2 Resurrection - Jazz Jack Rabbit 2 clone. C++, OpenGL, SDL2
I have a small TTF implementation that's in the neighborhood of that size and is open source. It's part of my canvas_ity single-header library [0] that's around 2300 LOC / 36 KB object size and implements a C++ version of most of the 2D HTML5 canvas spec [1].
The core implementation of the TTF parsing and drawing is in L1526-L1846 with another small bit at L3205-L3274 of src/canvas_ity.hpp.
It's something of a toy implementation that only supports western left-to-right text, and doesn't do any hinting at all, nor kerning, nor shaping. But it's enough to draw a basic "Hello world!" using any typical TTF file.
The test suite in test/test.cpp L84-304 embeds a few custom Base64-encoded TTF files. They're small and only have a few glyphs but they do exercise a number of interesting edge cases in the OpenType TTF spec [2]. Have a look at the HTML5 port of the test suite at test/test.html in different browsers to see how their canvas implementations render those fonts.
[0] https://github.com/a-e-k/canvas_ity
[1] https://www.w3.org/TR/2015/REC-2dcontext-20151119/
[2] https://standards.iso.org/ittf/PubliclyAvailableStandards/c0...
Project mention: Friction – An Open Source 2D Animation Software | news.ycombinator.com | 2024-04-01
Project mention: 3d typography - Javascriptorium 6/6 (link in the comments) | /r/creativecoding | 2023-05-11C++ and OpenGL are used behind the scenes so the pipeline is optimal. I can't think of another combination to make it run faster than it is now (by the way, it runs on the desktop, on mobile devices, and on the browser, without modifying a single line of code, thanks to the chronotext-cross framework.)
C++ 2D related posts
- The new 2d tilemap system is completely unusable
- I made a Cool Game Engine on Github
- How do you protect your game assets from infringement? Asking for suggestions
- How to organize game structs
- Anime Effects – an open-source 2D animation app
- A tiny, single-header -like 2D rasterizer for C++
- ncJump, an nCine game made by Fahien, runs on the Steam Deck
-
A note from our sponsor - WorkOS
workos.com | 24 Apr 2024
Index
What are some of the best open-source 2D projects in C++? This list will help you:
Project | Stars | |
---|---|---|
1 | AntSimulator | 2,204 |
2 | crown | 2,016 |
3 | synfig | 1,697 |
4 | qcad | 1,413 |
5 | tgfx | 1,001 |
6 | ObEngine | 787 |
7 | jazz2-native | 485 |
8 | CavalierContours | 371 |
9 | canvas_ity | 319 |
10 | morphologica | 222 |
11 | Fractal_Engine | 174 |
12 | friction | 124 |
13 | AnimeEffects | 103 |
14 | flatland | 94 |
15 | Creature_Godot | 84 |
16 | Heuristic_path_planners | 63 |
17 | DruidEngine | 57 |
18 | chronotext-cross | 54 |
19 | WelderEngineRevamp | 48 |
20 | RAG3 | 22 |
21 | ncJump | 14 |
22 | cpp-graphics | 9 |
23 | retro-game | 6 |
Sponsored