How to abstract OpenGL for future use?

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Sonar - Write Clean C++ Code. Always.
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
  • LearnOpenGL

    Code repository of all OpenGL chapters from the book and its accompanying website

    I have done the tutorials on Learn OpenGL ( through the lighting section and I feel that the program is getting long. I have done some digging and people say the it is a bad idea to try and abstract OpenGL into classes. So, I want information on how I should format my code so that it is easy to use and build on. Encase this is useful, I want in the future to be able to make simple 2D and 3D games as well as be able to use OpenGL for other random projects of mine. Information would be helpful. Sorry if someone has asked this question before, I don't know how to search subreddits.

  • spinning-cubes

    Spinning cube scene in OpenGL

  • Sonar

    Write Clean C++ Code. Always.. Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • glium

    Safe OpenGL wrapper for the Rust language.

    I can recommend as a good, safe abstraction. There was a time when I wanted to learn shaders and write complex pipelines with several stages, this library allowed me to learn about the important objects and their responsibilities without having to program the very verbose chunks of code to initialize. I learned the following:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts