Skip to content

A basic OpenGL setup example with GLFW3, GLM and GLEW

Notifications You must be signed in to change notification settings

WinteryFox/OpenGL-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a small OpenGL sample I set up for a friend who was interested in getting into computer graphics. The sample will teach you to set up a project with CMake that uses GLFW, GLM and glew. You should start by reading through the CMakeLists.txt, which will teach you how CMake works and how to include dependencies in your project. There's a lot more depth to CMake, but this will teach you the fundamentals. Once you've done that, move on to the main.cpp file. Here we will create a window with GLFW, load OpenGL function pointers using glew and then render a triangle to the window with OpenGL using glm to store our vertices. I've left comments on pretty much everything. I hope they're easy to understand, if you struggle to understand something feel free to create an issue.

About

A basic OpenGL setup example with GLFW3, GLM and GLEW

Topics

Resources

Stars

Watchers

Forks