Skip to content
/ r2 Public

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

License

Notifications You must be signed in to change notification settings

ppekko/r2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks