https://github.com/ppekko/r2
minimal and super easy-to-use C99 compatiable 2D opengl renderer
https://github.com/ppekko/r2
2d c99 easy-to-use minmal renderer small
Last synced: 3 months ago
JSON representation
minimal and super easy-to-use C99 compatiable 2D opengl renderer
- Host: GitHub
- URL: https://github.com/ppekko/r2
- Owner: ppekko
- License: apache-2.0
- Created: 2024-03-30T03:00:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T17:06:48.000Z (about 1 year ago)
- Last Synced: 2025-01-20T20:40:53.636Z (5 months ago)
- Topics: 2d, c99, easy-to-use, minmal, renderer, small
- Language: C
- Homepage:
- Size: 276 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
|
|
renderer 2d
|
|:-----------------------------------------------:|:---------------------------------------------------:|r2 is a minimal and **super easy-to-use** C99 compatiable 2D opengl renderer. It supports texture rendering, framebuffers, SDF text rendering, shape rendering, shader manipulation and more under a simple to use interface.
Example code can be found in the `demo/` folder which shows a lot of functionality.
Note that r2 only supports QOI image loading, but nothing is stopping you from loading your own texture data into `r2_tex`
This project is licensed under Apache License Version 2.0, view LICENSE file for more details.
# Dependencies
- freetype
- cglm
- glad (included in project)
- stb_truetype (included in project)
- qoi (included in project)
- SDL2 (only for demo project)# Building
```
$ mkdir build && cd build
$ cmake ..
$ make # or whatever command you usually use to build cmake projects
```