Skip to content

posoo/vscode_opengl_glfw_template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSCode GLFW Opengl template for mac

Install

here is how you can bootstrap an Opengl project with vscode

  • install Xcode command line tool (or simply install xcode)
  • Install Homebrew More info here
  • Install GLFW and Glew this way
brew install glfw3
brew install glew
  • Pull this repo
  • Create a bin and obj directory in project root directory

And you're ready to start

Build

The build process use makefile and g++, it is setup in a Makefile on project root directory.

Here is make commands

make clean // clean
make main	// Build
make main DEBUG=true // to build for debug (based on LLDB)

VSCode integration

Vscode project directory is provided, it include c++ environment settings, tasks for building, and launches for debugging.

It is based on vscode c/c++ extension More info on how it works here

As I'm c++ young padawan (coming from far far away WebGL), now it works only on mac it would good to have a cross plateform solution. Don't hesitate to give me feedback or pull request for cross plateform implementation.

About

VSCode Project template for glfw opengl development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 53.2%
  • Makefile 46.8%