/gl2d

a simple 2d library made in opengl

Primary LanguageC++MIT LicenseMIT

gl2d

A simple 2D library made with OpenGL.

Why gl2d?

Because you can just drop it into your already configured OpenGL project and you have a lightweight 2D library ready to go! It all boils down to one render rectangle function so you can even easily integrate it into your framework if needed.


Setup: just copy the header and the cpp Call gl2d::init(); Create a renderer class. Update its window size if the window size changed

Check out the wiki!


Check out other "extensions"

Or check out my 3D rendering library!


features:

  • draw rectangles
  • draw textures
  • draw lines
  • texture atlases
  • add paddings to texture atlases
  • draw text (with fonts and add shadow)
  • camera controll
  • shaders
  • frame buffers
  • particle system (with a post-process effect to make it look lo poly)
  • add cmake