An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

| img |

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
```