Skip to content

Showcases fundamental graphics programming concepts via OpenGL practice code and experiments, including drawing primitives, transformations, and animations.

Notifications You must be signed in to change notification settings

naiemofficial/OpenGL

Repository files navigation

OpenGL-Cpp-Boilerplate

This project has been tested on a Linux machine. Below is a list of necessary libraries and tools, along with their installation commands.


Prerequisites

Ensure your system has a C++ compiler (like g++)


Libraries and Tools

1. GLFW

GLFW is used for creating OpenGL contexts and managing windows and inputs.

Install it using:

sudo apt install libglfw3 libglfw3-dev

2. GLAD

GLAD is an OpenGL loader that manages function pointers for OpenGL. The GLAD library is included in this project, so you don't need to install it separately.

3. OpenGL Development Libraries

These libraries are required to develop and compile OpenGL programs.

Install them using:

sudo apt install libgl1-mesa-dev

4. Build Tools

To compile and link your project, ensure you have build-essential installed:

sudo apt install build-essential

To install all the libraries and tools at once, run the following command:

sudo apt install libglfw3 libglfw3-dev libgl1-mesa-dev build-essential

Project Structure

OpenGL-Cpp-Boilerplate/
├── .vscode/
│   ├── tasks.json  
├── glad/
│   ├── glad.c         
│   ├── glad.h          
│   └── khrplatform.h
└── main.cpp

Additional Notes

  • Verify your GPU supports the OpenGL version specified in the GLAD configuration.
  • If any libraries are missing, double-check their installation or refer to your package manager for troubleshooting.

Screenshots

OpenGL-Boilerplate-Triangle-Demo

About

Showcases fundamental graphics programming concepts via OpenGL practice code and experiments, including drawing primitives, transformations, and animations.

Topics

Resources

Stars

Watchers

Forks