Skip to content

littlecholate/opengl-startup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross-platform OpenGL startup with glad and glfw3

Tiny project when learning cmake, only create a window with glad and glfw to keep everything simple.

Code in src/main.cpp is directly copied from the tutorial.

How to use

Windows

git submodule update --init --recursive
mkdir build
cd build
cmake -G "MinGW Makefiles" ..
mingw32-make
.\opengl-startup.exe

Linux

git submodule update --init --recursive
mkdir build
cd build
cmake ..
make
./opengl-startup

File Structure

Folder Name Purpose
external/ put external library
res/ put resources like img and music
src/ put main code

Reference

  1. The only CMake tutorial you will ever need
  2. Git Submodules
  3. Use CMake to Build Cross-Platform Application

About

Cross platform opengl startup with glad and glfw3 using cmake

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published