Skip to content

Instantly share code, notes, and snippets.

View gamepopper's full-sized avatar

Tim Stoddard gamepopper

View GitHub Profile
@gamepopper
gamepopper / OpenGL.cpp
Created May 20, 2018 22:30
SFML 2.5.0's OpenGL Example, written using the modern OpenGL programmable pipeline instead of the legacy OpenGL fixed pipeline.
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
/// GLEW is needed to provide OpenGL extensions.
#include <GL/glew.h>
#include <SFML/Graphics.hpp>
#include <SFML/OpenGL.hpp>