Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Stoddard gamepopper

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