ppekko / r2

minimal and super easy-to-use C99 compatiable 2D opengl renderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

minimal and super easy-to-use C99 compatiable 2D opengl renderer

License:Apache License 2.0


Languages

Language:C 99.7%Language:CMake 0.3%