Category Archives: OpenGL

OpenGL Colored Triangle

Purpose of the Sample:

Demonstrate how to put both position and color in a vertex buffer object.  This sample is based on the learnopengl.com tutorial.

CGame.h

CGame.cpp

vertex.glsl

fragment.glsl

Download Sample App