Skip to content

OpenGL starter repository with GLFW and GLEW built with cmake and clang

License

Notifications You must be signed in to change notification settings

sluger/modern-opengl-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

OpenGL starter repository with GLFW and GLEW built with cmake and clang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published