Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.75 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.75 KB

modern-opengl-starter

This repo is a starter setup for modern OpenGL with GLFW, GLEW, and GLM built with CMake and Clang.

GLFW is a free, Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan application development. It provides a simple, platform-independent API for creating windows, contexts and surfaces, reading input, handling events, etc.

GLEW (The OpenGL Extension Wrangler Library) is a simple tool that helps C/C++ developers initialize extensions and write portable applications. GLEW currently supports a variety of operating systems, including Windows, Linux, Darwin, Irix, and Solaris.

GLM (OpenGL Mathematics) is a header only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specifications.

Prerequisites

VS Code

Set up your IDE of choice, e.g. see the VS Code guide for Clang on macOS: https://code.visualstudio.com/docs/cpp/config-clang-mac)

Recommended extensions

  • ms-vscode.cpptools
  • ms-vscode.cpptools-extension-pack
  • ms-vscode.cpptools-themes
  • ms-vscode.cmake-tools

Install

Clone the repository and install the dependencies with cmake implicitly.

git clone [email protected]:sluger/modern-opengl-starter.git
cd modern-opengl-starter
mkdir build
cd build
cmake ..
make -j

Run

cd build
./modern-opengl-starter

In VS Code click the play button at the top right to make use of the launch configuration.